NoteFlare sync

Sync your notes with your own NoteFlare server.

MarkdownMate for Mac can keep a folder of Markdown files in step with NoteFlare, the notes app you run on your own Cloudflare account. Notes go both ways, they are encrypted on your Mac before they leave it, and they go only to your server. Sync is optional and off until you set it up.

What it does

Every note in NoteFlare becomes a .md file in one folder on your Mac, and every Markdown file in that folder becomes a note. Edit a note in MarkdownMate, in another editor or in NoteFlare on your phone, and the change shows up on the other side.

The files stay ordinary Markdown in your own folder, so everything else keeps working: other editors, Git, iCloud Drive, backups.

NoteFlare sync is in the Mac app. The Ubuntu app doesn't have it yet.

Set it up

You need a NoteFlare server of your own (noteflare.homielab.com explains how to deploy one for free) and its passphrase.

  1. Create a token. In NoteFlare, open Account ▸ Integrations and create an API token with write access. It starts with nf_ and is shown once, so copy it. A read-only token is refused.
  2. Let the app reach the API. NoteFlare sits behind a Cloudflare Access login, which an app can't pass in a browser. In Cloudflare Zero Trust, either add an Access application for the path api/v1 with a Bypass policy (every request still needs your NoteFlare token), or create a service token and a Service Auth policy for that path. NoteFlare's integrations guide has the steps.
  3. Connect. Open a folder in MarkdownMate, then Settings ▸ Sync. Enter your server's address and the token, plus the service token's Client ID and Secret if you made one, and click Connect.
  4. Unlock. Enter your NoteFlare passphrase or recovery code. The app shows the account's email so you can see it is the right server. Your passphrase never leaves the Mac. Without Remember on this Mac it is asked once each time the app opens; with it, the key is kept in the macOS Keychain on this Mac only, not in iCloud Keychain.
  5. Pick the sync folder. It is a folder inside the folder you have open, NoteFlare by default. The first sync downloads your notes into it.

Disconnect in Settings ▸ Sync forgets the server, the token and the key. Your files stay where they are.

How a note becomes a file

The file is named after the note's title, and renaming one renames the other. Archived notes are in an Archive folder inside the sync folder; move a file in or out to archive or unarchive it.

---
noteflare: 3f2b8c1e-7a4d-4e0b-9c55-1d2e3f4a5b6c
tags: [reading, travel]
pinned: true
---
Books for the trip…

The noteflare: line at the top links the file to its note, so the link survives a rename, a move or a copy to a second Mac. NoteFlare labels are tags: in the front matter, and color, pinned and reminder appear only when they are set. Other front-matter keys of your own stay in the file and are never uploaded.

Tags work as in any other note: see tags in Markdown notes.

When it syncs

Sync runs only while MarkdownMate is open: a few seconds after something changes in the folder (a save, another app, Git, iCloud), every minute, when the Mac wakes, when the network comes back, and when you choose File ▸ Sync Now. Offline edits wait in the files and go up on the next sync.

The status bar shows “Synced 2 min ago”, “Syncing…” or “Sync paused”; click it to sync now. Settings ▸ Sync shows the last sync, why it is paused, and the notes that were not synced.

When a note changed on both sides

If a note was edited on the Mac and in NoteFlare since the last sync, MarkdownMate merges the two: changes on different lines are combined, and labels are joined. When the same lines changed on both sides, the file gets the server's version and your Mac's version is saved next to it as Title (conflict date).md, a new note. Nothing is overwritten silently.

Deleted notes go to the trash

A note deleted in NoteFlare moves its file to the macOS Trash. A file deleted on the Mac moves the note to NoteFlare's trash, where it can be restored. Sync never deletes anything for good, and a note that was edited on the other side since is kept.

If more than 5 notes, or over 10 % of them, disappear at once, sync pauses and asks “Move N notes to Trash?” before doing anything; Keep Notes puts them back on both sides. A sync folder that is missing or unreadable, such as a disk that isn't connected, pauses sync without deleting anything, and files not yet downloaded from iCloud are skipped.

Images and files

On a NoteFlare server that stores attachments, a note's images and attached files are downloaded, decrypted on your Mac and saved in an attachments folder inside the sync folder. The note links to the file, so pictures show in the preview and offline.

An image you add to a synced note (PNG, JPEG, GIF, WebP or AVIF, a file inside the sync folder, up to 10 MB) is uploaded encrypted and copied into attachments; your original file is left alone, and the same image used in several notes is uploaded once. Sync never deletes an attachment from the server.

What is not synced

  • Files that aren't Markdown, and subfolders other than Archive and attachments.
  • Notes over 380 KB, files not downloaded from iCloud and files that aren't UTF-8 text. Settings ▸ Sync lists them.
  • Images outside the sync folder or over 10 MB, and a later edit to a file already in attachments: add the new version as a new image.
  • Anything while the app is closed. There is no background service; sync catches up when you open MarkdownMate.

Wiki links such as [[Other note]] are synced as the text they are.

Privacy

Your notes leave the Mac only for the server you entered, and they are encrypted on the Mac first (Argon2id for your passphrase, AES-256-GCM for the notes, the same end-to-end encryption NoteFlare's own apps use), so the server stores text it can't read. HomieLab runs no server for this and receives nothing: no notes, no account, no usage data.

The server's address, the token and the key are kept in the macOS Keychain. More in the privacy policy.

Get MarkdownMate

Free on the Mac App Store. No MarkdownMate account, no subscription.

Mac App Store macOS 15.6 or later
Ubuntu — PPA Ubuntu 24.04 or later

Get MarkdownMate

Mac

Free on the Mac App Store

macOS 15.6 or later

Ubuntu

sudo add-apt-repository ppa:homielab/markdownmate
sudo apt update
sudo apt install markdownmate

Ubuntu 24.04 or later (amd64)

No account, no cloud: notes stay as .md files on your disk.