Skip to content
Skip to Content
Documentation
On this page

Archive documentation for v0.4.1. Read the current release guide.

Read raw source โ†—

Architecture

The portable executable is a Go host. It embeds the statically exported React and Next.js interface, opens a local HTTP listener on an available loopback port, and launches the interface in an installed Chromium-family browser's app mode. The launcher gives that window a separate browser profile for the gallery. The public documentation website is independent of this local process.

Local Media Gallery runtimeThe portable executable launches the Go host and a dedicated browser window. The browser exchanges local requests with the host, which reads the selected media folder and stores state in SQLite.Scroll within the diagram to inspect wide relationships. Its source is available below.
Local Media Gallery runtimeThe portable executable launches the Go host and a dedicated browser window. The browser exchanges local requests with the host, which reads the selected media folder and stores state in SQLite.Session requests and localmediaRecursive discovery andread-only mediaIndex, favorites andpreferencesPortableexecutableGo host on127.0.0.1Installedbrowser in appmodeSelected mediafolderSQLite in userconfiguration
Local Media Gallery runtimeThe portable executable launches the Go host and a dedicated browser window. The browser exchanges local requests with the host, which reads the selected media folder and stores state in SQLite.Session requests and localmediaRecursive discovery andread-only mediaIndex, favorites andpreferencesPortableexecutableGo host on127.0.0.1Installedbrowser in appmodeSelected mediafolderSQLite in userconfiguration
Diagram source
flowchart TD
    Launch["Portable executable"] --> Host["Go host on 127.0.0.1"]
    Launch --> Window["Installed browser in app mode"]
    Window -->|"Session requests and local media"| Host
    Host -->|"Recursive discovery and read-only media"| Folder["Selected media folder"]
    Host -->|"Index, favorites and preferences"| State["SQLite in user configuration"]

Component ownership

The host owns folder selection, file discovery, index updates, preferences, media delivery, and session lifetime. It only serves media from the current gallery. A gallery change starts a new generation, which prevents requests belonging to the previous folder from changing or serving the new one.

The browser owns rendering, media decoding and playback, as well as the preview queue and gallery layout. The installed browser's decoder support determines whether a given original can play or render. Browsing and playback

SQLite stores the discovered index and gallery-specific preferences and favorites. A previously completed index provides the initial list while a fresh scan runs. Configuration and state

Search documentation