Introduction
A documentation engine for Next.js. MDX pages, a sidebar tree, search on cue, SEO, and Markdown for agents.
@wrksz/docs turns a folder of .mdx and .md files into a documentation site for a Next.js App Router app. It ships the content loader, page layouts, writing components, search palette, SEO helpers, and Markdown output for AI agents in one package.
There is no hidden codegen step or custom bundler. createSource reads your content directory directly, and every route in your app stays a regular Next.js Server Component ready for static generation.
What is included
- MDX and content (
@wrksz/docs/source): folder scanning, validated frontmatter,meta.jsonordering and section headers, automatic table of contents, and syntax highlighting via@pierre/highlightswith file titles, line highlights, and diffs. - Layout and navigation (
@wrksz/docs/docs,@wrksz/docs/home):DocsLayout,DocsPage,PageHeader(breadcrumbs, status indicators, page actions),PageFooter, stickyTableOfContentswith a mobileTocBar, plus landing page primitives (HomeLayout,Hero,Features,Footer). - Writing components (
@wrksz/docs/typography):Callout,Steps,Tabs,CodeGroup,Install,Props,Cards,Details,Do/Dont,Table,Badge, theme-awareImage, andAgentPrompt. - Search and theming: built-in
Cmd+K/Ctrl+Kcommand palette powered by@wrksz/cueand flash-free light/dark/system theming powered by@wrksz/themes. - AI-ready output (
@wrksz/docs/llms): helpers forllms.txt,llms-full.txt, and.mdroutes for every page, alongsideCopyMarkdownActionandOpenPageMenu. - SEO and registries (
@wrksz/docs/seo,@wrksz/docs):siteMetadata,pageMetadata,sitemap,robots, JSON-LD, plus automatic latest-version and download counts from npm and PyPI.
Package entry points
Requirements
- Next.js
>=16(App Router) - React
19 - Tailwind CSS
v4