A modern documentation library for Next.js that makes it easy to create beautiful, feature-rich documentation sites.
- 📝 MDX Support - Write documentation in Markdown with React components
- 📚 Multi-Version Docs - Support multiple documentation versions seamlessly
- 🔌 API Reference Generation - Auto-generate API docs from OpenAPI, Postman, or Specra formats
- 🔍 Full-Text Search - Integrated MeiliSearch support for fast search
- 🎯 Tab Groups - Organize content into multiple navigation tabs
- 🌓 Dark Mode - Built-in theme switching with system preference detection
- 🎨 Customizable - Highly configurable with Tailwind CSS
- ⚡ Fast - Built on Next.js with optimized performance
- 📱 Responsive - Mobile-friendly design out of the box
- 🔥 Hot Reload - Instant updates during development
npm install specra
# or
yarn add specra
# or
pnpm add specranpx create-next-app@latest my-docs
cd my-docsnpm install specramy-docs/
├── app/
│ ├── layout.tsx # Re-export from Specra
│ ├── page.tsx # Your landing page
│ └── docs/
│ └── [version]/
│ └── [...slug]/
│ └── page.tsx # Re-export from Specra
├── docs/ # Your MDX content
│ └── v1.0.0/
│ └── getting-started.mdx
├── public/
│ └── logo.png
└── specra.config.json # Specra configuration
// app/layout.tsx
export { default } from 'specra/app/layout'
export { generateMetadata } from 'specra/app/layout'// app/docs/[version]/[...slug]/page.tsx
export { default } from 'specra/app/docs-page'
export {
generateStaticParams,
generateMetadata
} from 'specra/app/docs-page'{
"site": {
"title": "My Documentation",
"description": "Awesome docs built with Specra",
"url": "https://docs.example.com",
"logo": "/logo.png"
},
"theme": {
"defaultMode": "system",
"primaryColor": "#0070f3"
},
"navigation": {
"sidebar": true,
"breadcrumbs": true
}
}---
title: Getting Started
description: Learn how to get started with our platform
---
# Getting Started
Welcome to the documentation!Add to your app/globals.css:
@import 'specra/styles';
/* Your custom styles */npm run devVisit http://localhost:3000/docs/v1.0.0/getting-started to see your docs!
See Configuration Guide for full documentation.
Simply update the package to get latest features and bug fixes:
npm update specraYour content and configuration stay the same - only the SDK updates!
Specra is designed to be the easiest way to create documentation for your projects. It handles all the complex parts (versioning, search, API references) while letting you focus on writing great content.
MIT
dalmasonto, arthur-kamau