Local-first, peer-to-peer for real building local-first apps on Logos: what works, what hurts Václav Pavlín · OpenAlt 2026
What does "local-first" mean to you?
Who's talking 25+ years of software development Ex-Red Hatter Open source lover and contributor Logos core contributor
1 Fast 2 Multi-device 3 Offline 4 Collaboration 5 Longevity 6 Privacy 7 User Control Local-first software Kleppmann et al. · Ink & Switch, 2019 inkandswitch.com/essay/local-first
What's wrong with the cloud? it breaks four of the seven ideals They can read itmined for ads, AI training,and the terms change under you6 Privacy They can shut it downGoogle Reader, 2013:millions of users, switched off5 Longevity They can lock you outone account ban, no appeal,and your data stays with them7 Control No network, no appthe real copy is theirs,offline is an error state3 Offline One place for everyone's data: one place to watch, block or lose it all.
Local-first and P2P play along nicely you don't depend on one server: you depend on each other Data ownershipthe real copy is yours;no central owner of the network Self-repairingpeers come and go,the network routes around them Direct, or relayed by peersyou relay for others,they relay for you: you take part No one in the middleno third party who can surveilor censor; relays carry sealed data And peer-to-peer isn't new…
None of this is new Usenet1980 XMPP1999 Freenet2000 BitTorrent2001 Tor2002 Bitcoin2009 Matrix2014 Scuttlebutt2014 IPFS2015 Decades of working peer-to-peer tech. So why does most data still live on a few big servers?
Why they lost not by accident: each one to a pressure you can name Communicate Usenet, email: open to all, then drowned in spam the fix was reputation, so: a few big providers → Messaging Archive Napster, BitTorrent: worked, at huge scale but swarms are public: everyone sees who's in → Storage Agree Bitcoin, Ethereum: open consensus, solved in 2008 but every transaction is public, forever → Blockchain Be usable Freenet (2000): built for dissidents too hard to use for the people it was built for → Basecamp
"I have nothing to hide" why privacy matters: Charter 77 already had the answer "…if he unhesitatingly gives answers to questionnaires which are contrary to his real opinions and is prepared to deny his own self in public…" Václav Havel, open letter to Gustáv Husák, 1975 "…someone considers it necessary to inform the State Security in detail about his life, because he considers it honorable and legal…" Václav Benda, Parallel Polis, 1978: that is "naive and dangerous" Without privacy we censor ourselves, and the watcher holds power. Benda's answer: build parallel structures, alongside the official ones. Prague's Paralelní Polis is named after his essay. Logos calls it "parallel societies". English: Havel via Wikiquote; Benda tr. Mark Qvist (public domain)
Logos: fixing what killed P2P old ideas: mixnets '81, hashcash '97, Kademlia. New: privacy by default, at scale Private by default unlinkable, anonymous: network, messages, files, money. A mixnet hides who talks to whom Spam protection, no ID RLN: ZK-based rate limiting. Prove you're within your quota without saying who you are A private blockchain programs, tokens, shared rules, with private transactions and hidden validator stakes One stack, your machine messaging, storage, chain as modules in Basecamp, a local-first app launcher on your own hardware "Privacy is the condition that makes free association possible." logos.co · open source · four claims: I'll score each one after the demo
Yes, there's a blockchain Why?value transfer and permanent consensus How?privately: for users and for operators Is this a crypto talk now?No. Scala doesn't use it today, but will benefit from it
Scala a calendar you share with your people anyone can create a calendar share it with a link or QR code owner, editors, viewers, open calendars sign edits with a hardware wallet (Keycard) Android + desktop, same calendar import / export .ics: no lock-in
What Scala uses from Logos the four parts my calendar runs on today: Delivery gossip network: pub/sub over libp2p relays pass messages, can't read them Storage content-addressed file storage found by hash, served by peers Basecamp desktop shell that loads app modules QML views + C++ cores, an app store Keycard open-source hardware wallet card signs on-card, key never leaves + my own glue: Loam one shared network node per phone, and a small sync library all my apps share

No server. Every device has the whole calendar.

Logos Network Delivery messages Storage files · snapshots peers relay and store for each other phone phone laptop · Basecamp Bluetooth no internet · Loam hub optional just another peer · always on

Inside one device

Scala calendar view · Android app · Basecamp module event log append-only · calendar = replay(log) + sync library ⏱ order · hybrid clock ✍ sign · your key / Keycard 🔒 seal · calendar key ⇄ catch up · fingerprints Loam one node per phone, shared by every app Delivery Bluetooth Logos Storage · files Logos Delivery phones nearby

Offline edits, merged later no lost changes

phone laptop offline move to 3 pm add note ✍ signed · 🔒 sealed ✍ signed · 🔒 sealed back online “here's my fingerprint” “you're missing these” 3 pm + note 3 pm + note same calendar whatever order they arrive in what the network sees 0x9f3a…c41e 0x02bb…7d10 0xe71c…05aa only people with the calendar key can read only signed authors can write
No server, so who enforces the rules? Reading the invite link carries the calendar key every event is sealed with it no key, just noise Writing every event is signed (device key or Keycard) the owner's signed events say who's an editor every device checks, and ignores what it shouldn't accept the catch: removing a reader means a new key; a kicked editor's old edits stay

Files & fast joins Logos Storage + the optional hub

behind NAT 🔒 hub relay cache snapshots behind NAT sealed file by content ID Logos Storage new 1 snapshot + recent changes instead of replaying years of history
Spam coming Spam protection = a message budget RLN: ZK-based rate limiting, a quota per node, shared by every app Every sync message counts catch-up, retransmits, edits: snapshots and batching keep it small Not switched on yet I measured my apps' traffic, so they fit before it is
Privacy partly Content: sealed, relays see noise only people with the calendar key read; only signed authors write Metadata: not yet relays see topics and timing, peers see your IP; mixnet: testnet Cross-platform crypto has sharp edges default JS randomness isn't crypto-safe; two libs disagree on signatures
Who runs it partly Home routers say no two phones behind NAT can't reach each other: you need a reachable peer The network forgets history is kept only for a while. Re-send, or keep an always-on peer P2P file transfer is round-trip bound hundreds of KB/s to a phone; found and fixed a few causes upstream
Usable partly For users: it works install from F-Droid or Basecamp, offline, share by QR; no iPhone yet Upgrades break the wire a new library version and old phones stop understanding new desktops "It syncs nothing" one silent drop, five layers deep. Lesson: log every boundary
Where it shines instant UI: every read is local offline, and phone-to-phone over Bluetooth no backend to run, scale or pay for sharing = a link; permissions = signatures same blocks → 7 more apps, fast
Scala shared calendar WhisperBox encrypted forms KYM household budget QAKU anonymous Q&A Perun runs & rides Backpack app store on Logos Loam one shared node per phone Shrooms mesh VPN apps.vpavlin.xyz
Worth adopting? Local-firstalwaysbuild on the principles: better UX and real data ownership Peer-to-peerwhen privacy and resilience are crucialno one in the middle to watch, block or lose your data Logoswhen you need the full stackmessaging, storage, identity, chain: for a decentralised app
Start building Logos logos.cowhat it is, the whole stack logos.co/basecampthe local-first launcher logos.co/prifiprivate finance: the chain side My building blocks vpavlin/loamone shared node per phone vpavlin/loam-syncevent log, ordering, catch-up vpavlin/scalathe calendar, all of it vpavlin/logos-skillsthe lessons, written down my blocks: github.com/vpavlin · MIT + Apache-2.0
Get Scala apps.vpavlin.xyz Join the demo calendar
scala://join?id=83cc44c6-3586-4939-a511-a8c576afc482&key=OWRjNzdlMzAtZDNkOS00YjVkLWFjOGQtNGJlZmUxOTJiYmM5MWRjYjEwMWYtZjEyNS00ZWJhLWIyNDQtYTk2NDRlZDgyMTY0&name=Scala%20Demo
"…create autonomous information systems." Václav Benda, 1978 Parallel structures don't need heroes. They need boring apps people use every day. Build one. Questions? apps.vpavlin.xyz · github.com/vpavlin
← → · swipe · ‹ › buttons · n notes · f fullscreen