{"library":"json-schema-to-ts","type":"library","category":null,"description":"json-schema-to-ts is a TypeScript library designed to infer static TypeScript types directly from existing JSON schemas. This eliminates the need for manual type duplication, mitigating potential bugs and reducing maintenance overhead in projects that rely on JSON schemas for runtime data validation. The current stable version is 3.1.1, with a release cadence that is quite active, typically seeing minor or patch updates on a monthly basis. A key differentiator from libraries like Zod, Yup, or Runtypes is its focus purely on type inference from the established JSON Schema standard, rather than providing an integrated validation and schema definition system. This makes it an ideal choice for development environments where JSON schemas are already a primary source of truth for API specifications (e.g., OpenAPI) or data contracts, enabling seamless integration of existing schemas for robust static type checking.","language":"javascript","status":"active","version":"3.1.1","tags":["javascript","json","schema","typescript","type","ts"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-schema-to-ts","imports":["import { FromSchema } from 'json-schema-to-ts'","import { asConst } from 'json-schema-to-ts'","import type { JSONSchema } from 'json-schema-to-ts'"]},{"cmd":"yarn add json-schema-to-ts","imports":[]},{"cmd":"pnpm add json-schema-to-ts","imports":[]}],"homepage":null,"github":"https://github.com/ThomasAribart/json-schema-to-ts","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-schema-to-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-schema-to-ts/compatibility"}}