Zakk fdb993eeac perf(ui): stabilize large lists and activity cards
Virtualize long node menus and preserve previous data when revisiting pages. Improve chart resizing, usage cards and capability lists after the review passes.
2026-09-20 14:15:20 +10:00

doona

doona

A web interface for honk, doona.

English · 简体中文 · 繁體中文

Requirements • Install / Deploy • Settings • Pages • Development • Contract

Activity overview with mock data

Status

doona is a contract and demo preview until honk ships /api/v1, not a claim of compatibility with a released backend. It targets daeuniverse/api-standardize, fork branch doona-pin, commit ba3e4c3 (PR #4, #5, #6, #7 and #8 merged), pinned in SOURCE.md. The mock backend is the default; the screenshots show mock data.

Requirements

Component Requirement
Chrome / Edge 120 or later
Firefox 120 or later
Safari 17 or later
Build only Node 22 or later, pnpm 11.15.1
Runtime Static hosting and a browser; no Node runtime or server-side application dependencies
Packaging only GNU tar, gzip, sha256sum

Browser versions are build targets from vite.config.ts, not a cross-browser test matrix. Automated browser tests use Chromium.

Install / Deploy

Build from source using the development commands, or use archives from a published release. Tags matching v* create draft releases; publication is manual.

In the download directory, set VERSION to the archive's version and WEBROOT to an existing deployment directory. Keep both archives beside SHA256SUMS, then verify before extracting:

sha256sum -c SHA256SUMS
tar -xzf "doona-${VERSION}.tar.gz" -C "$WEBROOT"

To add the optional Noto Sans TC and SC fonts, extract into the same directory:

tar -xzf "doona-fonts-${VERSION}.tar.gz" -C "$WEBROOT"
Deployment Destination and serving
Embedded in honk When honk provides UI hosting, serve the extracted files at /ui/ and open /ui/. This does not establish backend compatibility
Static server Serve the extracted files, or the contents of dist/, at the web root or a subdirectory such as /ui/
Distribution packages Package the same static files for Nix, Debian, AUR, Gentoo or OpenWrt, with doona-fonts optional. These are packaging options, not a list of available packages

Hash routes such as /ui/#/activity need no server-side route rewriting. Without the font archive, font requests return 404 and the browser uses local fallback fonts.

honk's native API is opt-in and serves the UI from a directory it is pointed at; the page is then same-origin with the API and needs no CORS entry. A UI served from anywhere else (a dev server, another host) must be listed in allow_origins, and a token is required unless the listener is loopback with anonymous access switched on explicitly:

experimental {
    native_api {
        enabled: true
        listen: '127.0.0.1:9527'
        secret: 'operator-supplied-random-token'
        ui: '/usr/share/doona'
    }
}

A main file that carries native_api.secret is served without its text and stays read-only, whatever config_content and config_write say: keep the native_api block in its own include (include { api.dae }) so the main file can be edited from the configuration page.

A backend built against an earlier contract pin (honk's first release stops at runtime and connections) is handled: resources it does not declare count as unavailable and their pages leave the navigation.

Settings

On a first visit with nothing saved, doona asks the origin it was served from (or the reverse-proxy prefix in front of /ui/) for /api; a contract answer or a bearer challenge makes that backend the saved profile, and a token prompt follows when one is required. Without such an answer, opening the root page shows Settings; direct page links remain usable. Enter an HTTP(S) server root or reverse-proxy prefix, without /api/v1, credentials, a query or a fragment. An empty URL or mock selects the built-in demo.

Values live in this browser's localStorage, scoped to the site's origin:

Field Storage key Values
Backends doona-profiles JSON list of {id, name, api, token}; api is a server root or proxy prefix, empty or mock for demo data; the token goes in the Authorization header, never the URL
Active one doona-profile id of the selected backend; the older doona-api and doona-api-token keys migrate into a profile once
Language doona-lang zh-TW (default), zh-CN, en
Colour scheme doona-scheme system (default), light, dark
Palette doona-palette Default: rose-pine/moon
Wordmark doona-wordmark gradient (default), plain

Test Connection checks native API discovery at /api; saving backend settings reloads the page. The token persists in browser storage. See SECURITY.md for security reporting.

Pages

The resource column lists navigation requirements from registry.ts, not every request a page makes. No gate does not mean no backend data; DNS remains available if either listed resource is available.

Page Shows Native resource gate
Activity Traffic, outbound usage, client rankings, node latency and recent events None
Overview Runtime status runtime
Connections Active connections and their details connections
Flows Retained flows and observation coverage flows
Clients Clients grouped by source IP None
Policies Groups and nodes groups
Routing trace Routing diagnostics routing_trace
DNS Queries and cache entries dns_query or dns_cache
Events Backend event stream events
Settings Backend and appearance settings None

Languages and appearance

The interface has Traditional Chinese, Simplified Chinese and English. Choose light, dark or system appearance in Settings. Palettes: Rosé Pine, Rosé Pine Moon, Catppuccin Frappé, Catppuccin Macchiato, Catppuccin Mocha, Nord, Ant Design, Arco Design, Semi Design and Glass.

Activity in dark mode with mock data

Offline and PWA

HTTPS or localhost enables service workers and PWA installation in supporting browsers. The service worker precaches index.html and built assets, then caches successful same-origin asset, font and icon requests within its scope. Offline navigation uses the cached application shell. API responses are never cached; offline access does not provide live backend data.

Development

From the repository root, with the build and packaging tools listed above:

pnpm install --frozen-lockfile
pnpm build
pnpm check
pnpm e2e:install --with-deps
pnpm e2e
pnpm package

The build writes dist/. pnpm check runs type, lint, translation, formatting, unit and generated-API checks. Browser tests cover root and /ui/ deployments. Packaging writes release/doona-<version>.tar.gz, release/doona-fonts-<version>.tar.gz and release/SHA256SUMS.

Run pnpm test:coverage from the repository root to print coverage totals and write coverage/lcov.info.

Local archive versions come from package.json; release builds use the Git description. Archive timestamps use SOURCE_DATE_EPOCH or the HEAD commit time. Set SOURCE_DATE_EPOCH when packaging without Git metadata. See CONTRIBUTING.md and CHANGELOG.md.

Path Purpose
src/features/ Product pages, hooks and messages
src/shell/ Application shell and routing
src/ui/ Shared components and icons
src/api/ Client, mock backend and generated types
src/i18n/ Translations and locale helpers
contract/ Vendored OpenAPI contract
public/ Static assets, fonts and service worker
e2e/ Browser tests
tools/ Development, verification and packaging tools
reference/ Read-only archived UI references

Contract

contract/api-standardize/SOURCE.md records the pin for openapi.yaml. After updating the contract, run pnpm gen:api from the repository root to regenerate src/api/types.ts.

tools/conformance.mjs checks discovery, version, capabilities and permitted read-only observations against a server; it does not send mutations or diagnostic DNS queries.

License and credits

GPL-3.0-only. Noto Sans TC and SC use the Open Font License. NOTICE credits Adobe Spectrum icons under Apache-2.0. The duck logo is the maintainer's artwork.

Languages
TypeScript 88.4%
JavaScript 6.6%
CSS 4.5%
Shell 0.3%