google/schema-dts
JSON-LD TypeScript types for Schema.org vocabulary observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 90
- Release rhythm 44
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 387
- age_days: 2834
- days_rel: 163
- days_push: 65
- n_releases_24m: 2
Adoption not part of the score
1236 stars · 54 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
schema-dts provides TypeScript type definitions for the Schema.org vocabulary in JSON-LD format, exposed as discriminated type unions for autocomplete and stricter validation. It includes a companion CLI (schema-dts-gen) for generating typings from specific Schema.org versions.
Use cases
- add schema.org structured data to a website with type safety
- generate typescript types for json-ld schema.org vocabulary
- validate json-ld structured data in typescript
- emit seo rich-result metadata like Product or Person from a node app
- type-check @graph json-ld documents
When to choose
- you write JSON-LD structured data in TypeScript and want completions and compile-time validation
- you need typings pinned to a specific Schema.org version or layer
- you want discriminated unions across Schema.org types
When to avoid
- you need runtime validation of JSON-LD documents rather than compile-time types
- your project is not TypeScript/JavaScript
- you need full JSON-LD processing like framing or expansion
Facets
library · maturity active
type-system serialization developer-tools web-development frontend json-ld schema-org structured-data seo typescript-definitions linked-data search semantic-web nodejs typescript web-server
2 sources
- readme: https://github.com/google/schema-dts · fetched 2026-08-28 · 4b2006c63f3b
- registry_npm: https://registry.npmjs.org/schema-dts · fetched 2026-08-29 · 07ed0fcd88a6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/schema-dts | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="google/schema-dts")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem