# google/schema-dts

JSON-LD TypeScript types for Schema.org vocabulary

Repository: https://github.com/google/schema-dts
Canonical: https://ross.abutalabs.com/products/schema-dts
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: semantic-web, json-ld, linked-data, typescript, typescript-definitions, knowledge-graph, ontology, schema-org, schemaorg
Last push: 2026-06-29T12:49:41+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 44, longevity 100
- inputs: {"age_days": 2834, "days_push": 65, "days_rel": 163, "gap_med": 387, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1236, forks 54 (observed 2026-08-28T04:04:05.167713+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: type-system, serialization, developer-tools
- domain: web-development, frontend
- platform: -
- tags: json-ld, schema-org, structured-data, seo, typescript-definitions, linked-data, search, semantic-web, nodejs, typescript, web-server

## Member repositories
- google/schema-dts (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.167713+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:21:58.463154+00:00, confidence not recorded.
  - readme: https://github.com/google/schema-dts (fetched 2026-08-28T04:04:05.167713+00:00, sha 4b2006c63f3b)
  - registry_npm: https://registry.npmjs.org/schema-dts (fetched 2026-08-29T12:21:11.841236+00:00, sha 07ed0fcd88a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
