Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 2.31 KB

File metadata and controls

47 lines (37 loc) · 2.31 KB

This package provides reusable Schema.org and JSON-LD builders for MdWrk apps, packages, public content, and discovery surfaces.

Maintenance Status

This is a legacy bridge package in groupsum/markdown_workspace.

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-data

Usage

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