One source of truth for TypeScript types, runtime validation, coercion, and OWL ontology output. Author in JSON Schema; share with any backend; reason over the graph.
The full documentation is published at https://studnicky.github.io/json-tology/.
- Getting Started
- Package exports map - what lives behind each
json-tology/*subpath - Picking a method
- instantiate vs materialize - wire-decode vs default-fill, Transform decoder detail
- Argument conventions
- Bookstore domain - the running example used throughout the docs
- Validation, Composition, Serialization
- OWL 2 TBox import (
fromTbox) - import existing OWL ontologies; generate compile-time TypeScript types viaowl-gen - Ontology and Graphs - OWL TBox, SHACL, JSON-LD, ABox projection
- Usage Examples - transforms cookbook, custom format validators
Node.js >= 24 (matches engines.node in package.json).
npm install json-tologyjsonld is a bundled dependency (installed automatically with json-tology). The optional peer dependency is eyereasoner, required only for EYE-reasoner integration:
npm install json-tology eyereasoner # only if using the EYE reasonerThe package is also mirrored to GitHub Packages as @studnicky/json-tology:
echo '@studnicky:registry=https://npm.pkg.github.com' >> .npmrc
npm install @studnicky/json-tologyMIT - see LICENSE.
See CHANGELOG.md and the GitHub releases.