# vega/ts-json-schema-generator

Generate JSON schema from your Typescript sources

Repository: https://github.com/vega/ts-json-schema-generator
Canonical: https://ross.abutalabs.com/products/ts-json-schema-generator
Language: TypeScript
License: MIT
License Family: permissive
Topics: json-schema, typescript, compiler, generator
Last push: 2026-08-09T03:59:51+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 37, longevity 100
- inputs: {"age_days": 3379, "days_push": 24, "days_rel": 210, "gap_med": 303, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1714, forks 238 (observed 2026-08-28T04:05:26.120357+00:00)

## What it is
A TypeScript library and CLI tool that generates JSON Schema documents from TypeScript type definitions. It parses TypeScript source files via the compiler AST and produces standards-compliant JSON Schema, including JSDoc-derived descriptions.

## Use cases
- generate  schema from typescript types
- validate api payloads against typescript interfaces
- create  schema for config files from ts types
- produce openapi-compatible schemas from typescript source
- cli tool to generate schema from a tsconfig project
- keep  schema in sync with typescript code

## When to choose
- your types are defined in TypeScript and you need JSON Schema as the source of truth for validation
- you want JSDoc comments carried into schema descriptions
- you need a programmable library plus a CLI in one package

## When to avoid
- your types live in other languages like Python or Go
- you need OpenAPI documents rather than plain JSON Schema
- you want runtime type validation itself rather than schema generation

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization, cli, developer-tools
- domain: developer-tools, apis, web-development, files
- platform: cli, cross-platform
- tags: -schema, typescript, schema-generator, code-generation, nodejs

## Member repositories
- vega/ts-json-schema-generator (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.120357+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:39.933947+00:00, confidence not recorded.
  - readme: https://github.com/vega/ts-json-schema-generator (fetched 2026-08-28T04:05:26.120357+00:00, sha fbf39f498f07)
- Data as of 2026-08-30T08:39:29.467469+00:00.
