# Installer json2ts avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de json2ts pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install json2ts
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:json2ts
- **Gestionnaire de paquets:** Homebrew
- **Version:** 15.0.4
- **Résumé source:** Compile JSONSchema to TypeScript type declarations
- **Page d'accueil:** <https://github.com/bcherny/json-schema-to-typescript>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- json2ts (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 15.0.4
## Historique du projet et usages

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.

### Historique du projet

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`.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- 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


## Combined YAML source

View the package source record on GitHub. [combined/json2ts.yml](https://github.com/mxcl/pkgdb/blob/main/combined/json2ts.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
