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

ThomasAribart/json-schema-to-ts

Infer TS types from JSON schemas 📝 observed · 2026-08-28

github.com/ThomasAribart/json-schema-to-ts · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

59/100

  • Activity 81
  • Release rhythm 8
  • Longevity 100
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: 2241
  • days_rel: n/a
  • days_push: 116
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1778 stars · 39 forks observed · 2026-08-28

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

A TypeScript library that statically infers TypeScript types from JSON schemas via a FromSchema type utility, eliminating duplicate type definitions. Schemas written with 'as const' are resolved at compile time into matching TS types.

Use cases

  • infer typescript types from schemas
  • stop duplicating types for runtime validation schemas
  • derive types from schema at compile time
  • type schema objects in typescript
  • avoid type drift between schemas and typescript code

When to choose

  • you already validate data with JSON schemas and want matching static types
  • you want compile-time type inference without code generation steps
  • your schemas are defined in TypeScript source with 'as const'

When to avoid

  • schemas live outside your codebase as separate JSON/YAML files at runtime
  • you need runtime validation itself rather than static types
  • you prefer codegen pipelines generating .d.ts files

Facets

library · maturity active

type-system serialization developer-tools developer-tools web-development apis cross-platform -schema type-inference typescript-types compile-time nodejs typescript

2 sources

Member repositories

RepositoryRoleHealth v2
ThomasAribart/json-schema-to-tsmain59

For agents

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

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