schema-dts provides TypeScript type definitions for the Schema.org vocabulary in JSON-LD format, enabling strong typing, auto-completion, and validation for structured data in web and application projects. It helps developers create standards-compliant Schema.org markup safely and efficiently within TypeScript code. The package includes both pre-built typings (schema-dts) and a generator tool (schema-dts-gen) that can produce TypeScript definitions from any Schema.org-compatible ontology. With schema-dts, developers can confidently author rich, linked data such as Person, Organization, or WebPage entities with compile-time safety and context-aware validation.
Features
- Provides TypeScript typings for the complete Schema.org 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.org ontology
- Enables schema validation at compile time, reducing markup errors in structured data
Categories
LibrariesLicense
Apache License V2.0Follow Schema.DTS
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Schema.DTS!