hromada/docs

Hromada Sync 0.3.0 · an Obsidian plugin · apache-2.0

Your vault,on all your computers.No server, no cloud.

Two computers find each other on your network, the notes travel end-to-end encrypted, and a note edited on both at once keeps both versions. No account to make, nothing to pay for, nobody else's server in between. Built on hromada and @hromada/sync.

Status: beta, desktop (Windows, macOS, Linux). It keeps a whole vault the same on your computers while Obsidian is open, several computers can edit one note at once, and since 0.3 one folder can be shared with other people. Computers on one network find each other by themselves; computers in different places connect directly over the internet - the plugin asks your router to forward a port, with no server in between. A community plugin, not made or endorsed by the Obsidian team.

Install

Windows: with Obsidian installed and opened once, press Win+R, paste this line, press Enter. It asks which vault (or makes a new test vault), puts the plugin in and, if you agree, sets up BRAT so every new version arrives by itself when Obsidian starts.

Win+R
powershell -ExecutionPolicy Bypass -NoExit -Command "irm https://github.com/Olexan-art/hromada-obsidian/releases/latest/download/install.ps1 -OutFile $env:TEMP\h.ps1; & $env:TEMP\h.ps1"

macOS and Linux: install BRAT from Obsidian's community plugins and add Olexan-art/hromada-obsidian in it. The plugin needs Obsidian 1.10 or later.

Two computers in a minute

Every picture on this page is a real run: two Obsidian windows, "Desktop" and "Laptop", each in its own container, driven by the plugin's field tests with no one at the keyboard.

01The first computer starts

Obsidian asks to trust the plugin; then the Hromada Sync window opens. Name the computer as the others will see it and press Start syncing.

The Hromada Sync welcome window in Obsidian: this computer's name, Start syncing, or paste a code from another computer

02A code for the other computer

The code works once and for 10 minutes. On a local network the computers find each other by themselves.

The invitation window with a one-use code valid for 10 minutes and a Copy button

03The second computer sees who invites, then accepts

Nothing is written before Accept and sync: the window names the computer that invites and the vault.

The second computer's preview: which computer invites, which vault, Decline or Accept and sync

04Connected

The first computer sees the other arrive. From now on edits travel within a few seconds (2.6 s each way in the tests), and the status bar says who is online and when the last change went.

The invitation window turned into Connected: Laptop, the notes are on their way

Together in one note

New in 0.2: open the same note on two, three or four computers and type at once. Below, four real Obsidian windows, each typing its own line at the same moment.

05Four computers, one note, typing at once

Each window shows the others' cursors with their names and colours, and the text ends the same everywhere - no conflict copies, no waiting for a save. The text travels end-to-end encrypted between the computers themselves.

Four Obsidian windows in a grid typing into one note at once: each line appears in every window, with the other computers' cursors and names

06Who is in the note

A LIVE capsule at the top of the note carries the faces of the computers in it, and a short notice says who just joined. A name next to a cursor fades while that person is not typing.

A note edited live: the LIVE capsule with the Desktop's face at the top right, a 'Desktop · live' notice, and the Desktop's cursor with its name

07The history of a note

Every version, which computer wrote it and when - from the signed records, not a name anyone could type - what changed against the note now, and Restore this version, which becomes a new version: nothing is lost. From the command palette, a right click on a note, the status bar menu, or the LIVE capsule.

The history of a note: versions by day with each computer's badge, and the chosen one against the note now, lines added in green

09Across the internet, directly

The plugin asks your own router to forward a port to this computer (UPnP or NAT-PMP), so your computers in different places - home and work - connect to each other with no server in between. One computer being reachable is enough; the settings say whether it is, and why not when it is not.

Settings: Allow connections from the internet, and Reachable directly: the router opened a port (UPnP)

Shared folders

New in 0.3: next to the vault you keep the same on your own computers, share one folder with a colleague, a friend or a client - and only that folder. They never see the rest of your vault, nor your own computers. Still no server: their computer and yours connect directly, end-to-end encrypted.

10Invite: what they can do, for how long

Right-click an empty folder - Make it a shared folder - or use the status bar menu. Choose read and edit or read only, with no limit or for 1, 7 or 30 days, and send the one-use code. They paste it into Join a shared folder.

Invite to Team: what they can do, read and edit or read only; for how long, no limit or 1, 7 or 30 days; a one-use code with what to tell them

11You let each device in

When someone uses your code, your Obsidian asks. Nothing of the folder reaches their device before you say yes, and no answer within a minute is a no - so keep Obsidian open on your computer while they connect.

Let them into the shared folder? Laptop asks for access to Team, read only: Do not let in, or Let in

12Marked in the file tree

Each shared folder has a coloured edge and a word for your role in it - owner, can edit, read only - and who is in it on hover. On the left the owner's computer, on the right a reader's: a reader's own changes stay on their computer.

The owner's file tree: the shared folder Team with a purple edge and the word owner
A reader's file tree: the same folder with a blue edge and the words read only

13Who has access

Everyone in the folder, online or not, their role and until when. Make a reader an editor or the other way round - at once - give someone 7 more days, or take access back, also while they are away. Live editing works in a shared folder too: edits are taken only from people who may write it now.

Who has access: Team. Laptop, read only, online, with a role to choose and Remove; Invite

14In the status bar menu

Each shared folder with your role and who is online, New shared folder and Join a shared folder. A file larger than 50 MB is not synced in a shared folder (your own vault has no limit); up to 5 shared folders; everyone in one needs Hromada Sync 0.3.0 or later.

The status bar menu with the shared folder Team, owner, 1 of 1 online, New shared folder and Join a shared folder

When it asks you

Most of the time there is nothing to do. When something needs a person, it asks, with the safe choice first.

05A note edited on two computers at once

Both versions are kept. Conflicts and the trash says which version is yours and which came from the other computer, and offers Side by side, Keep mine, Keep the other or Both.

Conflicts and the trash: a conflict copy, which computer each version came from, Side by side, Keep mine, Keep the other, Both
Both versions of the note opened side by side in two panes

06A note replaced or deleted from another computer

Its previous version stays in the sync trash for 30 days, one click to restore. While someone types on the other computer, only the version from before their burst of saves is kept, not one copy a save.

The sync trash with two notes just restored and two more that can be restored

07Many notes gone at once

A mistake, a disk that failed, ransomware: when a great many notes vanish at once, nothing is sent until you decide. Keep paused is first and focused, so a hurried Enter never spreads the loss.

Sync paused: 150 files deleted, nothing was sent; Keep paused first and focused, then I really did this, go on

08Everything in one place

Settings → Hromada Sync: who is online, the recent events, connecting one more computer, your relay, what is not synced (.hromada-ignore), a bug report without secrets, and Unlink (the notes stay).

The plugin's settings: connected, recent events, connect one more computer, conflicts and the trash, sync now, notices, relay

How it is tested

Besides the libraries' own tests (fuzzing against restores, clones and revocations), the plugin has field tests: two real Obsidian windows in containers, a relay, and a script in place of the person.

Pairing with a codeThe first computer starts, the second accepts after seeing who invites; the notes arrive.
A burst of savesTwelve saves in 18 seconds on one computer leave one previous version in the other's sync trash, not twelve.
A conflict while apartThe network is cut, the same note is edited on both, the network comes back: both versions are kept, the choice is applied the same on both computers, no copies are left.
A mass deletion150 notes deleted at once: sync pauses, the other computer keeps all 150 until the person confirms.
A relay between two separate networksComputers with no network in common sync through a relay that sees only encrypted bytes.
Off and on at onceThe plugin reloaded (as an update does) opens the same replica again, with no lock left behind and no welcome window.

The scenarios: field/ in the repository.

Network use

On your local networkThe plugin listens on a TCP port and finds your other computers with UDP broadcasts, to connect to the devices of your own mesh only. Everything between them is end-to-end encrypted (Noise XX, AES-256-GCM) and every change is signed by the computer that made it.
Over the internet, directlyThe plugin asks your own router to forward one TCP port to this computer (UPnP or NAT-PMP) and learns its public address; your computers tell each other where they can be reached and connect directly, and an invitation carries the address. Only your computer and your router take part. The port is closed when Obsidian closes; one switch in the settings turns it off.
A relay, only if you set oneFor networks where nothing else gets through: a relay you run yourself (npx hromada relay --token ...). It passes encrypted bytes and cannot read or change notes.
Nothing elseNo telemetry, no analytics, no servers of ours, no account. The plugin downloads no code; it is updated only by Obsidian or BRAT.

What comes next

0.1 - one vault, your computers (done)Pairing with a code, LAN and relay, both versions on a conflict, the sync trash, safety stops, Ukrainian and English.
0.2 - together in one note (done)Live editing on two, three or four computers with cursors and names, the history of a note, one icon in the status bar with a menu and Pause, across the internet directly through your router.
0.3 - shared folders (now)One folder shared with other people: roles, a time limit, you let each device in, who has access, marks in the file tree.
0.3.1 - bringing folders inMake a folder that already holds notes a shared one, a size limit per shared folder, roll a shared folder back to an earlier moment.
LaterPhones, on your home Wi-Fi, still with no server; a background app that syncs with Obsidian closed.

Questions people ask

How is it different from Obsidian Sync?

Obsidian Sync is the Obsidian team's own service, with their servers in between and phones supported. Hromada Sync has no server at all: your computers talk to each other directly, or through a relay you run. It is a beta and desktop only for now.

Do my computers have to be on the same network?

No. On one network they find each other by themselves; in different places (home and work) they connect directly over the internet - the plugin asks your router to forward a port, with no server in between. One of your computers being reachable is enough. Where no router of yours can forward (UPnP off, or a provider that shares one public address among many customers), the settings say so, and a relay you run is the way through.

Can several people edit one note at the same time?

Yes, since 0.2: two, three or four computers in one note, each seeing the others' cursors and names; the text stays the same everywhere, with no conflict copies. See it.

Can I share notes with other people?

Yes, since 0.3: one folder at a time, read and edit or read only, for as long as you choose. They see only that folder; you let each of their devices in, and you can change or take back their access. See it.

Do both computers need to be on at the same time?

Yes, with Obsidian open on both: it syncs while Obsidian is open, and changes made while one was off travel as soon as both are on. A background app that syncs with Obsidian closed comes later.

Do I install the plugin on each computer?

Yes, on each one separately: your notes sync, but Obsidian's own settings and plugins do not.

What happens if two computers edit the same note?

Both versions are kept: the note on one, a conflict copy next to it, the same on both computers. Conflicts and the trash shows which version is yours and lets you keep one or both. See it.

Does it sync Obsidian's settings and plugins?

Not yet: .obsidian/ stays on each computer, because each one writes its own and they would meet as conflicts. Syncing settings will be a later, opt-in step.

Can a different version of the plugin on each computer sync?

Yes. The protocol only ever grows: old messages are never changed or removed, and a newer feature works only between computers that both have it, while notes keep syncing as before.

What does it write in my vault?

Its state under .obsidian/plugins/hromada-sync/ (never synced), .hromada-ignore (what is not synced), .hromada-trash/ (previous versions for 30 days) and conflict copies next to a note when there is a conflict.