The project provides a comprehensive set of TypeScript typings based on the Schema vocabulary, enabling developers to author JSON-LD structured data with strong type safety. It supplies both high-level discriminated unions and helper types to model contexts, graphs, and linked data relationships with clarity and accuracy. Usage examples demonstrate how one can import types like Person, WithContext, or Graph and compose JSON-LD objects in a way that aligns with semantic-web and knowledge-graph practices. The repository also contains a generator tool that can pull ontology definitions and emit TypeScript definitions in bulk, ensuring the typings stay up to date and maintain consistency. It supports scenarios such as nested objects, graphs of entities, and action types with input/output constraints, which makes it suitable for rich metadata authoring and linked-data workflows. While it is maintained by Google, it is not an officially supported Google product.

Features

  • Provides TypeScript typings for the complete Schema vocabulary in JSON-LD format
  • Supports discriminated type unions for better IntelliSense and strict validation
  • Includes WithContext and Graph utilities for structured data with @context and @graph
  • Supports input/output constraints via WithActionConstraints for action annotations
  • Offers a CLI generator (schema-dts-gen) to build custom typings from any Schema ontology
  • Enables schema validation at compile time, reducing markup errors in structured data

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Schema.DTS

Schema.DTS Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Schema.DTS!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript, TypeScript

Related Categories

JavaScript Libraries, TypeScript Libraries

Registered

2025-10-11