Skip to content

Projects to learn from

fileOS writes its own core so that it stays light, is easy to extend and fits our goals. To do that well, we study earlier work: software, protocols, papers, essays and projects that did not succeed. This page lists them by area. For each one it says what to learn from it and, where it matters, how we are different.

Learn, don’t copy. We read code and papers to understand ideas. Before you copy any code, make sure its license can be used with AGPL-3.0-only. Do not copy GPL-2.0-only code.

To add an entry, give a link, what to learn from it, and how we are different.

Others have tried to give every person their own server. Learn why none of them got to ordinary people.

  • FreedomBox: a personal server on Debian. It started after Eben Moglen’s talk “Freedom in the Cloud”. It shows what is hard about running a server at home.
  • Solid: personal data pods, with apps that ask for access. Learn from its data model, its access control and why it spread so slowly.
  • Sandstorm: grains, sharing based on capabilities, and apps in a sandbox. Learn from its design, and from why it was hard to keep going.
  • Cozy Cloud: a personal cloud whose apps all use one data store.
  • Urbit: a personal server with its own identity system and networking. Learn from how much it tried to do, and how complex that made it. We differ: no scarce identities and no tokens.
  • Upspin: one global namespace for personal files, from the Go team at Google.
  • Mail-in-a-Box: a self-hosted mail server that you can set up without being an expert.
  • Helm: a personal email server sold as hardware. It shut down in 2022. It shows the risks of a business built on hardware.
  • Synology DSM and Apple iCloud: closed, but they set how easy to use ordinary people expect things to be.
  • Local-first software (Ink & Switch): a clear statement of principles that we share.
  • Freedom in the Cloud (Eben Moglen, 2010): the case for personal servers.
  • Tools for Conviviality (Ivan Illich): tools that serve people, and do not make people dependent on them.
  • Governing the Commons (Elinor Ostrom): how communities manage shared resources without a central authority and without a market. Background for mutual aid.
  • Calm technology: technology that stays in the background until you need it.
  • A Pattern Language (Christopher Alexander): design as a shared set of words that people can use for themselves.
  • IndieWeb: own your data, put it out on your own site and send copies to other places (POSSE). Also Webmention and Micropub.
  • Small Technology: technology for one person, not for scale.
  • Data Transfer Initiative: moving personal data between services, and the export formats of large platforms.
  • iroh: dial a public key, not an IP address. We decided to write our own networking and not depend on it. But it is the nearest match to what hs-net needs, so study it in depth:

    • Hole punching, and going back to a relay when a direct path does not work.
    • The relay protocol over HTTPS and WebSocket, for networks that block UDP.
    • Network probing (net_report), and picking one of many paths.
    • Finding addresses through signed DNS records (pkarr).
    • Access control for a relay (the AccessControl trait).

    We differ: by default we do not depend on a company’s relays or DNS, and our dependency tree is smaller. A test build pulled in 231 crates.

  • Tailscale: DERP relays, magicsock, and the essay How NAT traversal works, a good first reading on the subject. We differ: no central coordination server.

  • quinn: QUIC in Rust. Read it to see how the protocol state machine is kept apart from I/O (quinn-proto).

  • WireGuard: a protocol you can read in an afternoon. It shows how much a small, fixed set of choices can do (Noise, no cipher negotiation).

  • Noise Protocol Framework: handshake patterns for authenticated encryption between keys.

  • libp2p: circuit relay v2, DCUtR hole punching, and the costs of a very general, modular stack. We differ: fewer options and less abstraction.

  • Syncthing: a relay pool run by the community, global and local discovery, and device IDs made from keys. Many years of experience with peer-to-peer software that ordinary people use.

  • Yggdrasil and cjdns: mesh networks where an address is made from a public key.

  • Reticulum and Meshtastic: networking over radio and other slow links, with no internet at all.

Read the specifications themselves, not only the libraries that implement them.

  • pkarr: DNS records signed by an Ed25519 key and put on the Mainline DHT. Others can find a key this way, without the owner having a domain.
  • Keybase: a key for each device, sigchains and social proofs. It shows how a person’s identity can live longer than any one device.
  • Matrix cross-signing: checking devices and people, and how hard it is to make that easy to use.
  • Secure Scuttlebutt: identity is a key, and social links decide what you store and relay for others. It is the nearest earlier form of “neighbors help each other”. Also learn from its limits: append-only logs that cannot be pruned, and new users who have a hard time joining.
  • Dark Crystal: getting back a lost key with the help of trusted friends (Shamir’s secret sharing).
  • Passkeys: signing in without passwords. Ordinary people use them now.
  • Kanidm: an identity management server in Rust, with OpenID Connect and passkeys.
  • Authelia and Authentik: authentication gateways that self-hosters now run and keep up to date on their own. The login app of fileOS is meant to take their place.
  • IndieAuth: signing in to other sites with your own URL as your identity.
  • Signal Protocol: the double ratchet, X3DH and sealed sender. The reference for private messaging.
  • OpenMLS: MLS in Rust, for encrypted groups such as families.
  • age: simple file encryption with small, clear keys.
  • Magic Wormhole: pairing with a short code, using a PAKE. A model for adding a friend or a new device.
  • CryptPad: documents that people edit together and that the server cannot read.

The federated protocols we have today teach one lesson: federation alone does not give everyone a server of their own. Most people still come together on a few large servers. See “Why federation alone is not enough” in the manifesto for the reasons and our answers.

  • Matrix: room state resolution across servers. Matrix is federated, but most users are on a few large servers. Study why. Identity is tied to the server’s domain. Every server in a room must copy and resolve that room’s whole state, so a small server that joins a large room pays a lot. And running a server takes work that does not end. Its peer-to-peer experiments (Pinecone) are also worth reading.
  • ActivityPub and Mastodon: the federation that most people use. It is built around servers, not people. Identity is tied to an instance, and when you move you lose your old posts. Small instances are quiet, and the admin has to deal with moderation and spam. So people come together on large instances.
  • AT Protocol: the Personal Data Server, signed repositories (a Merkle search tree), and moving between hosts. You can host a PDS yourself, but most people’s data is on the official ones. One company runs most of the relay and AppView. We differ: no global relay or indexer is needed.
  • Nostr: keys plus simple relays, and how far a very small protocol can go. Identity belongs to no server, as in fileOS.
  • Briar and its Mailbox: keeping messages for contacts who are offline. This is our “mailbox” role.
  • Spritely Goblins and OCapN: object capabilities across a network.
  • ForgeFed: federation for code hosting. It is being built into Forgejo.
  • Automerge, Yjs and Loro: CRDTs for documents that people edit together. Compare their data formats, speed and compile cost.
  • Willow: a sync protocol from the Earthstar team, with capabilities and real deletion built in.
  • cr-sqlite: CRDTs inside SQLite.
  • Git: content-addressed history that millions of people sync every day.
  • SQLite: a small, fast and reliable embedded database, with FTS5 and R*Tree. Its file format is meant to stay readable until 2050. Our derived index uses it. Read how it is tested.
  • redb and fjall: embedded key-value stores in pure Rust.
  • Tantivy and SQLite FTS5: full-text search for every kind of data.
  • Perkeep: content-addressed personal storage, made to last a lifetime. Very near to our goals.
  • Tahoe-LAFS: storage among friends, where the storage providers cannot read the data. The model for encrypted mutual backup.
  • Garage: light S3 storage in Rust, made to be self-hosted across a few sites that friends run.
  • restic and BorgBackup: deduplication, encryption and repository formats for backups.
  • BLAKE3 and Bao: fast hashing, and verified streaming of content-addressed data.
  • Litestream: streaming SQLite replication.
  • DuckDB and DuckLake: an embedded database for analysis, and tables kept as Parquet files in object storage, with snapshots and time travel. We measured them and chose SQLite; see the architecture page.
  • duckdb-tantivy: BM25 search with Chinese word splitting, as SQL functions in DuckDB, written in Rust.
  • Turso: SQLite written again in Rust. We measured it; see the architecture page.
  • Solid: personal data stores on Web standards, from the person who made the Web. Near to our goals. We differ: we use an ordered log for each space, and keys in place of WebIDs on domains.
  • HTTP Message Signatures (RFC 9421) and Web Push (RFC 8030): standards we use between servers and for notifications.
  • WebTransport: QUIC for browsers. It lets a browser get to a node by certificate hash.
  • WinterTC and wasi:http: one request and response API on servers and in browsers. It is the model for our plugin interface.
  • BitTorrent: tit-for-tat, where peers give more to those who give back. A simple local rule that has effects across the whole network.
  • IPFS: content addressing at scale, and the lesson that nobody keeps data unless someone chooses to pin it. We differ: no token economy (Filecoin).
  • Hyphanet (formerly Freenet) and its friend-to-friend mode: connecting only to people you trust.
  • Umbrel, YunoHost and Cloudron: app stores for self-hosting, and what goes wrong when updates break things.
  • Home Assistant: a large set of integrations, and upgrades that ordinary people can live with. Home automation itself is a specialist need; it connects through a plugin.
  • Caddy: TLS certificates that it gets and renews by itself.
  • NixOS and OSTree: atomic upgrades and rollback.
  • Android A/B updates, RAUC and Mender: updating devices that nobody is watching, without leaving them unable to boot.
  • PocketBase: a whole backend in one file, plus SQLite.
  • FoundationDB simulation testing: run the whole distributed system in one process, the same way every time, and replay any failure.
  • TigerBeetle and TigerStyle: deterministic simulation, assertions everywhere, and few dependencies.
  • Jepsen: how real distributed systems lose data, and how to find out.
  • Erlang/OTP: supervision trees, “let it crash”, and systems that keep running for years.
  • Fast Rust Builds (matklad): practical ways to keep compile times low.
  • rust-analyzer: a large Rust workspace, organized for fast builds and clear boundaries.
  • tokio and smol: two ways to make an async runtime, one large and one small.
  • hyper, axum and rustls: HTTP and TLS in Rust.
  • UnifiedPush and ntfy: push notifications to phones without depending on Google or Apple.
  • Fluent and ICU4X: translation and localization. Both can be used from Rust.
  • WCAG: accessibility for everyone in the family, old people and disabled people too.
  • llama.cpp and whisper.cpp: language and speech models that run on ordinary hardware, with no cloud.
  • Immich machine learning: face recognition and search by meaning (CLIP), done on your own server.

These projects already do one part of what fileOS does. Study their features and data models, not their architecture.

Only everyday needs that 80% of people have go here. Specialist needs, such as media libraries, home automation and code hosting, stay out of the core; see the next section.

  • Immich and PhotoPrism: photos and videos.
  • Nextcloud: files, calendar and contacts. It also shows what happens when apps are not kept apart from each other.
  • Stalwart: a mail server in Rust that does it all (IMAP, JMAP, SMTP).
  • Radicale: a small calendar and contacts server.
  • Vaultwarden: passwords, in Rust.
  • Paperless-ngx: scanned documents.
  • Actual Budget: local-first personal finance.
  • OwnTracks: private location history.
  • Obsidian and Logseq: notes kept as plain files that you own.
  • Datasette and Dogsheep: putting your personal data from many services in one place where you can look through it.
  • Conduit: a light Matrix server in Rust.

Specialist software connected through plugins

Section titled “Specialist software connected through plugins”

Specialist needs stay out of the core and connect through plugins. Study the APIs and integration points of these projects. They show what the plugin interface must give: identity, permissions, events and data access.