Start here
Next.js Docs Starter
Launch an AI-native documentation site with MDX, local search, generated API references, optional AI help, and Vercel-ready defaults.
Open source docs template
Use this starter to publish project documentation without a docs-specific SaaS. Write MDX, customize one typed config file, run the Next.js app locally, and deploy on Vercel's free tier.
This template gives you a practical documentation site that works like a normal Next.js app. It includes rich navigation, MDX pages, theme switching, local search, generated API references, Markdown exports, llms.txt, MCP, feedback, and optional AI tools.
What is included
- A Next.js App Router site that renders root-level
.mdxpages. - A typed
site.config.tsfile for metadata, rich navigation, API references, theme, header links, AI actions, and MCP settings. - A component set for guides, API docs, examples, prompts, file trees, type tables, and changelogs.
- Local search across page titles, descriptions, headings, and body text.
- Markdown versions of every page for readers and AI tools.
- Generated OpenAPI and AsyncAPI pages with an optional Scalar playground.
- Optional AI chat, voice chat, and external AI context actions.
- An MCP endpoint with docs tools, resources, and prompts.
- Page feedback, optional analytics hooks, sitemap, robots, canonical metadata, edit links, and docs validation.
- Vercel-friendly defaults that work on the free Hobby plan for personal projects.
How the starter is organized
Install dependencies, start the local server, and learn the project layout.
Write contentAdd MDX pages, frontmatter, components, prompts, examples, and code blocks.
Customize the siteUpdate branding, navigation, metadata, API references, theme colors, and header links.
Use AI resourcesConnect Markdown exports, MCP, page context actions, and optional assistants.
Review qualityValidate content, links, API specs, metadata, and deployment readiness.
Deploy on VercelConnect your repository and publish the site with Vercel's Next.js defaults.
Quick start
npm install
npm run devOpen http://localhost:3000 to view the docs.
Next step: Getting started