OpenHearth is configured entirely through host-mapped YAML under config/. The
files are the source of truth; the derived SQLite cache under cache/ is
disposable and never hand-edited. Config is validated on load and
hot-reloaded — a bad edit never crashes the UI.
Ship-ready defaults live in config.example/. There are two
ways to get a working config/:
-
Automatic (container): on startup the server seeds an empty or missing config directory from the bundled examples. If
config/already contains files, it is left untouched. (Controlled byOPENHEARTH_SEED_DIR, which points at the bundledconfig.exampleinside the image.) -
Manual: copy the examples yourself —
cp -r config.example/ config/
The reference docker-compose.yml mounts ./config:/config, so either approach
persists your edits on the host.
config/
├── openhearth.yaml # top-level: UI, library, metadata, server, keybindings
├── services.yaml # the service tile catalog (Strategy A)
└── services.d/ # optional drop-in service definitions (community catalog)
├── disney-plus.yaml
└── spotify.yaml
API keys and other secrets are referenced from the environment using
${VAR} / ${VAR:-default} interpolation and are never committed to YAML.
Interpolation runs on parsed string values (not raw text), so an env value can
only fill the field it appears in. Secret fields (e.g. metadata.tmdbApiKey) are
redacted (***) anywhere the config is returned over the API.
All fields are optional; an empty file is valid. Unknown keys are rejected with a located error.
| Field | Type | Default | Example |
|---|---|---|---|
ui.title |
string | OpenHearth |
My Living Room |
ui.theme |
dark | light |
dark |
dark |
ui.rows |
list of row | (none) | see below |
ui.wallpaper |
wallpaper | (none) | Custom home-screen background. |
ui.screensaver |
screensaver | (on, 5 min) | Idle screensaver. |
ui.slideshow |
slideshow | (off) | Slideshow / digital photo frame. |
A custom image rendered full-bleed behind the home screen, with the tiles and header in front (#118). Editable here by hand, or from the in-app Settings modal (gear icon in the header), which uploads an image into the config volume and writes these keys for you (comments in this file are preserved).
| Field | Type | Default | Notes |
|---|---|---|---|
enabled |
boolean | false |
Show the wallpaper. |
image |
string | (none) | Path relative to the config dir (e.g. wallpaper/background-1.png). Raster only (PNG/JPEG/WebP); .. and absolute paths are rejected. Usually set by the Settings upload. |
opacity |
number 0–1 |
1 |
Wallpaper opacity. Lower values fade it toward the background (the "transparency level"). |
ui:
wallpaper:
enabled: true
image: wallpaper/background-1.png
opacity: 0.8Uploaded wallpapers are stored under
config/wallpaper/. Settings changes made in the app are written back to this file in place — your comments and layout survive. Ifopenhearth.yamlhas a YAML syntax error, the app won't overwrite it; fix the error first.
After the interface sits idle for timeoutMinutes, a full-screen screensaver
takes over to prevent panel burn-in (#126). Any key, click, or remote press
dismisses it instantly and returns you to exactly where you were. It never
appears while a video is playing. Editable here or from the in-app Settings
modal.
| Field | Type | Default | Notes |
|---|---|---|---|
enabled |
boolean | true |
Activate the screensaver on idle. |
timeoutMinutes |
integer 1–240 |
5 |
Idle minutes before it starts. |
type |
aurora |
aurora |
Which screensaver to show. aurora is slowly drifting colour fields with a wandering clock. |
ui:
screensaver:
enabled: true
timeoutMinutes: 10
type: auroraA slideshow / digital photo frame (#164). It cycles through your photos on the
TV and can run two ways: as the idle screensaver (set useAsScreensaver: true) and on demand from the home-screen header. Images come from two
sources, combined: photos uploaded through the in-app Settings modal
(stored under config/slideshow/uploads/) and any host-mapped folders you
declare in sources. Full design: slideshow-plan.md.
| Field | Type | Default | Notes |
|---|---|---|---|
useAsScreensaver |
boolean | false |
Show the slideshow on idle instead of the screensaver. With no images available it falls back to the configured screensaver, so the idle screen is never blank. |
intervalSeconds |
integer 3–3600 |
8 |
Seconds each image is shown. |
transition |
cut | fade | crossfade | wipe |
crossfade |
Animation between images. cut is instant; fade goes through black; crossfade dissolves; wipe reveals with a moving edge. |
order |
sequential | shuffle |
sequential |
Play in folder/upload order, or shuffle. |
sources |
list of source | (none) | Host-mapped folders scanned for images. |
Each sources[] entry:
| Field | Required | Type | Notes |
|---|---|---|---|
id |
yes | string | Stable id (used to derive image ids). |
label |
no | string | Display label. |
path |
yes | string | Host-mapped path inside the container (e.g. /photos). Read-only; scanned for raster images (PNG/JPEG/WebP/GIF). Symlinks that escape the folder are ignored. |
recursive |
no | boolean | Descend into subfolders. Defaults to false (top level only). |
ui:
slideshow:
useAsScreensaver: true
intervalSeconds: 10
transition: crossfade
order: shuffle
sources:
- id: photos
label: Family Photos
path: /photos # mount `./my-photos:/photos:ro`
recursive: falseUploaded photos are stored under
config/slideshow/uploads/(add or remove them from Settings). Foldersourcesare configured here — folders can't be chosen from the sandboxed browser, so the container only ever sees what you mount. Like all image routes, serving is raster-only, path-contained, andnosniff(no SVG).
Each row renders a service grid, a library shelf, or a derived row, in order.
| Field | Required | Type | Notes |
|---|---|---|---|
type |
yes | services | library | continue_watching | next_up |
What the row renders. |
group |
no | string | For type: services — which service group to show. |
source |
no | string | For type: library — which library.sources[].id to show. |
title |
no | string | Override the row heading (for continue_watching/next_up). |
limit |
no | integer 1–100 |
Max tiles for continue_watching/next_up. |
Continue Watching / Next Up (#155) are derived from your local resume and watch history — no telemetry, nothing leaves the box:
continue_watching— items you've started but not finished, most-recently-watched first. Selecting one jumps straight into the player (which offers resume vs. start over). An item watched to the end (or past ~95% of a known duration) drops off.next_up— the next unwatched episode for each series you've made progress in. An episode is recorded "watched" when it plays to the end; Next Up then surfaces the following episode (skipping any episode you're already mid-way through — that one shows in Continue Watching instead).
Both rows only appear when they have something to show — a cold cache/ or
nothing in progress simply hides them (they're rebuilt from the disposable cache).
ui:
title: OpenHearth
theme: dark
rows:
- { type: continue_watching }
- { type: next_up, title: Up Next, limit: 10 }
- { type: services, group: Streaming }
- { type: library, source: movies }| Field | Type | Default | Notes |
|---|---|---|---|
library.sources |
list of source | (none) | Local-media folders to scan. |
library.integrations |
list of objects | [] |
Optional read-only Jellyfin/Plex reads (a Should, not a Must). |
| Field | Required | Type | Notes |
|---|---|---|---|
id |
yes | string | Stable id referenced by ui.rows[].source. |
label |
no | string | Display label for the shelf. |
path |
yes | string | Absolute host-mapped, read-only path inside the container (e.g. /media/movies). Must start with /. A relative path is resolved against the server's working directory (/app), not /media, so it won't be found — the scan logs a warning and playback returns 403. |
kind |
no | movies | tv | music | mixed |
Hint for naming detection. |
library:
sources:
- id: movies
label: Movies
path: /media/movies
kind: movies
integrations: []Paths are container paths, and must be absolute.
pathis where the folder lives inside the container (the right-hand side of your:/mediavolume mount), not a host path or a Windows drive. Mount your media at/mediaindocker-compose.yml, then point each source at an absolute subfolder of it (/media/Movies,/media/TV). A bare relative value likeMoviesresolves against the server's working directory (/app), finds nothing, and the file never validates as inside a library root — playback returns 403. The scan logs alibrary source root not foundwarning naming the resolved path so this fails loudly rather than silently. For mounting a network share at/mediaon Windows, see host-parity.md.
| Field | Type | Default | Notes |
|---|---|---|---|
metadata.provider |
tmdb |
(none) | The metadata provider. Optional — the app is fully usable without one. |
metadata.tmdbApiKey |
string | (none) | TMDB key. Use ${TMDB_API_KEY} interpolation; never commit a key. Redacted in API responses. |
metadata.language |
string | (none) | Preferred metadata language (BCP-47), e.g. en-US. |
metadata:
provider: tmdb
language: en-US
# tmdbApiKey: ${TMDB_API_KEY}| Field | Type | Default | Notes |
|---|---|---|---|
server.port |
integer (1–65535) | 8080 |
TCP port the server binds. Changing it requires a restart. |
server.host |
string | 0.0.0.0 |
Bind address. 127.0.0.1 restricts to loopback. The HOST env var takes precedence. Restart to apply. |
server.logLevel |
silent | error | warn | info | debug | trace |
info |
Structured-log verbosity. Hot-reloadable. |
server.auth.token |
string (secret) | (unset) | Optional shared bearer token (§ Security). Unset = open on a trusted LAN. Use ${VAR} to inject from the environment. |
Port precedence & the container healthcheck.
server.port(when set) takes precedence over thePORTenvironment variable. The bundled image'sHEALTHCHECKand the reference compose port mapping target8080. If you setserver.portto a non-default value, also update the composeports:mapping and be aware the bundled healthcheck probes$PORT(default8080) — so a changedserver.portwill report the container unhealthy unlessPORTis set to match. The simplest path is to leaveserver.portat8080and remap on the host side (ports: ["9000:8080"]).
server:
port: 8080
logLevel: infoOpenHearth assumes a trusted home LAN and ships with no authentication by default — loopback and LAN clients work out of the box. Two knobs harden a deployment on a shared or untrusted network:
1. Bind address (server.host). By default the server listens on all
interfaces (0.0.0.0). To keep it off the LAN entirely — e.g. a kiosk that only
ever talks to localhost — bind to loopback:
server:
host: 127.0.0.1(The HOST environment variable, if set, overrides this.)
2. Shared-token auth (server.auth.token). Set a token to require it on every
API and WebSocket request. Keep the secret out of the YAML with ${VAR}
interpolation:
server:
auth:
token: ${OPENHEARTH_TOKEN} # from the environment; never commit the literalWhen a token is set, a client authenticates by presenting it in any of:
- the
Authorization: Bearer <token>HTTP header, - a
?token=<token>query parameter (for the WebSocket handshake, or clients that can't set headers), or - the protocol
authfield on a control command.
GET /api/v1/health stays open (so container/liveness probes still work); the
token is redacted from GET /api/v1/config and never logged. An unauthenticated
request gets 401 { "status": "unauthorized" }; an unauthenticated WebSocket
upgrade is rejected.
Kiosk note. The bundled web UI does not yet thread the token through its own API calls, so enabling
server.auth.tokenis intended for protecting the API from other clients (e.g. a phone remote) on an exposed network. For the standard single-box kiosk, prefer binding to127.0.0.1. Threading the token into the kiosk launch is covered by the kiosk deployment docs.
Local-media transcoding options (Strategy C). When a file's container/codecs are browser-playable it streams directly with HTTP range support; otherwise the server transcodes it to H.264/AAC fragmented MP4 with ffmpeg. CPU is the default and the guaranteed path — GPU acceleration is opt-in and per-host (full setup, verification, and Windows/WSL2 caveats in deployment/gpu-transcoding.md).
| Field | Type | Default | Notes |
|---|---|---|---|
transcode.hwaccel |
none | vaapi | nvenc | qsv |
none |
Hardware encoder. none uses libx264 (CPU). |
transcode.device |
path | — | Render node for VAAPI/QSV (e.g. /dev/dri/renderD128). |
transcode:
hwaccel: none
# device: /dev/dri/renderD128The stream endpoint is
GET /api/v1/library/:id/stream. It direct-plays withRangesupport (206/416) when possible, and otherwise transcodes; a?t=<sec>query starts a transcode at an offset (for resume/seek).
A map of logical binding name → list of physical key names
(KeyboardEvent.key
values). Every binding you set replaces that binding's default keys; bindings
you omit keep their defaults. Multiple keys may map to one binding, and each
binding maps to exactly one action in the protocol vocabulary.
Changes take effect after the config hot-reloads — no restart (FR-R4).
| Type | Default | Notes |
|---|---|---|
| map of string → string[] | the table below | Set only the bindings you want to change. |
Default bindings:
| Binding | Action | Default keys |
|---|---|---|
up / down / left / right |
navigate |
ArrowUp / ArrowDown / ArrowLeft / ArrowRight |
select |
select |
Enter |
play_pause |
play_pause |
Space (" ") |
stop |
stop |
(none — bind your own) |
home |
home |
Home, BrowserHome — reserved |
back |
back |
Backspace, Escape, BrowserBack — reserved |
Reserved bindings. home and back are reserved (FR-A3 / NFR-5): home
always returns to the OpenHearth home screen and the kiosk intercepts the Home/Back
keys before any launched service can see them. You may add keys to a reserved
binding, but its default keys are always kept and cannot be reassigned to another
action — so Home/Back can never be configured into uselessness. Configuring an
unknown binding name, or two bindings that claim the same key, is non-fatal: the
UI keeps working and logs a warning (the first binding to claim a key keeps it).
In the player, left / right seek ±10s and up cycles subtitle tracks; on the
home/detail grids the same keys move focus — the binding is the same, the effect
is contextual.
keybindings:
# Override only what you want; everything else keeps its default.
up: [ArrowUp, w]
down: [ArrowDown, s]
select: [Enter]
play_pause: [' ', p]
stop: [x]
home: [Home, h] # adds `h`; Home/BrowserHome are always keptThe service tile catalog. A services: list of tile definitions; selecting a tile
navigates the kiosk to its launch_url. Files in services.d/ are drop-in
definitions merged on top of services.yaml (the shareable community catalog).
A note on field casing. Service fields use
snake_case(launch_url,user_agent) whileopenhearth.yamlusescamelCase(tmdbApiKey,logLevel). This is deliberate: service definitions follow the shareable community-catalog convention from PRD §10.3, so drop-in files match upstream examples.launch_urlmust be anhttp(s)URL.
Per-entry validation. Each tile is validated by the
CatalogServiceagainst the schema below. A malformed tile is reported as a non-fatal error and skipped — the rest of the catalog still renders.launch_urlmust be anhttp(s)URL andiconmust be abundled:<slug>reference, anhttp(s)URL, or a safe relative filename (no scheme, not absolute, no..).
| Field | Required | Type | Notes |
|---|---|---|---|
id |
yes | string | Unique, stable identifier. |
name |
yes | string | Display label on the tile. |
launch_url |
yes | URL | Where the kiosk navigates on select. |
icon |
no | ref/path/URL | bundled:<slug>, a local file in config/, a remote URL, or omitted (metadata fallback). See Service icons. |
group |
no | string | Row/section grouping (matched by ui.rows[].group). |
order |
no | integer | Sort hint within a group. |
user_agent |
no | string | Optional UA override for kiosk compatibility. |
notes |
no | string | Human notes; ignored by the app. |
services:
- id: netflix
name: Netflix
launch_url: https://www.netflix.com/
icon: bundled:netflix
group: Streaming
order: 10The field reference above mirrors PRD §10.3.
The icon field resolves in one of four ways. The default catalog uses
bundled:*, so tiles have real logos out of the box; you override per tile.
icon value |
Resolves to | Notes |
|---|---|---|
bundled:<slug> |
A logo from the shipped icon set (assets/service-icons/<slug>.svg). |
The default for every seeded service. <slug> is [a-z0-9-]. |
https://… / http://… |
A remote image, loaded directly by the kiosk. | No proxying; the kiosk fetches it. |
name.png (bare/relative) |
A file you place in config/ (next to the YAML). |
Raster only — png, jpg/jpeg, webp, gif. svg is rejected (a user SVG could carry inline <script> → stored XSS). |
| omitted | No icon; the tile shows a placeholder (the service initial), or metadata artwork where available. |
Bundled set. The shipped logos come from
homarr-labs/dashboard-icons
(Apache-2.0); see assets/service-icons/README.md
for the full list, provenance, and how to add more. Available slugs match the
seeded service ids: netflix, youtube, youtube-tv, sling-tv,
disney-plus, hulu, max, prime-video, apple-tv, peacock,
paramount-plus, plex, spotify.
Overriding a bundled icon. A user-supplied icon always wins. To replace
Netflix's logo with your own, drop the file in config/ and point icon at it:
services:
- id: netflix
name: Netflix
launch_url: https://www.netflix.com/
icon: my-netflix.png # ./config/my-netflix.png — overrides bundled:netflixPointing a custom service at a bundled logo. Any service may reuse a bundled
slug, e.g. a self-hosted Jellyfin tile could use icon: bundled:max — though
normally you'd ship your own image.
The bundled directory is configurable via the OPENHEARTH_ICONS_DIR environment
variable (default /app/service-icons in the image); bundled: icons simply
fall back to the placeholder if the directory is absent.
OpenHearth ships a starter catalog so you don't have to re-author the same tiles
everyone needs. It lives in config.example/:
services.yaml— the base tiles (Netflix, YouTube).services.d/*.yaml— one drop-in file per service (Max, Disney+, Prime Video, Hulu, Peacock, Paramount+, Apple TV, YouTube TV, Spotify, …).
How merging works. On load the server reads services.yaml first, then each
services.d/*.yaml in filename order. Tiles are keyed by id; a later
definition with the same id overrides an earlier one. So to customize a
shipped tile, drop a file later in the sort order (or edit the entry in place)
that reuses its id.
Importing / extending the catalog.
- Copy the tiles you want from
config.example/services.yamlandconfig.example/services.d/into your ownconfig/services.yaml(orconfig/services.d/). The first-run seed already copies these for you; you only need to curate which tiles appear. - Remove the tiles you don't subscribe to — every tile in the file becomes a visible launcher tile.
- Add your own: a tile is just
id+name+launch_url(+ optionalicon,group,order,user_agent,notes). Drop it in a newservices.d/<your-service>.yaml. - Edits hot-reload — no restart needed.
Compatibility notes (notes). Each shipped entry carries a notes field
documenting known kiosk/DRM caveats (PRD §18) — the app ignores it, it's for
you. The recurring ones:
- DRM is a hard wall. Commercial services are Widevine/PlayReady-wrapped. OpenHearth launches their players; it can't decode them, and it can't strip ads inside an ad-tier plan.
- Widevine L3. A generic Chromium usually only has Widevine L3, which several services cap at 480p/720p. This is a property of your host browser's CDM, not a per-tile setting — for 1080p+ you need an L1/CDM-capable browser.
- Kiosk detection / user agent. A few services serve a different UI (or
refuse) to embedded/kiosk browsers. Set
user_agenton the tile to present a TV- or desktop-class UA if you get the wrong surface. - Regional availability. Several tiles (Hulu, Peacock, YouTube TV) are
region-locked or use region-specific URLs — adjust
launch_urlfor yours.
openhearth.yamlis validated against the published schema on load; located, human-readable errors are surfaced as non-fatal banners.- Editing a watched file applies without a restart (where the field supports it;
server.portis the exception and logs a warning prompting a restart). - On an invalid edit, the server keeps serving the last-good config and reports the error — the UI never crashes (NFR-4).
config/ is a bind mount (./config:/config), not copied into the image —
so a host edit is visible inside the container immediately. But native
filesystem events (inotify) do not propagate across a bind mount when the
file is edited on the host, so the watcher polls by default. This is why a host
edit applies live rather than only after a container restart/rebuild.
Polling is controlled by OPENHEARTH_CONFIG_POLL (default on). On a host where
native events reliably reach the container you can set
OPENHEARTH_CONFIG_POLL=0 to disable polling and avoid its small CPU cost; the
watcher then relies on native events.