JSPM

@mdwrk/structured-data

0.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q86832F
  • License Apache-2.0

Reusable Schema.org and JSON-LD builders for MdWrk apps, packages, public content, and discovery surfaces.

Package Exports

  • @mdwrk/structured-data
  • @mdwrk/structured-data/version

Readme

@mdwrk/structured-data

Schema.org and JSON-LD helpers

Hits Downloads Node License: Apache-2.0

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-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." }] }),
]);