@mdwrk/structured-data
v0.1.4
Published
Reusable Schema.org and JSON-LD builders for MdWrk apps, packages, public content, and discovery surfaces.
Maintainers
Readme
@mdwrk/structured-data
Schema.org and JSON-LD helpers
This package provides reusable Schema.org and JSON-LD builders for MdWrk apps, packages, public content, and discovery surfaces.
Why
Use it when you need structured-data output without rewriting low-level Schema.org node creation logic.
What
- Builders for WebPage, WebSite, FAQPage, SoftwareApplication, TechArticle, Product, Dataset, and more.
- Helpers for canonical ids and graph assembly.
- A shared discovery layer consumed heavily by the lander stack.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/structured-dataUsage
import { faqPageSchema, jsonLdGraph, softwareApplicationNode } from "@mdwrk/structured-data";
const graph = jsonLdGraph([
softwareApplicationNode({ name: "MdWrk", url: "https://mdwrk.com" }),
faqPageSchema({ items: [{ question: "What is MdWrk?", answer: "A markdown workspace platform." }] }),
]);Related
- Packages index - family and package navigation
- Root README - repo overview
