Opbox
CRDT based sync for text files on disk
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hi! I’m one of the founders of s2.dev, and recently have been hacking on opbox, which is an open-source daemon that turns directories of text files (code, markdown, etc) into collaborative, multi-player workspaces.This started as a bit of an intellectual curiosity, to see if it was possible to do real-time sync at the filesystem level (i.e., in an editor-agnostic way).The idea is pretty simple: - Opbox workspaces are roughly analogous to git repositories (and can be used alongside existing git repos, to share live changes between commits) - When the opbox daemon is running in a workspace (ob start), it listens for local filesystem events within its directory (writes, deletes, new files), and translates them into operations (the titular “op”) on shadow CRDT documents (Yrs) corresponding to each text file (as well as one doc for the namespace as a whole, which handles paths) - These shadow CRDT docs are maintained in a workspace-local sqlite db (Turso) - The ops, which represent diffs on a corresponding CRDT document, are then appended to a durable stream (S2) that acts as a shared journal for all sync participants - Opbox also reads from that journal, receiving ops from other participants, which are then used to update the local documents, first in the db, then by materializing them into actual files on disk This has worked surprisingly well for sharing things like Obsidian graphs in real-time.It’s most helpful in cases where you want the ability to edit local files from arbitrary editors, but still collaborate live. The experience is best from editors where you can configure an aggressive autosave policy, and where edits to an open file are reflected in the editor in a timely way.To gain confidence in the correctness of the core opbox flows (particularly all the nuances around bidirectional sync) I invested in wiring up deterministic simulation testing using the turmoil library, which has been incredibly helpful (see the opbox-sim crate in the repo).
HN · launched Jul 3, 2026 · 11 upvotes (top 42%) · 0 views
Niche: file management tools · 97 launches, 12 in the last 7 days ▲ +20% · Explore this niche →
Category and tags
- Horizontal
- Data infrastructure
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 97 launches in file management tools →
Could you build this?
No Implementing a real-time CRDT synchronization engine directly on arbitrary disk filesystems requires deep distributed systems and systems programming expertise.
What it would actually take: A production version requires a systems language daemon (e.g., Rust) leveraging OS-level file notifications (fsevents/inotify) combined with an optimized text CRDT implementation (like Yjs or Loro) mapped to disk offsets. The core difficulty is reconciling external editor atomic writes, file renames, debounce timings, and concurrent network sync without corrupting local files or introducing race conditions. This demands deep distributed systems and low-level filesystem engineering expertise.
Discussion
4 comments analyzed.
Competitors mentioned: Apple Notes, JetBrains, Obsidian, Git
Concerns raised: Time-travel/rewind functionality underdeveloped, Cannot fully replace Git without specialized editors
Feature requests: Support multiple processes on same machine, Auto-rewind workspace to prior save states, Git-like version control for local repos
Competitors
Other products that read as similar to this one : 78 launches clear the similarity bar, closest 8 shown.
Attention rank: #42 of 79 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 244 days after the earliest competitor.
- Strata, real-time Markdown editor you can mount as a filesystem · hn · 2026-07-01 · 5 upvotes · similarity 0.43
- Quorum-free replicated state machine built atop S3 · hn · 2026-01-31 · 6 upvotes · similarity 0.42
- RcloneView · ph · 2026-10-10 · 2 upvotes · similarity 0.40
- byosynch · ph · 2026-09-13 · 1 upvotes · similarity 0.38
- Zerobox · hn · 2026-03-30 · 141 upvotes · similarity 0.38
- genpark-crdt-lww-element-set-sync-skill · github · 2026-09-28 · 7 upvotes · similarity 0.38
- Hocuspocus 4 · hn · 2026-05-20 · 38 upvotes · similarity 0.38
- S2-lite, an open source Stream Store · hn · 2026-01-21 · 77 upvotes · similarity 0.37
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.