The easiest static site generator on the planet. β‘οΈ Now with Bun support for blazing-fast performance!
curl -fsSL https://raw.githubusercontent.com/twilson63/bam/master/scripts/install.sh | shiex (irm https://raw.githubusercontent.com/twilson63/bam/master/scripts/install.ps1)Using wget:
wget -qO- https://raw.githubusercontent.com/twilson63/bam/master/scripts/install.sh | shInstall specific version:
curl -fsSL https://raw.githubusercontent.com/twilson63/bam/master/scripts/install.sh | sh -s -- --version v2.0.0Install to custom directory:
INSTALL_DIR=$HOME/bin curl -fsSL https://raw.githubusercontent.com/twilson63/bam/master/scripts/install.sh | shVia npm:
npm install bam -gVia Bun:
bun install -g bam-ssg- Lightning Fast: Powered by Bun for 5x faster builds
- Simple: Minimal configuration, maximum productivity
- Multiple Templates: Skeleton, Bootstrap, Reveal.js, Angular, Pagedown
- Live Reload: Development server with hot reloading
- Markdown Support: GitHub Flavored Markdown out of the box
- Cross-Platform: Works on macOS, Linux, and Windows
Create a new site with http://getskeleton.com
bam new mysiteCreate a new site with http://twitter.github.com/bootstrap
bam new mysite bootstrapCreate a new site with http://revealjs.org
bam new mysite revealcd mysite
bam runOpen http://localhost:3000 in your browser.
bam genYour static site will be in the gen folder.
bam serveOpen http://localhost:8080 to view your generated site.
mysite/
βββ assets/ # Static assets (CSS, JS, images)
βββ layouts/ # Page layouts (EJS templates)
βββ pages/ # Content pages (Markdown, HTML, EJS)
βββ gen/ # Generated static site (after bam gen)
βββ package.json # Project configuration
Create pages in the pages/ directory using:
- Markdown (
.md) - For content-focused pages - HTML (
.html) - For custom layouts - EJS (
.ejs) - For dynamic templates
Example pages/about.md:
---
title: About Us
layout: default
---
# About Our Company
We build amazing static sites with BAM!BAM comes with several built-in templates:
- skeleton - Minimal, responsive CSS framework (default)
- bootstrap - Twitter Bootstrap for rapid development
- reveal - Reveal.js for presentations
- angular - Angular.js single-page applications
- pagedown - Markdown-focused documentation sites
The modernized BAM with Bun support provides:
- 5x faster startup time
- 5x faster build times for 100+ pages
- 50% reduction in memory usage
- Standalone executables (no Node.js required)
# Development mode
BAM_ENV=development bam run
# Custom port
BAM_PORT=4000 bam run
# Production build
BAM_ENV=production bam gen# If installed via curl
curl -fsSL https://raw.githubusercontent.com/twilson63/bam/master/scripts/install.sh | sh -s -- --uninstall
# If installed via npm
npm uninstall -g bamContributions are welcome! Please feel free to submit a Pull Request.
MIT
Created by Tom Wilson (@twilson63)
Modernized with Bun support by the BAM community
Built with β€οΈ using Bun - The fastest JavaScript runtime
