# Install json2ts with Homebrew, Nix

Compile JSONSchema to TypeScript type declarations. Version 15.0.4 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:json2ts
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install json2ts
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#json2ts
```

  Evidence: nixpkgs package indexes: pkgs/by-name/js/json2ts/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:json2ts
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/json2ts>
- **Version:** 15.0.4
- **Source summary:** Compile JSONSchema to TypeScript type declarations
- **Homepage:** <https://github.com/bcherny/json-schema-to-typescript>
- **Repository:** <https://github.com/bcherny/json-schema-to-typescript>
- **Upstream docs:** <https://github.com/bcherny/json-schema-to-typescript#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/json-schema-to-typescript/-/json-schema-to-typescript-15.0.4.tgz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- json2ts (cli)
- json2ts (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 15.0.4
- Local data: ok
- Upstream repository: https://github.com/bcherny/json-schema-to-typescript
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

json-schema-to-typescript is a TypeScript and Node.js code-generation tool that compiles JSON Schema documents into TypeScript declaration files. The Homebrew package is named json2ts after its command-line executable.

### Project history

Boris Cherny's repository was created in March 2016, and the npm package metadata records the first `0.1.0` publication on March 31, 2016. The project appeared as TypeScript was becoming a common way to describe JavaScript APIs while JSON Schema remained a common contract format for data validation.

The package evolved from a CLI into both a CLI and programmatic API. Its README documents `json2ts` usage for stdin, files, directories, globbed schema trees, YAML input, and library calls such as `compile` and `compileFromFile`.

### Adoption history

The repository had thousands of GitHub stars by 2026 and the npm registry recorded more than one hundred published versions. Its adoption came from teams that already had JSON Schema contracts and wanted generated `.d.ts` files rather than hand-maintained TypeScript interfaces.

### How it is used

The common package-manager path is to install the Node package or Homebrew formula, then run `json2ts` to transform JSON or YAML schemas into TypeScript declarations. It can also be embedded in build scripts through the JavaScript API.

### Why package nerds care

json2ts is package-nerd notable because it is a bridge between schema-first JSON tooling and TypeScript's static type ecosystem. It shows how a Node package can become a CLI distributed through npm and system package managers when the executable is useful outside JavaScript projects.

### Timeline

- 2016-03-22: The GitHub repository was created.
- 2016-03-31: npm recorded version 0.1.0 for `json-schema-to-typescript`.
- 2016-07-22: npm recorded version 1.0.0.
- 2025-01-14: npm metadata showed package modification after many published versions.

### Related projects

- The project is related to JSON Schema, TypeScript declaration generation, `typescript-json-schema` for the reverse direction, and schema-aware API tooling that uses JSON Schema as the source of truth.

### Sources

- <https://formulae.brew.sh/formula/json2ts>
- <https://github.com/bcherny/json-schema-to-typescript>
- <https://github.com/bcherny/json-schema-to-typescript/blob/master/package.json>
- <https://registry.npmjs.org/json-schema-to-typescript>
- <https://www.npmjs.com/package/json-schema-to-typescript>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** json2ts
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - json2ts: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/json2ts/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [plank](https://www.automicvault.com/pkg/brew/plank/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, json-schema.
- [quicktype](https://www.automicvault.com/pkg/brew/quicktype/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, json-schema.
- [tscriptify](https://www.automicvault.com/pkg/brew/tscriptify/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, typescript.
- [tygo](https://www.automicvault.com/pkg/brew/tygo/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, typescript.
- [autogen](https://www.automicvault.com/pkg/brew/autogen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [configen](https://www.automicvault.com/pkg/brew/configen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [counterfeiter](https://www.automicvault.com/pkg/brew/counterfeiter/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [cproto](https://www.automicvault.com/pkg/brew/cproto/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [typeshare](https://www.automicvault.com/pkg/brew/typeshare/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, definitions, developer.

## Combined YAML source

View the package source record on GitHub. [combined/json2ts.yml](https://github.com/automic-vault/db/blob/main/combined/json2ts.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
