@mdwrk/lander-core
v0.1.5
Published
Portable compiler and diagnostics for product landing site content.
Downloads
264
Readme
@mdwrk/lander-core
Content compiler and diagnostics
This package compiles lander content, validates it, and derives route, breadcrumb, internal-link, and diagnostic semantics for downstream render and discovery packages.
Why
Use it when you need the compile-time logic behind a product lander without committing to a UI layer yet.
What
- Site definition helpers and validation.
- Compiled page metadata such as breadcrumbs, internal links, and word counts.
- Canonical route and page-text inputs consumed by discovery and rendering packages.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/lander-core @mdwrk/lander-content-contractUsage
import { compileLanderSite, defineLanderSite } from "@mdwrk/lander-core";
const site = defineLanderSite({
product: {
name: "MdWrk",
slug: "mdwrk",
tagline: "Markdown workspace platform",
description: "Portable markdown authoring and publishing.",
category: "DeveloperTool",
canonicalUrl: "https://mdwrk.com",
},
pages: [],
});
const compiled = compileLanderSite(site);Related
- Packages index - family and package navigation
- Root README - repo overview
