# YousefED/typescript-json-schema

Generate json-schema from your Typescript sources

Repository: https://github.com/YousefED/typescript-json-schema
Canonical: https://ross.abutalabs.com/products/typescript-json-schema
Language: TypeScript
License: BSD-3-Clause
License Family: permissive
Last push: 2026-07-14T15:28:20+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 35, longevity 100
- inputs: {"age_days": 3992, "days_push": 50, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3267, forks 333 (observed 2026-08-28T04:07:52.969309+00:00)

## What it is
A TypeScript library and CLI tool that compiles TypeScript sources and generates JSON Schema definitions from their types. It handles required properties, extends, annotations, and defaults, and is explicitly in maintenance mode.

## Use cases
- generate json schema from typescript types
- validate api payloads against typescript interfaces
- create json schema for config files from ts types
- generate forms from typescript definitions
- produce json schema docs for a typescript library

## When to choose
- you have a TypeScript codebase and need JSON Schema for validation or forms
- you want a lightweight, simple schema generator with CLI and programmatic API

## When to avoid
- you need advanced or actively developed schema generation features - prefer ts-json-schema-generator
- your sources are not TypeScript

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

## Member repositories
- YousefED/typescript-json-schema (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:52.969309+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-30T07:23:10.200437+00:00, confidence not recorded.
  - readme: https://github.com/YousefED/typescript-json-schema (fetched 2026-08-28T04:07:52.969309+00:00, sha ce2b9f36f63b)
  - registry_npm: https://registry.npmjs.org/typescript-json-schema (fetched 2026-08-29T09:36:43.432137+00:00, sha 7780ddb0a4ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
