YousefED/typescript-json-schema

Generate json-schema from your Typescript sources

View on GitHub ↗Jump to charts ↓

YousefED/typescript-json-schema has 3k+ stars and 300+ forks on GitHub, is written in TypeScript, and was last pushed on Jul 14, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 21st, 2026
Created on September 28th, 2015
Open Issues & Pull Requests: 188 (+0)
GitHub issues: Enabled
Number of forks: 332
Total Stargazers: 3,266 (+0)
Total Subscribers: 18 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 19.5 days
Mean response time: 125.5 days
90th percentile: 378.9 days
Tracked items: 18

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 21
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 867 days
Stale 30+ days: 21
Stale 90+ days: 18

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

typescript-json-schema is a code generation tool that produces JSON Schema definitions from TypeScript type definitions.

The tool solves the problem of keeping JSON Schema documentation synchronized with TypeScript types by parsing TypeScript source code and extracting complete type information through the TypeScript compiler. It translates TypeScript language features—required properties, type extensions, JSDoc annotations, and property initializers—into their JSON Schema equivalents. The generator works both as a command-line utility and as a programmatic API, accepting either a tsconfig.json file or direct TypeScript file globs as input.

The tool suits projects that need JSON Schema validation or documentation derived from existing TypeScript definitions, particularly those already using TypeScript for type safety. It handles annotation-driven customization through JSDoc comments, allowing developers to override inferred types for array items and specify additional schema properties. The README acknowledges that for more comprehensive JSON Schema generation capabilities, ts-json-schema-generator offers a more complete feature set, positioning this tool as a lightweight alternative.

The project is in maintenance mode rather than active development. The codebase shows selective engagement with issues and pull requests rather than continuous feature expansion. The tool maintains backward compatibility with its existing API surface while accepting targeted improvements that do not require architectural changes.