Skip to main content

Peer-to-peer sync

A peer-to-peer note taking app: your devices sync with each other, not a cloud

Koru is a free, open-source note taking app that syncs peer to peer. Link your computers with a QR code or a link code and they exchange changes directly, on the same network or through a relay that forwards traffic and stores nothing. Your notes live on your devices and work offline.

What is a peer-to-peer note taking app?

It’s a notes app where your devices talk to each other instead of to a company’s server. There is no central copy of your notes in the cloud. Each device holds the whole workspace, works offline, and exchanges changes with your other devices when they can reach each other.

What does local-first mean?

Local-first software keeps the main copy of your data on your own device and treats the network as optional. The idea was set out by the research lab Ink & Switch in their 2019 essay “Local-first software”. Peer-to-peer sync is how a local-first app keeps several devices in step without a server holding your data.

How does Koru sync without a server?

Each workspace is a CRDT, a data structure built so that copies edited separately can be combined without a server deciding who wins. Koru uses Loro for the data and iroh to connect devices.

  • On the same network, your devices connect to each other directly.
  • On different networks, if they can’t reach each other directly, Koru’s relay forwards the traffic. The relay is run by Koru, not a third party, and stores nothing.
  • You can turn the relay off on each device. Devices that can connect directly keep syncing; the rest waits for a direct path.
  • With only one device, Koru exchanges nothing.

Is the sync encrypted?

Yes. Sync traffic between your devices is end-to-end encrypted, including when Koru’s relay forwards it, so the relay can’t read your notes.

What are the limits?

Two devices exchange changes only when both are online at the same time. If your laptop is closed, your desktop gets its latest edits when it wakes up. Koru Cloud, an optional paid service coming soon, will keep an always-on copy for that case.

Pictures and files between two computers travel only over a direct connection, never through the relay, so between different networks they wait for Koru Cloud. Your notes themselves sync either way. Phone apps are in development and not released.

How is Koru different from peer-to-peer notes projects on GitHub?

Projects like Paperus, SwarmNote and PeerFlow show the idea. Koru is a full desktop app with a rich editor, imports from Notion, Evernote, OneNote, Google Docs and Markdown, saved versions and a built-in terminal, with the same peer-to-peer sync underneath.

Questions

Does Koru have a server?

Koru runs a relay that forwards traffic between your devices when they can’t connect directly. It stores nothing, and you can turn it off on each device. No server holds your notes.

Do I need an account to sync?

No. You link your own devices with a QR code or a link code.

Do both devices have to be on?

Yes, both need to be online at the same time to exchange changes. Each keeps working offline meanwhile.

Is peer-to-peer sync free?

Yes. Device-to-device sync is part of free Koru. Koru Cloud is optional and coming soon.

Can I sync my phone?

Not yet. Koru’s phone apps aren’t released. Today Koru syncs between Windows PCs and Macs.

Related

Last updated