This is a fork of HomeGallery by Sebastian Felis, a self-hosted web gallery to browse the photos and videos of your own disks from the phone or the computer.
The fork adds an albums page that follows the folders of your media, an ‘On This Day’ page, new layouts, orders and settings for the media lists, and a media view that stays out of the way. It also makes long lists faster, fixes a number of bugs and adds a Windows archive build. See Changes from upstream for the details.
Everything else works as in upstream: similar image and face search, the query language, tags, the map, video transcoding, the static export and the API server. For those, see the upstream README and the upstream documentation.
The fork is based on the upstream master after HomeGallery 1.21.0 (June
2026).
Highlights
- Albums. Browse your media by folder, as a tree or as a grid of covers, with “New” and “Updated” badges for recently added albums.
- On This Day. The photos and videos of this day in earlier years.
- Three list layouts. A list with file names and sizes (the new default), a grid of squares, and the justified layout of upstream, in five thumbnail sizes.
- Order by name, date, duration or size, from a settings menu in the nav bar.
- A calmer media view. Videos start on their own and the controls hide after a few seconds.
- Faster long lists, and thumbnails that stay available offline in the installed app.
Changes from upstream
Albums
- A new Albums page lists the folders of your media sources as albums. An album shows its own media and those of its sub-albums.
- The list view shows the album tree, with sub-albums that can be expanded and collapsed. The grid view shows all albums as squares with their cover and their name below.
- Each album has a cover thumbnail with its media count as a badge. The
cover is the first media of the album. A file whose name ends with
_cover, e.g.beach_cover.jpg, is preferred. - Albums whose media were added in the last 3 days get a “New” badge, or “Updated” if only some of their media are new.
- Albums are sorted by name, ascending or descending. The thumbnail size can be changed, and the page remembers its view.
- By default the subfolders of each media source are listed. With
showIndex, each media source is shown as a root album instead. - Only the visible albums are rendered, so a library with thousands of folders stays fast.
On This Day
- A new On This Day page shows the media of today’s date in the earlier years.
- Buttons, or a horizontal swipe, go to the previous or next day. A click on the date goes back to today. The day is kept in the url, so it survives opening a media and going back.
Media lists
- Three layouts, switched in the nav bar:
- list (the new default): one media per row, with its file name and file size,
- grid: the media cropped to squares,
- fluent: the justified layout of upstream, which keeps the aspect ratio.
- Five thumbnail sizes, from extra small to extra large.
- The file name is shown below each thumbnail, and the duration of a video as a badge on it.
- Order by file name, date taken, duration or file size, ascending or
descending. The query language has the new keys
order by file(the full path) andorder by filename(the name only). - A settings menu in the nav bar holds the order, the layout and the thumbnail size of the current page, and resets them to the configured defaults.
- Thumbnails have rounded corners in all layouts.
- The date scrollbar on the right can be turned off.
Media view
- Videos play as soon as they are opened.
- The navigation hides after 3 seconds without mouse movement, or 5 seconds on a touch screen, and stays hidden while you swipe or use the keyboard to move through the media. A tap or a click on the media shows or hides it. While a video plays, the navigation can be shown without pausing the video, and a swipe still moves to the previous or next media.
- The file name of the media is shown in the upper left corner.
- Going back to the list leaves it where it was, with the media you opened at the same place.
- The share link of the media details now also works on a gallery served over plain http, shows whether the link was copied, and can be hidden.
Speed
- During a fast scroll, rows show the main color of their media and load their thumbnails only when the scroll slows down. Thumbnails that are no longer needed stop loading, so the rows you stop at are not stuck behind them.
- The thumbnails of visited lists are kept in memory, so a list you return to is painted right away instead of blank.
- The service worker caches the image previews, so a revisited list loads from the cache and an installed app shows the thumbnails offline.
Pages and navigation
- The first page of the webapp can be configured, e.g. the albums page instead of all media. A reload keeps the page you are on.
- The pages of all media, albums and On This Day can be hidden, like the other pages.
- The pages of the nav bar start at their top, and a new search starts the list at the top without showing the media of the previous search for a moment.
- The installed app (PWA) works for a gallery below a path prefix
(
server.prefix), and has the meta tags for a full screen web app on iOS.
Dates and time zone
- The new
database.timezonesetting decides the clock of the whole gallery.local(the default) keeps the time of the camera, so a photo keeps the day and the hour it was taken at on every device.utcconverts the dates to UTC. - Before, the dates were shown in the time zone of the browser while the date filters used UTC, so photos taken around midnight could appear on the wrong day.
- A date without a time zone no longer depends on the time zone of the machine that built the database. Time zones with half hours, like +05:30, are read correctly.
- Changing the setting, and moving from upstream, needs a rebuild with
gallery database. It reuses the extracted meta data and doesn’t run the extractor again. Until then, an update of the database stops with a message that asks for the rebuild.
Builds
- A Windows x64 archive:
scripts/bundle-win.shbuilds it from Git Bash on a Windows host. It contains its own NodeJS and is started with./run.sh, nothing else has to be installed. - The build binaries workflow can be started by hand for selected targets and attaches the archives to the run, so a fork without the deploy secrets of upstream gets them too. It runs on its own only for release tags.
- The Windows and Mac bundles now contain the image library (sharp). A bundle built on Linux had none, so it created no previews.
- The Docker build installs the npm packages in their own layer, so a change of the sources doesn’t install all packages again.
Bugs fixed
- The path breadcrumb of the media details also showed the media of folders
that start with the same name, e.g.
2026-05also showed2026-05 trip. - A search for a term with
/,&or%didn’t work. - A non-ASCII character in a file path, e.g. an umlaut, could be read as two broken characters, which split its folder in two albums.
- Windows was not detected, so the database stored the preview paths with
backslashes and the config was looked up in the wrong folder. The default
config and cache folder on Windows is now
%USERPROFILE%\home-gallery. - After a reload, the rows of a media list could be one scrollbar wider than the page, which cut off the last thumbnail of each row.
- A media list showed its media in another order for a moment while the database was loading.
Configuration
The new options are listed, with their defaults, in gallery.config-example.yml. All of them are optional.
| Option | Default | Description |
|---|---|---|
database.timezone |
local |
local or utc, see Dates and time zone |
webapp.pages.landing |
all |
First page: all, albums, years, tags or map |
webapp.pages.disabled |
New flags album, onThisDay and all hide these pages |
|
webapp.pages.albums.view |
list |
list (tree) or grid |
webapp.pages.albums.order |
name |
name or nameDesc |
webapp.pages.albums.thumbnailSize |
medium |
xsmall, small, medium, large or xlarge |
webapp.pages.albums.showCover |
true |
Show the cover thumbnails |
webapp.pages.albums.showIndex |
false |
Show each media source as a root album |
webapp.pages.albums.recentDays |
3 |
Days an album is marked as new or updated, 0 turns it off |
webapp.pages.list.thumbnails |
list |
Layout: list, grid or fluent |
webapp.pages.list.thumbnailSize |
medium |
xsmall, small, medium, large or xlarge |
webapp.pages.list.showFilename |
true |
File names below the thumbnails of the grid and fluent layouts |
webapp.pages.list.scrollbar |
true |
Show the date scrollbar |
webapp.pages.list.defaultOrder |
date desc |
Order of a search without order by, e.g. filename asc or filesize desc |
webapp.pages.mediaView.autoPlayVideo |
true |
Start a video when it is opened |
webapp.pages.mediaView.disabled |
New flag share hides the share link, nav also hides the file name |
The view settings of the nav bar are kept by the browser and overrule these defaults until they are reset in the settings menu.
The “New” and “Updated” badges and the time zone need a database built by
this fork. Run gallery database once after moving from upstream or from an
older version of the fork.
Installing
The fork has no releases and no Docker image of its own. Build it in one of these ways.
Docker
git clone https://github.com/jurakovic/home-gallery.git
cd home-gallery && docker build -t home-gallery .
Then use it like the upstream image, with home-gallery instead of
xemle/home-gallery:
mkdir -p data
alias gallery="docker run -ti --rm \
-v $(pwd)/data:/data \
-v $HOME/Pictures:/data/Pictures \
-u $(id -u):$(id -g) \
-p 3000:3000 home-gallery"
gallery init --source /data/Pictures
gallery run server
Open localhost:3000 in the browser. The
configuration is in ./data/config/gallery.config.yml.
From source
It needs NodeJS 20 or later.
git clone https://github.com/jurakovic/home-gallery.git
cd home-gallery && npm install && npm run build
./gallery.js init --source ~/Pictures
./gallery.js run server
Binaries
- Run the build binaries workflow from the Actions tab. Its filter takes
the targets, e.g.
win-x64(the default) orlinux-x64,win-x64, or is left empty for all. The archives are attached to the run for 14 days. -
Or build the Windows x64 archive on a Windows host, from Git Bash:
scripts/bundle-win.shIt writes
dist/<version>/home-gallery-<version>-<branch>-<commit>-win-x64.tar.gz. Unpack it and start the gallery with./run.sh run server.
Upstream
- Upstream README: motivation, features, external services and privacy, development recipes
- Upstream repository and documentation
- CHANGELOG.md: the changes of this fork are in the “Unreleased” section
License
MIT, Copyright 2025 Sebastian Felis.