Skip to content
Foldocs
On this pageAutomatic installation

Quick Start

Create a Foldocs application and start authoring documentation.

Foldocs turns Markdown and deterministic MDX into a complete Foldkit documentation application with typed content, navigation, full-text search, and AI-readable output.

Every document is also available as processed Markdown by appending .md to its URL, with copy and view actions generated automatically.

Automatic installation

Create a complete Foldocs application with Foldkit, Effect, local search, static output, Markdown routes, and LLM files already configured:

npm create foldocs@latest my-docs
cd my-docs
npm run dev

What you get

Typed all the way down

ts
import { createDocsProgram } from 'foldocs'
import {
  basePath,
  i18n,
  landingSocialImages,
  manifest,
  navigations,
  og,
  searchIndexUrls,
  seo,
  siteConfig,
} from 'virtual:foldocs'

const program = createDocsProgram({
  basePath,
  i18n,
  landingSocialImages,
  manifest,
  navigations,
  og,
  searchIndexUrls,
  seo,
  site: siteConfig,
})

The virtual manifest eagerly contains serializable metadata and lazy-loads each compiled document only when its route is visited.

Static from the first response

Production builds prerender every landing and documentation route. Direct navigation receives the real page rather than a temporary loading document.

Last updated Aug 3, 2026