Home page
dumb://home is Dumber's start page. It shows built-in widgets (search, clock, favorites, top sites, recent history), bookmark groups and service rows for your own services. Each group is a column of rows. A service row can show a live API widget, an embedded panel and action buttons.
Files
| File | Purpose |
|---|---|
~/.config/dumber/home.toml |
Page layout. Without it, a default layout is used. Open config on the page creates a starter file. |
~/.config/dumber/user.css |
Your CSS for every dumb:// page. |
Both files reload while the browser runs: save the file and open pages update. When home.toml has a syntax or validation error, the page keeps the last valid layout and lists the errors with their key path.
Two settings in config.toml open the page:
[workspace]
startup_url = "dumb://home" # first window when no URL is given and no session is restored
new_pane_url = "dumb://home" # new panes and tabs
home.toml reference
Unknown keys are errors. Text values are trimmed.
[settings]
| Key | Type | Default | Rules |
|---|---|---|---|
title |
string | "Home" |
Empty means the default |
columns |
int | 3 |
1-6. Maximum number of group columns. A column is at least 19rem wide, so the 64rem page fits at most 3 |
status |
bool | false |
Check whether services with a url answer. See Service status |
[[widgets]]
Built-in widgets, shown at the top in file order. Without home.toml the default is search, clock (24h), favorites, top sites and recent (limit 8 each).
| Key | Type | Applies to | Default | Rules |
|---|---|---|---|---|
type |
string | all | - | search, clock, favorites, top_sites, recent |
format |
string | clock |
"24h" |
24h or 12h |
limit |
int | favorites, top_sites, recent |
8 |
1-50 |
tag |
string | favorites |
- | Show only favorites with this tag |
[[bookmarks]]
| Key | Type | Rules |
|---|---|---|
group |
string | Required |
links |
array of { name, url } |
name required, url must be http(s):// |
[[groups]] and [[groups.services]]
| Key | Type | Rules |
|---|---|---|
groups.name |
string | Required |
id |
string | Required, [a-z0-9_-]{1,64}, unique across all groups |
name |
string | Required |
url |
string | Optional, http(s)://; the row links to it |
description |
string | Optional |
status |
bool | Optional. Turns the status check on or off for this service, over settings.status. Ignored without url |
icon |
string | Optional path relative to ~/.config/dumber/, no .., extension .svg, .png, .ico or .webp. Without it, the icon is discovered from url. |
[groups.services.widget]
| Key | Type | Applies to | Default | Rules |
|---|---|---|---|---|
type |
string | all | - | api or embed |
url |
string | all | - | http(s)://; see Embeds for embed limits |
headers |
table | api |
- | Not allowed on embed |
refresh |
duration | api |
"60s" |
At least 5s |
timeout |
duration | api |
"10s" |
Above 0, at most 60s |
display |
string | api |
"stats" |
stats, list, bar |
fields |
array | api |
- | At least one, unless template is set |
items |
string | api |
- | Path to an array, only with display = "list" |
template |
string | api |
- | HTML template, at most 16 KiB. Replaces display. Not allowed on embed |
height |
int (px) | embed |
240 |
80-2000 |
Durations use Go syntax: 30s, 5m, 1h30m.
Each field is { label, path, format }. label and path are required, and format defaults to text.
[[groups.services.actions]]
| Key | Type | Default | Rules |
|---|---|---|---|
id |
string | - | Required, [a-z0-9_-]{1,64}, unique per service |
label |
string | - | Required |
method |
string | "POST" |
GET, POST, PUT, PATCH, DELETE |
url |
string | - | http(s):// |
headers |
table | - | |
body |
string | - | Request body |
confirm |
string | - | When set, the page asks this question before sending |
inputs |
array | - | Values typed by the user, see Actions |
Search
The search widget filters the page and opens addresses and web searches. Its engine is default_search_engine from config.toml, and its bangs are the search_shortcuts keys (see configuration).
What you type decides what Enter does. The chip on the right of the field shows the engine Enter uses, and the hint line under it says what Enter opens.
| You type | Rows | Chip | Enter |
|---|---|---|---|
| Words that match services, bookmarks or list rows | Only matching rows show; the first one is selected | default engine, dimmed | Opens the selected row |
| Words that match nothing | All rows hide | default engine | Searches the default engine |
An address (pve.lan, https://…) |
Matching rows show | Address |
Opens the first matching row, else the address |
!key query |
Unchanged | the shortcut's engine, tinted | Searches that engine |
! and the start of a key |
Unchanged | default engine, dimmed | The hint lists the matching keys |
Matching is a case-insensitive substring of the name, description and address of a service, or of the title and address of a row. History suggestions show under the hint, except after a !.
Keys:
| Key | Where | Action |
|---|---|---|
/ |
Page, outside a text field | Focus the search |
↑ ↓ |
Search | Move the selection over matching rows, then suggestions |
Enter |
Search | Open the selected row, else what the hint says. A selected row without url searches the web |
Shift+Enter |
Search | Search the web, or open the typed address. After !key, same as Enter |
Escape |
Search | Clear the query; a second Escape leaves the field |
← → |
Service row | Move to the same row in the previous or next group |
↑ ↓ |
Service row | Move to the previous or next row |
A typed query survives home.toml reloads: new rows are filtered as they appear.
Service status
With status = true in [settings], or on a service, each checked service row ends with a dot. The browser process probes the service url when the page opens, then every 60 seconds while it stays open. A probe sends HEAD (then GET if the server refuses HEAD), follows no redirect and gives up after 5 seconds. Results are reused for 30 seconds.
| Dot | State | Means |
|---|---|---|
| Green | Up | Any HTTP answer below 500, including redirects, 401 and 403, or an answer whose TLS certificate could not be verified |
| Amber | Error | A 5xx answer |
| Red | Down | No answer: refused, unreachable or timed out |
| Grey | Checking | No result yet |
The dot's tooltip gives the state, the rounded latency, an unverified certificate or the HTTP code, for example Up · 40 ms or Error · HTTP 503.
While at least one service is checked, the header reads N services · M offline (error and down count as offline) and each group title shows up/total over its checked services, once every checked service of the group has a result. Editing home.toml starts or stops the checks; with none left, dots and counters disappear.
[settings]
status = true
[[groups.services]]
id = "printer"
name = "Printer"
url = "http://printer.lan"
status = false # never probe this one
API widgets
Dumber requests url (GET, at most 2 MiB, User-Agent dumber-home). It follows at most 3 redirects, and only within the same scheme, host and port: a redirect to another origin or from https to http is an error, so headers and bodies never leave the configured service. Dumber then parses the JSON and shows each field.
Field paths use dot keys and [n] indexes, starting from the JSON root:
| Path | Reads |
|---|---|
MovieCount |
{"MovieCount": 42} |
data.items[0].count |
nested objects and arrays |
[2].name |
a root array |
"a.b".c |
a key that contains dots |
Formats:
| Format | Example |
|---|---|
text |
value as-is |
number |
1,234,567.89 (at most 2 decimals) |
percent |
0.42 and 42 both show 42% (values up to 1 are ratios) |
bytes |
1.5 KiB, 3.2 GiB |
duration |
seconds as 1h 2m, 3d 4h |
Lists: with display = "list", set items to the path of an array. Each element becomes a row, and field paths are read from the element. Without items, a JSON root array is used.
[groups.services.widget]
type = "api"
url = "https://example.local/api/jobs"
display = "list"
items = "data.jobs"
fields = [ { label = "Job", path = "name" }, { label = "Done", path = "progress", format = "percent" } ]
Templates: template renders your own HTML with Go html/template syntax. It receives .data (the parsed JSON) and .fields (formatted field values by label). Helpers: format "number" .data.x (any field format), default "n/a" .data.x, join ", " .data.list. Dumber renders it in the browser process (at most 2 s and 64 KiB of output) and sanitizes the result with an allowlist:
- Kept: basic text, list, table and layout tags (
div,span,p,strong,ul,table,h1-h6,progress,meter, ...),aandimgwithhttp(s)URLs (anddata:image/*for images),class,title,data-*attributes and a few inline styles (color,background-color,width,height,display, ...). - Removed:
script,style,iframe, forms,svg, event handlers,id,name,data-sv-*, and anyjavascript:orurl(...)value.
A template error shows template error: ... on the row. The template is not run again until you edit that widget, or for at least 5 minutes (3 refresh periods for slow widgets). {{ range }} over a number (such as {{ range 10 }} or {{ range len .data.x }}) is rejected; range over arrays from .data instead. {{ define }}, {{ block }} and {{ template }} are not allowed. Arrays in .data are cut to their first 500 items, objects to their first 500 keys in sorted order, and ranges cannot nest more than 2 deep.
[groups.services.widget]
type = "api"
url = "https://example.local/api/stats"
fields = [ { label = "Movies", path = "MovieCount", format = "number" } ]
template = """
<strong>{{ index .fields "Movies" }}</strong> movies
{{ if .data.Updating }}<em>updating</em>{{ end }}
"""
Secrets: write {{env.NAME}} in url, headers and action url, headers and body. Dumber replaces it with the environment variable NAME of the browser process. A missing variable is an error that names the variable. Keep tokens in the environment, not in home.toml. In a JSON body (one that starts with { or [), a {{env.NAME}} inside a string is JSON-escaped; outside a string its value must be a single JSON value, such as a number.
Embeds
embed shows url in an iframe, height pixels tall. The embedded site must allow framing: some services send X-Frame-Options or frame-ancestors and refuse to be embedded.
- URL: absolute
http(s)://only, without user name or password. Dumber's internal hostdumber.invalidand its subdomains are refused, including look-alike spellings (the host is IDNA-mapped like a browser does, and hosts with%escapes are refused). - Sandbox:
allow-scripts allow-same-origin allow-forms allow-popups, withreferrerpolicy="no-referrer". The embed runs as its own site but cannot navigate the home page. - Isolation: an embed never reaches Dumber's page bridge or internal API, cannot navigate itself or a popup to a
dumb://page, and cannot open one in a popup. - Local network: with CEF, only the origins of your
embedURLs (scheme, host and port) may reach LAN, private and loopback addresses fromdumb://home. A frame or request from any other origin, such as a page an embed navigated to or a frame nested inside an embed, is blocked when it targets one. Regular sites must ask (see Permissions). - Reloads: saving
home.tomlkeeps every unchanged embed running with its loaded page, including when actions, widgets or other services change. An embed reloads only when its URL or height changes, when its service moves to another group, or when services are reordered.
Actions
Each action is a button on the service row, shown on hover, keyboard focus or selection. With confirm, the page asks for confirmation first. The browser process sends the request and the page only shows whether it succeeded. Only one request per action runs at a time.
Inputs ask the user for values before sending. Each input is { name, label, placeholder }. name matches [A-Za-z_][A-Za-z0-9_]{0,63} and is unique per action, label is required and placeholder is optional. Use {{input.NAME}} in two places only:
url, after the host: in the path, query or fragment. The value is URL-encoded. The scheme, host and port must be written literally (or with{{env.NAME}}), so a typed value can never send the request elsewhere.- A JSON
body, inside a string literal such asbody = '{"query": "{{input.query}}"}', where the value is JSON-escaped. The body must be valid JSON once inputs are filled in.
Inputs in headers, in a non-JSON body, or outside a JSON string are rejected when home.toml loads, and so is an input that is not declared. Typed values are inserted as plain text: {{env.X}} typed by a user is never expanded.
[[groups.services.actions]]
id = "search"
label = "Search"
url = "https://example.local/api/search?q={{input.query}}"
inputs = [ { name = "query", label = "Title", placeholder = "Movie title" } ]
Service icons
Each service row shows an icon, fetched at 128px:
icon, a local file relative to~/.config/dumber/(.svg,.png,.ico,.webp).- Otherwise Dumber reads the page at
urland picks the best candidate: SVG icon, then web app manifest icons, thenapple-touch-icon, then the favicon (/favicon.icolast). - When nothing works, the row shows the first letter of the service name.
Discovery runs in the browser process. On private and LAN addresses it only follows the service's own host and port, so links, manifests and redirects cannot send it to other machines on your network.
Security model
home.tomlanduser.csscannot run JavaScript.- Secrets stay in the browser process. The page never sees headers, action URLs, action bodies or API widget URLs; it only receives formatted field values, sanitized template HTML and action results.
- Requests may target private and LAN addresses, so you can reach your own services.
- Requests carry no cookies.
Styling with user.css
~/.config/dumber/user.css is loaded after the built-in styles on every dumb:// page.
Theme variables (set on :root, follow the browser theme):
| Group | Variables |
|---|---|
| Colors | --sv-background, --sv-surface, --sv-surface-variant, --sv-text, --sv-muted, --sv-muted-text, --sv-accent, --sv-accent-ink, --sv-accent-text, --sv-success, --sv-danger, --sv-danger-text, --sv-selection, --sv-hover, --sv-hover-strong, --sv-chip |
| Borders | --sv-border, --sv-hairline, --sv-content-border, --sv-panel-border |
| Radii | --sv-radius-panel, --sv-radius-control, --sv-radius-row, --sv-radius-chip |
| Type | --sv-font-sans, --sv-font-mono, --sv-font-size, --sv-header-font |
| Effects | --sv-float-shadow, --sv-ease |
| Status | --sv-ok, --sv-warn, --sv-down |
Page classes: the page root has sv-route-<page> (sv-route-home, sv-route-history, sv-route-favorites, sv-route-config), so you can target one page.
Home classes:
| Part | Classes |
|---|---|
| Page | sv-home, sv-home-region (sv-home-region-groups for the service area), sv-home-header, sv-home-title, sv-home-ghost, sv-home-open-config, sv-home-status-summary, sv-home-status-offline, sv-home-status-offline-some (at least one offline), sv-home-section-title, sv-home-muted |
| Widgets | sv-home-widget, sv-home-widget-<type>, sv-home-clock, sv-home-clock-date, sv-home-clock-sep, sv-home-clock-time, sv-home-search, sv-home-search-field, sv-home-search-input, sv-home-search-engine, sv-home-search-engine-icon, sv-home-search-engine-has-image, sv-home-search-engine-glyph, sv-home-search-engine-name, sv-home-search-key, sv-home-search-hint, sv-home-search-url, sv-home-suggestions, sv-home-suggestion, sv-home-rows, sv-home-row, sv-home-row-text, sv-home-row-title, sv-home-row-url, sv-home-loading, sv-home-skeleton |
| Bookmarks | sv-home-bookmarks, sv-home-bookmark-group |
| Services | sv-home-groups, sv-home-group, sv-home-group-head, sv-home-group-count, sv-home-grid, sv-home-service, sv-home-service-tile, sv-home-service-link, sv-home-service-icon, sv-home-service-icon-has-image, sv-home-service-glyph, sv-home-service-text, sv-home-service-name, sv-home-service-description, sv-home-service-widget, sv-home-service-actions, sv-home-service-status, sv-home-status-dot, sv-home-service-embed, sv-home-embed |
| API widget | sv-home-svc, sv-home-svc-display-<display>, sv-home-svc-loading, sv-home-svc-stale, sv-home-svc-stale-badge, sv-home-svc-inline, sv-home-svc-error, sv-home-svc-stats, sv-home-svc-field-pair, sv-home-svc-label, sv-home-svc-value, sv-home-svc-list, sv-home-svc-row, sv-home-svc-cell, sv-home-svc-bars, sv-home-svc-bar, sv-home-svc-track, sv-home-svc-fill, sv-home-svc-html |
| Actions | sv-home-svc-actions, sv-home-svc-action, sv-home-svc-field, sv-home-svc-confirm, sv-home-svc-confirm-text, sv-home-svc-form, sv-home-svc-form-buttons |
| Errors | sv-home-errors, sv-home-errors-title, sv-home-error-list, sv-home-error, sv-home-error-path |
The search input is a bare field inside sv-home-search-field and does not use the shared sv-input class: style the field box through sv-home-search-field.
Search state attributes:
| Attribute | On | Meaning |
|---|---|---|
data-sv-home-item |
service links (service), bookmark and list rows (row) |
Searchable entry, with data-sv-home-name, data-sv-home-text and data-sv-home-url |
data-sv-home-hidden |
sv-home-service rows, sv-home-row links |
Filtered out; a group or section whose rows are all hidden hides too |
data-sv-home-selected |
sv-home-service rows, sv-home-row links and suggestions |
Opened by Enter |
data-sv-home-query |
sv-home |
A query is filtering the page; embeds hide |
data-sv-home-bang |
sv-home-search |
A ! query; suggestions hide |
data-state |
sv-home-search-engine |
idle, web, bang or address |
data-state |
sv-home-status-dot |
up, error, down or pending |
data-sv-overflow |
row titles and addresses, service names and descriptions, list cells, the hint name | The text is cut; it fades out at its end |
Layout variables: --sv-home-columns (maximum group columns, from settings.columns) on sv-home-groups, and --sv-home-bar (fill percent) on each sv-home-svc-bar.
Example:
:root { --sv-accent: #8aadf4; }
.sv-route-home .sv-home-service { border-radius: 4px; }
.sv-route-home .sv-home-service-description { display: none; }
Examples
Ready-made snippets are in examples/. API paths in them are examples: check them against each service's API docs and version.
- Jellyfin: library counts
- Uptime Kuma: status page heartbeat
- AdGuard Home: query stats and a protection toggle
- Portainer: container restart action
- Grafana: an embedded panel
Known limits
- Embedded sites run in a third-party iframe, so their login cookies are usually blocked. For Grafana, only anonymous or public panels work.
- API widgets read JSON only.
- Avoid embedding public websites on
dumb://home. Local network scoping covers http(s) requests and frames, not WebSockets or service and shared workers. - An embed that navigates away from its configured origin cannot reach the local network again in that frame until the home page renders it anew. Edit
home.tomlor reload the page to recover. - HTTPS certificates are verified. A service with a self-signed certificate gets the letter icon: set a local
iconinstead. - A failed icon lookup is remembered for 10 minutes. Editing the service's
urloriconretries at once.