Installation
Install @docubook/flame and scaffold your first documentation site on Bun, Node.js, or Deno.
DocuBook Flame runs on Bun >= 1.1.0, Node.js >= 20.11, or Deno >= 2.x. The toolchain and CLI work identically across all three — pick the runtime you already use.
Quick Setup
Deno may show a freshness/cache warning on first run. If you see one, set
DENO_ALLOW_NEWER=true deno task devto bypass it.
flame initonly scaffolds files —compile-lib.mjsruns lazily on firstflame devorflame build, not during init. This step precompiles TypeScript sources to.docu/lib/so Node.js and Deno can execute them. In a published npm package.docu/libis already included, so the lazy compile never runs.
Open http://localhost:3000 in your browser.
CLI Reference
The CLI auto-detects your runtime and dispatches to the correct server implementation automatically — flame dev uses Bun.serve on Bun, Node HTTP on Node.js, and Deno HTTP on Deno. Override detection with the FLAME_RUNTIME environment variable:
Scaffolded projects have these scripts in package.json:
When scaffolding on Deno, flame init also generates a deno.json with nodeModulesDir: "auto" and sets the scripts to use the npm: specifier.
Global Installation
Deno does not support global npm packages. Use deno run -A npm:@docubook/flame <command> or add a task in deno.json.
After global install, run:
Runtime Notes
The precompiled .docu/lib directory is gitignored in monorepo clones and generated automatically on first flame dev or flame build for non-Bun runtimes.
Last updated Aug 13, 2026