Dev log: storage is always someone’s
This is the first post here. It covers the last week of work on hrthd, the server and apps behind hrth.
Changelog
- Native apps: a Tauri 2 shell for desktop and Android, with push notifications, QR scanning for invites and device links, and a proper launcher icon.
- Ringing calls: start a call that rings or just notifies, an incoming-call screen on the web, Accept and Decline on Android.
- hrth node: serve folders on your own computer as encrypted libraries. One guided setup, then it runs in the background (systemd, launchd or Task Scheduler) and shows up live in the app.
- Sealed buckets: bring your own S3 bucket and your devices sign every request. The server relays them without holding the bucket’s keys, name or address, and keys are replaced when someone loses access.
- Server storage now holds only chat attachments, and messages leave the server once delivered, or after 30 days.
- Libraries on phones: iPod-style menus, albums and collections, a queue and Now Playing; one thing plays at a time, and listening rooms fit small screens.
- Chat: threads that open in a side panel with their own unread counts and muting, @mentions, clickable links, and device names encrypted end to end.
- Moderation: reports carry proof the message is genuine (message franking), moderators can hide messages and suspend members, and spaces get ordered roles with inviting as a permission.
- Settings reorganised into plain sections, a whole screen on phones.
Dev Notes
The biggest change this week isn’t a feature, it’s where files live. We used to let the server hold libraries for its members. Now storage is always a person’s: a bucket you bring, or a folder on a computer you own, running as an hrth node. The server becomes a switchboard. It knows who is talking to whom and when, it passes along requests your device has signed, and it hands out grants that expire, but it never holds the keys to what you store or even where you store it. Running a server for your friends shouldn’t mean becoming the keeper of everyone’s photos, and it shouldn’t make you a target for anyone who wants them.
The rest of the week followed from the same idea: fewer things the server has to be trusted with, and fewer things people have to understand to use it. There is one way to set up a node, whether it’s the server’s own machine or a laptop at home. Settings say what a switch does in plain words, and say whose it is: this device’s, or this conversation’s. Underneath, the encryption is MLS, the IETF standard, rather than anything we invented, and the Rust client and the web client follow the same protocol definition so they can’t quietly drift apart. Most of the work isn’t visible: it’s making the private option also the easy one.
What’s next
Next up is sharing a bucket: letting the person who owns storage give friends room in it, with upload limits the server enforces without ever holding the key. After that, blocking people and deleting your account from Settings, push notifications that carry no content, encrypted library names, and native media streaming in the apps so encrypted video plays as smoothly on a phone as it does in the browser.