A tiny (500b) utility to build JSON schema types.
A tiny (500b) utility to build JSON schema types.
This package is compatible with all JavaScript runtimes and is available on multiple registries:
tschema@lukeed/tschema…Please refer to the generated API documentation, as it's always kept up-to-date.
Note: The API is the same across all JavaScript runtimes, regardless of installation source. Only the package's name changes.
Run on Deno 1.45.5
(release, aarch64-apple-darwin)with v812.7.224.13
file: tschema/scripts/bench.ts
runtime: deno 1.45.5 (aarch64-apple-darwin)
# Builders
tschema 5,328,603.3 iter/sec 187.67 ns/iter
sinclair/typebox 130,480.2 iter/sec 7.66 µs/iter
zod-to-json-schema 46,928.5 iter/sec 21.31 µs/iter
# Summary
tschema
40.84x faster than sinclair/typebox
113.55x faster than zod-to-json-schemaMIT © Luke Edwards
No open issues yet, or sync has not completed.