Create beautiful photo galleries from collections in just 30 seconds. No configuration required to get started—simply run two commands in your photos folder and create a static gallery website you can self-host.
This is a free, open-source tool that you can use to generate galleries and self-host them. If you don't want to use the command line or bother with self-hostting, please check out simple.photo for a hosted solution.
Quick Start
To create a gallery you need to install he simple-photo-gallery package globally and then you can use the spg command:
npm install -g simple-photo-gallery@latest
spg init
spg build
Alternatively you can use npx to run the commands directly:
npx simple-photo-gallery@latest init
npx simple-photo-gallery@latest build
This will:
- Install the simple-photo-gallery package from NPM (if you don't already have it)
- Prompt you for your gallery title, description, and header image
- Scan your photos and create a
gallery.jsonfile - Generate optimized thumbnails
- Build a static HTML gallery that you can open in your browser and self-host
To publish a gallery straight from a GitHub repository, create your own repository from the GitHub Pages template. Push photos to it and a GitHub Actions workflow builds and deploys the site.
Installation Requirements
- Node.js 22.23.5+ - Download here
- FFmpeg (for video support) - Install via:
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt install ffmpeg - Windows: Download from ffmpeg.org
- macOS:
Supported Formats
Images: JPEG, PNG, WebP, GIF, TIFF
Videos: MP4, MOV, AVI, WebM, MKV