02

Sync engine

2024

Quire

A local-first sync engine for notes and small documents. Works offline, merges without asking you to resolve conflicts.

Role

Author

Stack

Rust, SQLite

Install

cargo add quire

Numbers

214 operations merged in 38 ms, 11 MB of memory

The idea

Most note apps treat the server as the truth and your laptop as a cache. Quire flips that: your device holds the whole document, edits are recorded as small operations, and the server is just another peer that happens to be online all the time.

Merging without conflicts

Operations carry a logical clock, so two people editing the same paragraph on a train and on a boat produce the same document once they reconnect. There is no conflict dialog because there is nothing to choose between.

Small on purpose

The core is 6,000 lines of Rust on top of SQLite. It runs in 11 MB of memory, syncs 214 operations in 38 ms on a normal connection, and has a test that pulls the network cable at random moments for eight hours every night.

mail iri

Want something like this? Tell me what it should do.

$ subscribe --notes

New notes by email, when there are any. About one a month.

Iri Halvorsen

Software engineer

Bergen, Norway

Open to work from January 2027

Colophon

Set in Geist and Geist Mono

Built in Framer

No tracking, no cookie banner

buildlog_

© 2026 Iri Halvorsen. All demo work is fictional.

exit 0

Create a free website with Framer, the website builder loved by startups, designers and agencies.