# ts-json-schema-generator — card for AI agents

Generates JSON schemas from TypeScript types for validation and API documentation.

Category: Prompts, structured output and evals · npm package `ts-json-schema-generator` · latest version 2.9.0 (checked 2026-11-03)
Install: `npm install ts-json-schema-generator`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 42.5 (#2848 of all tools, 47 of 78 in its category)
- Downloads last week: 1,763,157 (as of 2026-11-24), +50.9% over 4 weeks
- GitHub stars: 1,722 (as of 2026-11-24)
- Last push: 2026-11-20

## Often used with
Vitest 100.0%, Playwright (JavaScript) 80.0%, cross-env 80.0%, Ajv 60.0%, esbuild 60.0%, jsdom 60.0%

## Checked alternatives (same job)
- Swagger JSDoc: https://agentgid.com/tools/swagger-jsdoc/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/ts-json-schema-generator/
- Homepage: https://github.com/vega/ts-json-schema-generator#readme
- Repository: https://github.com/vega/ts-json-schema-generator

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
