Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The web app

The full app in a browser, for computers where it can’t be installed. The server serves it at public_url, so there’s nothing else to deploy: the image carries the built app and turns it on.

[web]
enabled = true                       # false: no app at /, and no browser sign-in routes
# dir = "/usr/share/drusite/web"     # the image sets this; point it at ui/dist-web when building yourself

With the Helm chart, use web.enabled.

How it works

  • It runs the same core as the apps, compiled to WebAssembly, and keeps an encrypted copy of the person’s workspaces in the browser (the Origin Private File System). It opens and edits offline, and syncs when it’s back.
  • It signs in through the server with every method the server has on, and holds no token: the server keeps the browser’s sign-in, which is listed with the person’s devices, and gives the browser an HttpOnly, SameSite=Strict cookie that works only from the server’s own pages.
  • Signing out, or signing the browser out from the devices list, deletes its copy.
  • Browsers stay signed in for 14 days unused and 90 at most (browser_idle_days, browser_max_days).
  • It updates when the server does. Settings → About says which version it is.

What it leaves out

What a browser can’t do: the Markdown folder, agents on the same computer (local MCP), AI providers kept on the device, converting a workspace to or from end-to-end encryption, and importing through Notion’s API. Ask your notes, importing a Notion export, meetings (while the tab stays open) and encrypted workspaces all work.

Building it yourself

cd ui
npm ci
npm run wasm
npm run build:web

Then set [web] dir to the resulting ui/dist-web. The server refuses to start if dir has no built app in it (index.html and app/).

Behind a proxy

As for the apps: the proxy must pass WebSockets on /api/v1/sync. See Reverse proxies.