Home /

docs

@farming-labs/docs

A modern documentation framework built on top of and other preset providers. One config file, zero boilerplate, beautiful themes out of the box.

Why @farming-labs/docs?

other docs frameworks?

Complementary, not a replacement

We are not trying to replace Fumadocs — we aim to be complementary. @farming-labs/docs builds on (and other providers) to offer a single config, multi-framework support, and optional themes and tooling, so you can use Fumadocs with less boilerplate and across Next.js, TanStack Start, SvelteKit, Astro, and Nuxt.

If you're choosing between documentation tools, here’s when @farming-labs/docs is a good fit:

In short: use @farming-labs/docs when you want one config, multiple frameworks, minimal boilerplate, and optional AI/search built in — without leaving your current stack or adopting a separate docs-only framework.

Customize themes and share them

You can create your own theme and distribute it to others — as an npm package, a shared preset, or a CSS file. Themes control layout, colors, typography, and components; once built, anyone can plug them in via config. See Themes for built-in presets and Creating themes for the full API.

Built-in docs UI — enable and customize from config

Modern docs features are built in; you turn them on in configuration instead of wiring them yourself. Each element can be customized — layout, behavior, and appearance — via the same config and theme options. See Customization for the full overview.

Theme-level customization (colors, typography, components) is covered in Configuration and Customization (including Colors and Typography). No custom components or routes required — enable and tweak what you need in docs.config.

Packages

PackageDescription
@farming-labs/docsCore types, defineDocs(), createTheme(), extendTheme()
@farming-labs/themeNext.js theme presets, layout components, CSS presets
@farming-labs/nextNext.js adapter — withDocs(), MDX processing, search API
@farming-labs/tanstack-startTanStack Start adapter — docs page renderer, MDX processing, search API, server loader
@farming-labs/svelteSvelteKit adapter — server-side docs loader, markdown processing
@farming-labs/svelte-themeSvelteKit theme presets, DocsLayout, DocsContent components
@farming-labs/astroAstro adapter — server-side docs loader, markdown processing
@farming-labs/astro-themeAstro theme presets, DocsLayout, DocsContent components
@farming-labs/nuxtNuxt 3 adapter — defineDocsHandler(), server-side docs loader, markdown processing
@farming-labs/nuxt-themeNuxt theme presets, DocsLayout, DocsContent components

Quick Start

The fastest way to get started is with the CLI:

terminal
npx @farming-labs/docs init
terminal
pnpm dlx @farming-labs/docs init
terminal
yarn dlx @farming-labs/docs init
terminal
bunx @farming-labs/docs init

The CLI first asks existing project or fresh? — then (for existing) auto-detects your framework, lets you pick a theme or create your own, can scaffold locale folders and i18n config, and generates config, routes, CSS, and sample pages. Prompts with a default (e.g. entry path docs) accept Enter to skip typing. See the CLI reference for the full init flow, or set up manually with the Installation guide.

Next Steps