Web Client & Admin Dashboard
ferrixd ships a first-party, self-hostable web client and an admin dashboard. Both are static bundles (TypeScript on bQuery) that ferrixd serves itself, so one binary provides IRC, the browser client, file uploads and administration.
Serving the web client
Download ferrixd-web.tar.gz from the release (the container image already contains it at /usr/share/ferrixd/web) and unpack it:
mkdir -p /usr/share/ferrixd/web
curl -fsSL https://github.com/josunlp/ferrixd/releases/latest/download/ferrixd-web.tar.gz \
| tar -xz -C /usr/share/ferrixd/webThen point [web] at it:
[web]
bind = "0.0.0.0:8443"
client = true
root = "/usr/share/ferrixd/web"
# irc = true # IRC over WebSocket at wss://<host>:8443/irc (default)Open https://<host>:8443/. The client reads /config.json from the same server to learn the network name, the WebSocket path, the upload endpoint and which features are enabled — no build-time configuration. The same port also accepts IRC over WebSocket (/irc, the same certificate and limits as the other listeners) and file uploads.
The bundle is plain static files, so it can also be hosted anywhere else (any web server, a CDN); users then enter the wss:// address on the login screen. When you update ferrixd, unpack the matching bundle too; the installable PWA picks up the new version on its next start.
What the server should offer
The client works against any ferrixd with [web], and lights up features as the server offers them:
| For | Enable |
|---|---|
| history that survives restarts, search | [persistence] |
| logins and sign-up | accounts; REGISTER is open unless you close it, [account_registration] for e-mail verification |
| attachments and voice messages | [filehost] (logged-in users only) |
| the same conversations on phone and laptop | [multiclient] (ideally with always_on = true) |
Endpoints
| Path | What it is |
|---|---|
/ | the web client (client = true) |
/config.json | discovery for the client: network and server name, version, WebSocket path, upload URL, and whether registration, calls and E2EE are available |
/irc | IRC over WebSocket (irc = true) |
/upload, /files/… | file uploads and downloads ([filehost]) |
Behind a reverse proxy
ferrixd terminates TLS itself and can face the internet directly — that is the recommended setup. If you must put it behind nginx, Caddy or similar, bind [web] to loopback with tls = false, set public_url to the address users see, and pass WebSocket upgrades for /irc through. Two caveats:
- ferrixd does not read
X-Forwarded-For: every web user then appears to come from the proxy's address. Per-IP limits (max_clients_per_ip, registration and login limits), D-lines and host cloaks all see that one address, so raisemax_clients_per_ipand moderate by account instead. - Uploads are capped by the proxy as well (nginx:
client_max_body_size).
Features
- Login: as a guest, with an account (SASL SCRAM-SHA-256 with a PLAIN fallback), or by creating an account in the client (
draft/account-registration, including e-mail verification codes). - Conversations: channels and direct messages, member list with prefixes and away state, topics, nick changes,
/join,/msg,/me,/topic,/away,/nick,/quote. - Modern IRC: history with infinite scroll (
draft/chathistory), unread counts and read markers synced across devices (draft/read-marker), multi-line messages (draft/multiline), replies, emoji reactions, typing indicators, deleting your own messages (draft/message-redaction),server-time,echo-message. - Files and voice: attach, paste or drop files, record voice messages (Ogg/Opus where the browser can) — uploaded to
[filehost]with your account; image, audio and video links are previewed inline. - Mobile-first: single-pane layout with drawers and edge swipes on phones, safe-area insets, the composer stays above the on-screen keyboard, 44 px touch targets.
- Installable PWA with an offline app shell; reconnects with backoff and on network change or when the tab becomes visible again.
- Light/dark theme, English and German, keyboard navigation (Alt+↑/↓ switches conversations, Escape closes drawers), screen-reader labels and live regions. Accessibility audits run in CI.
Security
The client is served with a strict Content-Security-Policy (script-src 'self', no inline script, no framing). It renders messages as text — never HTML. Saved logins ("Remember me") live in the browser's local storage on that device only; leave the box unticked on shared computers.
Admin dashboard
[admin]
bind = "127.0.0.1:8080"
overrides = "/var/lib/ferrixd/overrides.json"Open http://127.0.0.1:8080/ (from the server, or through an SSH tunnel: ssh -L 8080:127.0.0.1:8080 server) and log in with an [[operators]] credential.
- Overview: users, channels, servers, messages and commands per second (live), uptime, certificate expiry, the busiest commands with their mean latency.
- Runtime switches: open/close account registration, calls, E2EE and multiclient without editing the config. A switch overrides the file across
REHASH; withoverridesset it also survives restarts. The same switches are available asferrixd ctl settings/ferrixd ctl set. - Users (kill), Channels (register, drop), Accounts (create, set password, delete), Bans (K/G/D-lines), Links (connect, SQUIT) and Plugins (revoke grants).
[admin] needs no [control] section; the dashboard runs the operations in-process. It serves admin.html from [admin] root (default: [web] root), so it needs the same web bundle on disk even if you do not serve the client.
The API behind it (/api/…) runs the same operations as ferrixd ctl except drain and backup, which stay on the local control socket.
Security model
- Loopback-only unless
tls = true(the config is refused otherwise). - Sessions are 256-bit random tokens in an
HttpOnly,SameSite=Strictcookie (Securewith TLS), expiring aftersession_secs. - Five failed logins from one IP within 15 minutes lock that IP out for the rest of the window; failures are logged as
admin.login_failed. - Every state-changing request must carry an
X-Ferrixd-Admin: 1header and no CORS is ever granted, so other sites cannot forge requests. - Every command is logged as
admin.commandwith the operator's name.
Development
cd web
npm ci
npm run dev # proxies /irc, /config.json, /upload, /files to https://localhost:8443
npm test # protocol, SCRAM (RFC 7677), chat model and accessibility tests
npm run build # → web/dist