Ross ROSS = Recommend OSS · open-source software intelligence for agents

bcherny/json-schema-to-typescript

Compile JSON Schema to TypeScript type declarations observed · 2026-08-28

github.com/bcherny/json-schema-to-typescript · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

77/100

  • Activity 99
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3816
  • days_rel: n/a
  • days_push: 11
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3337 stars · 464 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A TypeScript library and CLI (json2ts) that compiles JSON Schema definitions into TypeScript type declarations. It can be used programmatically via compile/compileFromFile or from the command line, with a browser-based live demo also available.

Use cases

  • convert json schema to typescript interfaces
  • generate typescript types from json schema files
  • generate .d.ts declarations from api schemas
  • batch convert a directory of json schemas to typescript
  • generate typescript types from yaml schema files
  • keep typescript types in sync with json schema

When to choose

  • you maintain JSON Schema definitions and want matching TypeScript typings
  • you want both a CLI and a programmatic API for schema-to-types conversion
  • you need glob-based batch conversion of schema files
  • you want style customization like single quotes or no semicolons in generated types

When to avoid

  • you need to generate types from OpenAPI or GraphQL schemas rather than JSON Schema
  • you need runtime validation, not just type declarations
  • you work in a language other than TypeScript/JavaScript

Facets

library · maturity active

parser cli developer-tools type-system developer-tools web-development apis programming-languages cli cross-platform json-schema typescript code-generation type-definitions transpiler json2ts nodejs

3 sources

Member repositories

RepositoryRoleHealth v2
bcherny/json-schema-to-typescriptmain77

For agents

markdown · JSON · MCP: product_card(name="bcherny/json-schema-to-typescript")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem