macOS
brew install json2tslocal Homebrew formula metadata
brew
Compile JSONSchema to TypeScript type declarations. Version 15.0.4 via Homebrew; verified from local package data.
install
brew install json2tslocal Homebrew formula metadata
nix profile install nixpkgs#json2tsnixpkgs package indexes · pkgs/by-name/js/json2ts/package.nix · source: api.github.com
overview
Compile JSONSchema to TypeScript type declarations
history
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.
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`.
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.
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.
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
json2ts | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/bcherny/json-schema-to-typescript
install metadata
| Package key | brew:json2ts |
|---|---|
| Version | 15.0.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/json2ts |
| 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 |
| Dependencies | node |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
json2ts
nix profile install nixpkgs#json2tssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.