@marlinjai/clearify
v1.6.6
Published
An open-source documentation site generator. Turn markdown into beautiful docs.
Downloads
964
Maintainers
Readme
Clearify
An open-source documentation site generator. Turn markdown into beautiful docs.
Features
- Zero config — drop markdown files in
docs/public/and go - MDX support — use React components in your docs (Callout, Tabs, Steps, Cards, CodeGroup, Accordion, Badge, Tooltip, Columns, Frame)
- Mermaid diagrams — fenced
mermaidcode blocks render as SVG, with optional build-time pre-rendering via Puppeteer - Built-in search — instant full-text search across all pages and API endpoints
- Dark mode — automatic light/dark theme switching
- Syntax highlighting — beautiful code blocks with Shiki (dual light/dark themes)
- SSG & SEO — pre-rendered HTML, Open Graph, Twitter Cards, JSON-LD, sitemap, robots.txt
- OpenAPI API Reference — custom-built renderer for OpenAPI specs with code examples, schema viewer, and full design system integration
- Multi-section support — pill-based section switcher (e.g. public docs + internal docs)
- Auto changelog — drop a
CHANGELOG.mdin your project root, it appears as/changelog
Quick Start
Install Clearify as a dev dependency:
npm install @marlinjai/clearify --save-devScaffold your project:
npx clearify initStart the dev server:
npx clearify devYour docs are live at http://localhost:4747.
Configuration
Customize with clearify.config.ts:
import { defineConfig } from '@marlinjai/clearify';
export default defineConfig({
name: 'My Project',
sections: [
{ label: 'Docs', docsDir: './docs/public' },
{ label: 'Internal', docsDir: './docs/internal', basePath: '/internal', draft: true },
],
theme: {
primaryColor: '#3B82F6',
mode: 'auto',
},
openapi: {
spec: './docs/openapi.json',
},
});CLI Commands
| Command | Description |
|---------|-------------|
| clearify dev | Start Vite-powered dev server with HMR |
| clearify build | Build static documentation site |
| clearify init | Scaffold a docs folder (use --no-internal to skip internal section) |
| clearify check | Check for broken internal links |
| clearify openapi:generate | Generate OpenAPI spec from a NestJS app |
