Nextra
Nextra builds documentation websites with Next.js and MDX, offering a documentation theme, React components, navigation, Pagefind search, syntax highlighting, and static exports.
About Nextra
Nextra is an open-source website generation framework built on Next.js. It adds Markdown and MDX authoring capabilities for content-focused websites, including technical documentation. Its documentation theme provides navigation, a page sidebar, a table of contents, and a search interface.
Teams can embed React components in MDX and customize the website through the Next.js ecosystem. Nextra documents Pagefind integration for full-text search and supports static exports for deployment to static hosting environments.
Key Features
- Next.js Foundation: Build documentation within a Next.js application.
- MDX Authoring: Combine Markdown content with React components.
- Documentation Theme: Include navigation, a sidebar, a table of contents, and built-in components.
- Pagefind Search: Configure build-time indexing and client-side full-text search.
- Syntax Highlighting: Present code examples using Shiki-based highlighting.
- Static Exports: Export documentation pages for static hosting.
Pricing
- Open-Source Software: Free under the MIT license. Nextra's license permits use without a software license charge, subject to its conditions. Hosting and external services are separate.
Use Cases
- Building documentation within a Next.js project
- Publishing interactive React and MDX guides
- Creating searchable product documentation
- Exporting documentation websites for static hosting
Pros & Cons
Pros:
- Combines documentation authoring with Next.js and React
- Provides a documentation theme with navigation and content structure
- Supports Pagefind search and static exports
Cons:
- Nextra 4 requires the Next.js App Router
- The documented search workflow requires Pagefind installation and a post-build indexing script
Integrations
Next.js, React, MDX, Pagefind, Shiki
FAQ
What is Nextra?
Nextra is an open-source framework built on Next.js for creating content-focused websites, including documentation websites.
Is Nextra free?
Yes. Nextra is distributed under the MIT license. Hosting and external services are separate.
Can Nextra documentation include React components?
Yes. MDX allows React components to be used within documentation content.
How does Nextra search work?
Nextra integrates with Pagefind. Its setup guide requires installing Pagefind and configuring a post-build indexing script.
Can Nextra generate a static website?
Yes. Nextra documents a static export workflow for publishing generated pages to static hosting.
Last edited
November 3, 2026 at 10:22 AM by Venkatraman Chandrasekaran
