Build-time optimized documentation infrastructure for React and Next.js sites. This package was originally developed to power Base UI's documentation with syntax-highlighted code demos, auto-extracted TypeScript API references, and client-side search.
New to the codebase? Start with the Architecture page to understand how the build-time optimization, factory pattern, and data flows work together.
pnpm install @fairgarden/docsThen configure your Next.js app with withFairGardenDocs:
import { withFairGardenDocs } from '@fairgarden/docs/withFairGardenDocs';
export default withFairGardenDocs()(nextConfig);
CodeHighlighter, CodeProvider, context providersuseCode, useDemo, useTypes, useSearchcreateDemo, createTypesMeta, factory patternsSee the Contributing guide.
This project is licensed under the MIT License.