An Obsidian plugin that keeps a vault in sync, both ways, with your end-to-end encrypted NOTE notepad. You approve it once in your browser; after that it syncs without asking for your passkey. Notes are encrypted on this device before they leave it.
FLOW NOTE Sync needs a Flow ID account with a NOTE notepad, and Obsidian 1.11.5 or later.
- Open Settings → FLOW NOTE Sync and select Link, or run FLOW NOTE Sync: Link this vault from the command palette.
- The plugin shows a Flow ID code and an 8-character device code (
XXXX XXXX), and opensnote.flow.talk/linkin your default browser, at an address it builds itself from the Flow ID code. - Approve from the browser where you use NOTE, such as the one that set up or recovered your notepad. If that's another browser or profile, select Copy link and open the link there. A browser that has never opened your notepad can't approve, and neither can one that NOTE says can't change who has access to your notepad. On that page, sign in if asked, enter the Flow ID code if the page asks for one, type the device code and approve with your passkey. The device code never leaves this device any other way: Flow ID only ever sees a slow hash of it, so it can't swap in keys or a notepad of its own.
- Back in Obsidian, the plugin shows the account it was linked to: its DID, and its handle when the handle checks out both ways, with the domain that vouched for it set apart so a lookalike such as
alice-flow.talk.examplereads astalk.example. Nothing syncs until you confirm it is yours. A code someone else guessed and approved would otherwise bind your vault to their notepad.
A link has to be approved within ten minutes. A vault that is still linked can't be linked again: if syncing stopped, settings offer Retry and Unlink, and you link again only after unlinking.
Syncing starts once the device has read your whole notepad. Until then, nothing here is uploaded or deleted, so a new link never mistakes a notepad it hasn't read yet for an empty one.
- Notes and attachments: every Markdown (
.md) and MDX (.mdx) note, and every other file (images, PDFs, audio and the rest) up to 32 MB, both ways. - Renames carry across, including folder renames. A rename the plugin didn't see (Obsidian was closed) is recognised by the file's unchanged content. When you rename here with Automatically update internal links on, Obsidian's link edits sync like any other edit, and NOTE repairs only the links Obsidian never updates, those in
.mdxnotes, rather than repairing Obsidian's a second time. A rename Obsidian didn't see (made outside it, or while it was closed), or made with that setting off, has NOTE repair every link. A rename made in NOTE arrives with NOTE's link repair already done. - Deletions carry across. In NOTE they go to NOTE's trash. Here they follow Obsidian's Deleted files setting: the system trash, the vault's
.trashfolder, or, if you chose to delete permanently, a permanent deletion, though NOTE's trash still has the file. An edit beats a deletion: if one side edited a file the other deleted, it comes back. Before a sync would delete more than fifty files, or more than ten that are also over a tenth of the vault, the plugin asks. - Swapped names carry across too: two files that trade names, on either side, converge. While one waits for the other to leave its name, it may briefly sit beside it as
<name> moving <8 hex>.md, and a sync that stops right then finishes the move next time. - Connection trouble: when the connection to Flow ID fails, or Flow ID is busy with other uploads, nothing stops. Changes stay queued, the plugin's status says so (in the status bar, or in its settings on mobile), and sync tries again on its own: within 30 seconds, or within a minute when busy. Only a vault whose connection fails as it opens stops, and settings offer Retry.
- Conflicts: when both sides changed the same file, NOTE's version keeps the name and this vault's is saved beside it. A note's copy is named
<name> conflict <8 hex>.md, the way NOTE names its own conflict copies; an attachment's keeps its extension last,<name> conflict <8 hex>.png, so Obsidian still opens it. Nothing is overwritten while you type: a file that changes during a sync, or an open note with unsaved typing, is left alone until the next sync. The same holds in NOTE: every write names the version it was planned from, so an edit that reaches NOTE during a sync is never replaced or trashed; the sync reads again and plans from there.
Not synced:
- Obsidian's config folder (
.obsidian/) and anything hidden. The config folder holds plugin code, so nothing from NOTE is ever written into it. - Scripts that other plugins run from the vault:
.js,.mjs,.cjs,.jsx,.ts,.mts,.cts,.tsx,.pyand.shfiles (Dataview views, Templater and QuickAdd user scripts, CustomJS, CodeScript Toolkit and the like). Synced, they would let any device linked to your notepad run code on this one..tsis also an extension for MPEG transport-stream video, and those files stay out too. - Attachments over 32 MB, names NOTE can't store (such as
con.mdor a name ending in a dot), names that differ from a synced file's only in case, and NOTE files whose names this vault can't hold. Settings lists them. A synced file that becomes one of these is left as it is on both sides, never deleted. The exception is a file moved into a hidden folder from outside Obsidian: Obsidian doesn't list hidden files, so to the plugin that reads as a deletion, and NOTE's copy goes to NOTE's trash.
Known limits with links:
- Obsidian asking before it updates links. With Settings → Files and links → Automatically update internal links off, which is Obsidian's default, Obsidian asks before updating links. The plugin can't tell whether you chose to update, so it has NOTE repair them too. That's right for one rename, but a chain or swap of renames made a second or two apart can leave links in other notes pointing at the wrong note. Turn the setting on to avoid it.
- Another plugin moving files. A plugin that moves files without updating links, while that setting is on, leaves the links in
.mdnotes as they are, in NOTE as in this vault.
The plugin treats every note as text. It never evaluates MDX, code blocks or anything else in a note, and it doesn't sync script files (see above). Other plugins you install may run code from notes: Dataview's JavaScript queries or Templater templates, for example. With sync on, those notes can come from your other devices.
Linking creates a device seed (the key that opens your notepad) and Flow ID device tokens. The plugin keeps them, the account you confirmed, and the access statement this device accepted, in Obsidian's secret storage. It never writes them to data.json or anywhere in the vault folder, which git and other sync tools copy. The plugin has no data.json at all.
| Platform | Where the secrets are kept |
|---|---|
| macOS | Obsidian's app data, encrypted with a key in the macOS Keychain (Electron safeStorage) |
| Windows | Obsidian's app data, encrypted with Windows DPAPI |
| Linux | Obsidian's app data, encrypted with your keyring (libsecret or KWallet) |
| Linux without a keyring | Obsidian's app data, unencrypted: the plugin says so and asks before linking |
| iOS | The iOS Keychain, through Obsidian's native secure storage |
| Android | Android's secure storage, through Obsidian's native secure storage |
Trade-offs to know:
- Plugins aren't isolated from each other. Any plugin you install runs with the same access as this one and could read Obsidian's secret storage. Install plugins you trust.
- Mobile secret storage is shared by every vault on the device, so each vault's link lives under its own random name.
- Obsidian saves secrets in the background. On mobile the native write isn't awaited, and on desktop the encrypted secrets go to app storage that is written to disk lazily. Flow ID rotates the refresh token on every refresh; if Obsidian is killed in the instant between a refresh and that save, the next start presents the old token, Flow ID refuses it, and you link again. Nothing is lost: your notes are on both sides.
The plugin also keeps two caches in Obsidian's app data, never in the vault: the device client's encrypted local database and an index of what was last synced, each named for this link alone. A new link starts both afresh.
- Unlink (in settings or the command palette) stops syncing and forgets the device seed, its tokens, its local database and the sync index on this device. Your files stay. Flow ID can only revoke a device from NOTE, so remove it under Access in NOTE too: until then its tokens stay valid.
- Removing the device under Access in NOTE, or Flow ID revoking it, stops the plugin at its next sync: it wipes the same, writes nothing more, and says so in a notice that stays until you close it. Your files stay. Link again to keep syncing.
- Any other stop (offline at startup, the vault open in another window, a check that failed) shows a notice too, once per reason, and settings offer Retry.
- id.flow.industries (Flow ID): links the device, refreshes its tokens, and relays your encrypted notepad to and from your PDS. Only the device name, its public keys, a slow hash of the device code and ciphertext leave this device.
- note.flow.talk: opened in your browser to approve the link. The plugin itself doesn't contact it.
- plc.directory, or a
did:webaccount's own domain, and your handle's domain (https://<handle>/.well-known/atproto-did): read once at linking to show the account's handle. - cloudflare-dns.com: asked for the DNS record
_atproto.<handle>over DNS-over-HTTPS, only when the handle's domain doesn't answer over HTTPS. The network's own resolver isn't trusted for this.
The plugin sends no telemetry.
Use Bun 1.4.2.
bun install --frozen-lockfile
bun run lint
bun run lint:obsidian # the rules Obsidian's community-plugin review runs
bun run typecheck
bun test # unit tests and the end-to-end run against an in-memory Flow ID and PDS
bun run build # main.js at the repository root
bun run smoke # loads main.js as Obsidian does, with no Node modulesObsidian's API is used only under src/obsidian/ and src/main.ts; everything else runs under bun test. To try a build, copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/flow-note/ and enable FLOW NOTE Sync under Settings → Community plugins.
bun run version x.y.z updates package.json, manifest.json and versions.json. Merge that, then push a tag named exactly x.y.z: the release workflow checks it, builds, and attaches main.js, manifest.json and styles.css to a draft release.
MIT