bongo is a static site generator. It turns Markdown, templates, and assets into fast static HTML. Rolldown bundles your scripts, LightningCSS bundles your styles, and tempura renders your templates.
You write one config file and put your files in a small set of folders. bongo writes plain HTML, CSS, and JS to public/.
my-site/
├── assets/ scripts, styles, fonts
├── content/ pages: .md, .hbs, .html
├── data/ JSON, YAML, modules → $data
├── layouts/ html.hbs wraps each page
├── partials/ reusable template pieces
└── bongo.config.ts site, helpers, plugins
- Fast: 10,000 Markdown pages build in 2.2 s, about 6× faster than Astro, with a sixth of its memory. A repeat build renders only the pages that a change reaches. See Benchmarks.
- Modern tools: Rolldown for scripts, LightningCSS for styles, with bundling, nesting, autoprefixing, and CSS modules.
- Images: resize, convert, and get a
srcset,width, andheightfor free. Draw a partial as an image, such as an Open Graph card for each page. - Content: typed frontmatter, drafts, tags, sections, translations, sitemaps, feeds, and search indexes.
- Dev server: live reload and an error overlay.
- Client runtime: optional client-side navigation, prefetch, and view transitions.
- Runs anywhere: Bun 1.4+, Deno, and Node 24+.
Create a site:
bun create bongo my-site
cd my-site
bun installStart the dev server at http://localhost:3000/:
bun run devBuild the site into public/:
bun run buildTip
Image processing needs the Bun runtime. To resize images, run bun --bun run dev and bun --bun run build.
To add bongo to an existing project, see Add bongo by hand.
Everything else is at bongo.build:
| Package | Description |
|---|---|
@bongo/bongo |
The core static site generator and the optional browser runtime. Install it as bongo@npm:@bongo/bongo. |
@bongo/markdown |
Markdown loader plugin. |
@bongo/feed |
RSS and Atom feed plugin. |
@bongo/tailwind |
Tailwind CSS plugin. |
create-bongo |
Project scaffolding CLI. |
Bun 1.4+ is the primary development tool. Node 24+ is still supported at runtime, but workspace commands use Bun.
bun install
bun test
bun run buildRun the example site, or the docs site:
bun run example dev
bun run docs devThe package build uses Rolldown and writes the publishable package files in place.
MIT © Luke Edwards