# json-schema-to-typescript-lite

> Lite version of json-schema-to-typescript

Latest version **15.0.0** (published 2025-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install json-schema-to-typescript-lite
pnpm add json-schema-to-typescript-lite
yarn add json-schema-to-typescript-lite
bun add json-schema-to-typescript-lite
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 15.0.0 |
| Published | 2025-07-24 |
| First published | 2024-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 382.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3347 |
| Author | Boris Cherny |
| Maintainers | antfu |
| Keywords | json, schema, typescript, compile, transpile, api, interface, typing, share |

## Links

- npm: https://www.npmjs.com/package/json-schema-to-typescript-lite
- Repository: https://github.com/bcherny/json-schema-to-typescript
- Homepage: https://github.com/bcherny/json-schema-to-typescript#readme
- Issues: https://github.com/bcherny/json-schema-to-typescript/issues
- npm.io page: https://npm.io/package/json-schema-to-typescript-lite

## Dependencies (2)

- [@types/json-schema](https://npm.io/package/@types/json-schema.md) ^7.0.15
- [@apidevtools/json-schema-ref-parser](https://npm.io/package/@apidevtools/json-schema-ref-parser.md) ^14.1.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 15.0.0 (latest) — 2025-07-24
- 14.1.0 — 2024-08-14
- 14.0.1 — 2024-04-22
- 14.0.0 — 2024-03-27
- 0.0.0 — 2024-03-27

## README

# json-schema-to-typescript-lite

> Compile json schema to typescript typings

A fork of [json-schema-to-typescript](https://github.com/bcherny/json-schema-to-typescript) with lighter dependencies and a few tweaks.

- Remove Prettier integrations - it now generates better formatted code by default, and you can always use Prettier manually afterward if needed
- Replace `lodash` with bundled `lodash-es` for smaller bundle size
- Remove CLI support and the dependencies - this package aims to have programmatic usage only
- Modern build with ESNext target
- ESM & CJS dual module support
- Support [`customName` options](https://github.com/bcherny/json-schema-to-typescript/pull/585)

---
_Source: https://npm.io/package/json-schema-to-typescript-lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
