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

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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

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.
Start 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