/docsv0.1.0

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.json ordering and section headers, automatic table of contents, and syntax highlighting via @pierre/highlights with file titles, line highlights, and diffs.
  • Layout and navigation (@wrksz/docs/docs, @wrksz/docs/home): DocsLayout, DocsPage, PageHeader (breadcrumbs, status indicators, page actions), PageFooter, sticky TableOfContents with a mobile TocBar, 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-aware Image, and AgentPrompt.
  • Search and theming: built-in Cmd+K / Ctrl+K command palette powered by @wrksz/cue and flash-free light/dark/system theming powered by @wrksz/themes.
  • AI-ready output (@wrksz/docs/llms): helpers for llms.txt, llms-full.txt, and .md routes for every page, alongside CopyMarkdownAction and OpenPageMenu.
  • 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

Next steps