Skip to content
JS
Package

to-json-schema

Convert JS object to JSON Schema

v0.2.5, 27 Mar 2020MITCommonJSTypes: NoneSchema validationParsers and serialisers
$ npm install to-json-schema

Key numbers

As of 25 Sept 2026
Weekly downloads
154k
+86% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
6 years ago
v0.2.5
GitHub stars
121
23 forks
Open issues / PRs
6 / 13
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150k200kSept 2025Mar 2026Sept 2026High 189k (21 Jul 2026)Low 31.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

153,998 downloads last week, 637,125 in the last month. The 12-month change of +86% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.2.5, 27 Mar 20206 years ago
First published
-
Last push to GitHub
5 Jan 20231,358 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
13
Commits, last 52 weeks
0
Dependents on npm
133

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
30 kB
Dependencies (6)
lodash.xorlodash.keyslodash.omitlodash.mergelodash.isequallodash.without
npm install to-json-schema
  • jsDelivrhttps://cdn.jsdelivr.net/npm/to-json-schema@0.2.5/
  • unpkghttps://unpkg.com/to-json-schema@0.2.5/
  • esm.shhttps://esm.sh/to-json-schema@0.2.5
PackageWeekly downloadsGzipLast releaseModuleComparison
@jsonhero/schema-infer8.6k-3 years agoCommonJS-
@json-editor/json-editor33k-30 days agoCommonJS-
mongoose-schema-jsonschema7.5k-9 months agoCommonJS-
allof-merge94k-7 months agoESM + CommonJS-
@accordproject/concerto-core60.6k-16 days agoESM + CommonJS-
@exodus/schemasafe3.3m-3 years agoCommonJS-
express-zod-api12.8k-2 days agoESM only-
@apidevtools/json-schema-ref-parser12.7m-4 days agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.