structured-data-types
v1.0.0
Published
📦️ Ultra-lightweight, strict TypeScript definitions for Google Rich Results and Schema.org structured data. Built for performance-focused web development.
Maintainers
Readme
- node >= 22.17.0
- bun >= 1.1.0
bun i -D structured-data-typesnpm i -D open-graph-typespnpm i -D open-graph-typesyarn i -D open-graph-typesimport type { SchemaArticle, SchemaOrganization } from "structured-data-types";
const publisher: SchemaOrganization = {
"@type": "Organization",
name: "LuisdaByte",
logo: "https://example.com/logo.png",
url: "https://example.com",
description: "Software and Web Development",
};
const article: SchemaArticle = {
"@context": "https://schema.org",
"@type": "BlogPosting",
headline: "Mastering Structured Data",
description: "How to implement type-safe JSON-LD in your projects.",
image: "https://example.com/cover.png",
datePublished: "2026-04-18",
author: {
"@type": "Person",
name: "LuisdaByte",
},
publisher,
};Here is a complete list of all the available types:
SchemaAddressSchemaAggregateOfferSchemaAggregateRatingSchemaAnswerSchemaArticleSchemaAuthorSchemaBrandSchemaContactPointSchemaContextSchemaFAQPageSchemaGeoCoordinatesSchemaImageSchemaItemAvailabilitySchemaItemListSchemaListItemSchemaLocalBusinessSchemaOfferSchemaOpeningHoursSpecificationSchemaOrganizationSchemaPersonSchemaProductSchemaQuantitativeValueSchemaQuestionSchemaRatingSchemaReviewSchemaSearchActionSchemaServiceSchemaSoftwareApplicationSchemaVideoObjectSchemaWebSite
