Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Static site generator for large photo galleries with a React dashboard, Handlebars themes, and PWA support.
GoGallery is a static site generator written in Go that converts a folder of photos into a deployable photo gallery website, complete with a React-based management dashboard. It was built for large photo collections that exceed typical hosting limits — the author cites a 5GB gallery of about 1000 images — and avoids databases by treating your existing folder structure (albums) as the source of truth.
GoGallery takes a directory of images arranged in subfolders and generates a static website from them. Input is a photo folder plus an optional YAML config file (default $HOME/.gogallery.yaml); output is a set of HTML pages, optimized images, and PWA assets that you can host on any static file server. The project is open source under the Apache-2.0 license and builds from source with Go 1.20 or newer, using the gogallery build, gogallery serve, gogallery deploy, and gogallery template subcommands.
gogallery serve starts a local server to preview the generated site before deployment.gogallery deploy pushes the built site to a remote static host, though the target host is not specified in the documentation.make fyne-build), offering a native interface for managing galleries.template command extracts the default theme so you can edit Handlebars templates, and a theme development guide is included in the repository.gogallery serve, then push it to your host with gogallery deploy.The workflow is: install Go 1.20+, build the binary with go build -o gogallery main.go (or make build), then run gogallery build pointing at your photo library. The tool reads the folder structure as albums, resizes images into multiple web sizes, applies the Handlebars theme, and writes the static site. Use gogallery serve for a local preview and gogallery deploy for production.
GoGallery is free and open source under the Apache-2.0 license. No paid tiers or hosted service are mentioned.
Yes, GoGallery is licensed under Apache-2.0, so it is free to use, modify, and redistribute. There are no paid tiers or hosting fees described in the project documentation.
You need Go 1.20 or newer to build from source, plus a local folder of photos. The build process uses make build or go build -o gogallery main.go, and optional Fyne desktop features have additional system dependencies.
Yes. The gogallery template subcommand extracts the default theme, and the repository includes a theme development guide under themes/DEVELOPER_README.md. Themes are written with Handlebars templates, so you can edit HTML and styling without touching the Go code.
No. The output is a static site, so any static file host will work. The project's demo is hosted at https://gallery.exceptionerror.io.