Swifty uses convention over configuration to make it super simple to build blazingly fast static sites.
- Markdown pages with YAML front matter
- Automatic image optimization to WebP
- Layouts and partials for reusable templates
- Auto-injected CSS/JS from your css/ and js/ folders
- Code syntax highlighting via highlight.js
- Tags and navigation generated automatically
- RSS feed generation for blogs and content folders
- Optional Turbo for SPA-like transitions
npm install @daz4126/swifty
npx swifty init
npx swifty startThen visit http://localhost:3000
your-site/
├── pages/ # Markdown content (folder structure = URLs)
├── layouts/ # HTML layout templates
├── partials/ # Reusable content snippets
├── css/ # Stylesheets (auto-injected)
├── js/ # JavaScript (auto-injected)
├── images/ # Images (auto-optimized to WebP)
├── template.html # Base HTML template
└── config.yaml # Site configuration
npx swifty init # Create new project structure
npx swifty build # Build static site to dist/ (for production)
npx swifty start # Build, watch, and serve at localhost:3000 (for development)
npx swifty build --out dir # Build to custom output directoryswifty start- For development. Includes live reload (auto-refreshes browser on file changes) and file watching with incremental builds for CSS/JS/images.swifty build- For production deployment. Produces clean output without any development scripts.
See the full documentation for details on configuration, layouts, partials, and more.
