Skip to content
Dropbear Solutions

Product 05 · SyncedNotes

Write anywhere. Sync everywhere.

Offline-first Markdown notes on a server you control. Sign in with a passkey, write with a live preview, and install SyncedNotes as an app on your computer and phone. It keeps working without a connection and syncs when you’re back online.

SyncedNotes on a tablet, showing the note list and a note with a checklist and a table
SyncedNotes on a tablet showing a note with highlighted C# and SQL code, and on a phone showing a note’s preview

Introducing SyncedNotes

SyncedNotes is a Markdown notes app that you run on your own server and use on every device you own, online or off.

Write in Markdown with a live preview, keep notes in binders and tags, and find any of them again with search or the command palette. Code blocks are highlighted, checklists can be ticked off in the preview, and images can be pasted straight into a note.

Every change is saved on the device first, so SyncedNotes works without a connection from the first visit and syncs in the background when you’re back online. When two devices change the same note, the changes are merged and nothing is lost.

There are no passwords: you sign in with a passkey, and an optional app lock hides your notes when you step away. The server runs in Docker behind a Cloudflare Tunnel, or anywhere .NET 10 runs, and keeps everything in a single SQLite database.

SyncedNotes

Plain Markdown, wherever you write.

Writing in Markdown

A note in split view, with Markdown on the left and the preview on the right, including a highlighted C# code block

Notes are plain Markdown, so they stay readable anywhere. Write in the editor, read the formatted preview, or keep both side by side in split view, and switch between them with Ctrl+E. A formatting toolbar and shortcuts handle bold, links, lists and tables, and lists carry on when you press Enter and indent with Tab.

GitHub-flavoured Markdown adds tables, checklists you can tick in the preview and [[wiki links]] between notes. Code blocks are highlighted in about 40 languages, including C#, SQL, PowerShell, TypeScript and Python, each with a copy button. Paste or drop an image into a note and it’s kept on the device and uploaded on the next sync.

Binders, Tags & Search

SyncedNotes in the dark theme with coloured note cards, and binders and tags in the sidebar

Binders keep your notes in categories. Work, Home, Business and Sport are there from the start, and each binder can have its own colour and icon. Tag notes, pin the ones you use most, archive what you’ve finished with, and anything you delete waits in the trash for 30 days.

Give a note a colour and an icon, sort by date, title or your own drag-and-drop order, and show notes as a list or as cards. Drag notes onto a binder, a tag, Pinned, Archive or Trash, or drop .md files in to import them. Search covers titles, content and tags, and #tag narrows it to one tag.

Command Palette & Shortcuts

The command palette searching for “plan”, listing two notes, a command and an option to create a note

Press Ctrl+K and start typing to jump to any note. Start with # for a tag, @ for a binder or > for a command: every action in SyncedNotes is in the palette, from a new note to locking the app.

Shortcuts cover the rest: Alt+N for a new note, / to search and Ctrl+S to sync now, and ? lists them all. On Windows, Microsoft PowerToys Command Palette can add and search notes from Win+Alt+Space, and a quick-add link, a bookmarklet and a token-protected API let other tools create notes too. Export everything as a .zip of Markdown files whenever you like.

Offline & Sync

A note edited without a connection: it shows “Saved offline – will sync later” and the sidebar shows one change waiting

SyncedNotes works offline from the first visit. The app itself is kept on the device, and every change is saved in the browser’s own database first, then marked as waiting to sync. The status at the foot of the sidebar always shows whether you’re synced, offline or how many changes are waiting, and Ctrl+S syncs straight away.

Changes are sent shortly after you stop typing, every minute, whenever you come back to the app and, in Chrome and Edge, in the background after it’s closed. If two devices change different parts of the same note, both changes are kept. If both change the text, the first to sync is kept and the other is saved as a “conflicted copy”, so nothing is lost.

Passkeys & App Lock

The SyncedNotes lock screen with options to unlock with a passkey or a PIN

There’s no password to forget or leak. You sign in with a passkey, using Windows Hello, Touch ID, Face ID, your phone or a security key, and one-time recovery codes get you back in if you ever lose your passkeys. Each account only ever sees its own notes, and by default only the first account can be created.

App lock hides your notes after a set time away, as soon as you leave the app or every time it opens. Unlock with your passkey or an optional PIN, even offline. The server enforces the lock too: while SyncedNotes is locked, it won’t send a single note, even to someone who opens the browser’s developer tools.

An App on Every Device

SyncedNotes installed as an app, running in its own window

Install SyncedNotes from the browser and it opens in its own window with its own icon on Windows, macOS, Linux and ChromeOS, and full screen on Android, iPhone and iPad. The layout fits the screen: three panes on a computer, two on a tablet and one on a phone.

Installed, it adds shortcuts for a new note and search, can appear in your device’s share menu so you can send text and links to it, and on a computer can open .md files. Light, dark and system themes follow you between devices, and when a new version is ready SyncedNotes asks before it updates.

Set-up guide

From your server to every device, step by step.

Set up the server once, create your account with a passkey, then install SyncedNotes on each device you use.

  1. Set up the server Docker and a Cloudflare Tunnel, or any host that runs .NET 10.
  2. Create your account A username and a passkey. No password.
  3. Install the app On your computer, phone and tablet.

Part 1

Set up the server

SyncedNotes runs in Docker behind a Cloudflare Tunnel. Cloudflare serves HTTPS for your domain and sends each request to your server over a connection the server opens itself, so the server needs no open ports and no certificate.

Your devices The browser or the installed app
Cloudflare Your domain, such as notes.example.com

Your server · no open ports

cloudflared Connects out to Cloudflare
SyncedNotes The app, on port 8080
Your notes One SQLite database
Your devices reach SyncedNotes through Cloudflare. On the server, only the cloudflared container can reach the app, and your notes, images and accounts live in one database on a Docker volume.

What you need

  • A server or computer that stays on, with Docker and Docker Compose. It needs no open inbound ports, only outbound access to Cloudflare on port 7844 (UDP and TCP), and to GitHub and NuGet while it builds.
  • A domain that uses Cloudflare for its DNS.
  • A GitHub account with access to the SyncedNotes repository. The repository is private, so get in touch to ask for access.
  1. Create a GitHub access token

    The server builds SyncedNotes straight from its GitHub repository, so the build needs a token that can read it. In GitHub, create a fine-grained personal access token with access to only the SyncedNotes repository and the Contents: Read-only permission.

    The token is only used to fetch the code. It reaches the build as a BuildKit secret, so it’s never stored in the image, its layers or its history.

  2. Create a Cloudflare Tunnel

    In the Cloudflare dashboard:

    1. Go to Networking > Tunnels, select Create a tunnel and give it a name.
    2. The dashboard shows a command for installing the connector. Copy the token from it: the long string that starts with eyJ. You don’t need to run the command.
    3. On the tunnel’s Routes tab, select Add route > Published application. Choose the host name for SyncedNotes, such as notes.example.com, and set the service URL to:
    Service URL
    http://syncednotes:8080

    The route creates a DNS record for the host name, so delete any A, AAAA or CNAME record it already has first. Anyone with the tunnel’s token can run your tunnel, so keep it like a password. Cloudflare’s guide to creating a tunnel has the latest labels.

  3. Add your settings

    Copy the docker folder from the SyncedNotes repository to the server. It holds everything the server needs: Dockerfile, docker-compose.yml and .env.example. In that folder, create your settings file:

    Terminal
    cp .env.example .env

    Then open .env and fill in these values:

    .env
    GIT_PAT=github_pat_…
    TUNNEL_TOKEN=eyJ…
    DOMAIN=notes.example.com
    REGISTRATION=FirstUserOnly
    GIT_PAT
    The GitHub token from step 1.
    TUNNEL_TOKEN
    The tunnel’s token from step 2.
    DOMAIN
    The host name from the route. Passkeys are tied to it, so choose the address you’ll keep before you create your account.
    REGISTRATION
    FirstUserOnly (the default) lets only the first account be created. Open lets anyone create an account, each with only their own notes, and Closed allows no new accounts.

    Keep .env private: it holds both tokens. The file explains its other settings, such as GIT_REF for building another branch or a tag.

  4. Build and start SyncedNotes

    In the same folder, build the app and start it with the tunnel:

    Terminal
    docker compose up -d --build

    The first build takes a few minutes. After a few seconds the tunnel shows as Healthy in the Cloudflare dashboard, and both containers run as non-root users on read-only file systems. Your notes are kept in the syncednotes_data volume, so they survive rebuilds and updates.

    Don’t add ports: to the syncednotes service. The app trusts the visitor details that Cloudflare passes on, which is safe only because nothing but cloudflared can reach it.

  5. Open SyncedNotes

    Open your domain in the browser, such as https://notes.example.com. On the first visit there’s no account yet, so SyncedNotes opens straight to Set up SyncedNotes. Carry on with part 2 to create your account.

    The browser showing the Set up SyncedNotes page, with an Install button at the right of the address bar
    The first visit opens the set-up page. Shown on a test server at localhost: you’ll see your own domain.
Not using Docker? Run it on any server with .NET 10

Publish SyncedNotes from the repository with the .NET 10 SDK:

Terminal
dotnet publish SyncedNotes -c Release -o ./publish
  • Run it behind a reverse proxy that serves HTTPS, such as a Cloudflare Tunnel, Caddy, nginx, IIS or Azure App Service. Passkeys only work over HTTPS.
  • Set ASPNETCORE_FORWARDEDHEADERS_ENABLED=true so the app sees the visitor’s address and that they used HTTPS. Sign-in attempts are rate-limited by address, so without it every visitor shares the proxy’s limit.
  • Pass the original Host header through. Caddy does this by default; in nginx, add proxy_set_header Host $host;.
  • Put DataDirectory on storage that persists. The database is created and updated automatically when the app starts.
Settings reference

Settings live in appsettings.json and can be overridden with environment variables, using a double underscore between section and key (for example Auth__Registration). The Docker set-up sets the registration mode and passkey domain from .env.

SettingDefaultWhat it does
DataDirectory./App_DataThe folder for the SQLite database. Notes, images, accounts and sign-in keys are all in one file.
ConnectionStrings:DefaultEmptyA full SQLite connection string, used instead of DataDirectory.
Auth:RegistrationFirstUserOnlyFirstUserOnly, Open or Closed.
Auth:SessionDays60How long a device stays signed in without being used.
Passkeys:ServerDomainThe host name in useThe domain passkeys are tied to. Set it if SyncedNotes is reachable at more than one host name.
DisableBackgroundCleanupfalseTurns off the job that empties trash older than 30 days and removes unused images.

Part 2

Create your account

Your account is protected by a passkey instead of a password. Passkeys are tied to your domain, so create your account at the address you’ll keep using.

  1. Choose a username

    On the Set up SyncedNotes page, enter a username and, if you like, the name you’d like to see in the app. Then select Create account with a passkey.

    The Set up SyncedNotes page with the username and display name filled in
  2. Save a passkey

    Your device asks you to save a passkey for SyncedNotes. Confirm with Windows Hello, Touch ID or Face ID, your phone or a security key, whichever your device offers. The passkey stays on your device or in your password manager, and there’s no password for anyone to steal.

    Passkeys need a recent version of Edge, Chrome, Safari or Firefox.

  3. Keep your recovery codes

    SyncedNotes then shows ten one-time recovery codes. Copy or download them and keep them somewhere safe, away from your devices: if you ever lose your passkeys, each code signs you in once so you can add a new one.

    Tick I’ve saved my recovery codes and select Open my notes.

    The You’re all set page listing ten recovery codes, with Copy and Download buttons and the I’ve saved my recovery codes box ticked
  4. Start writing

    Your notes open with four binders, Work, Home, Business and Sport, and a pinned welcome note with a quick tour. Select New note or press Alt+N to write your first note.

    SyncedNotes opened for the first time, showing the four starter binders and the Welcome to SyncedNotes note
  5. Sign in on your other devices

    On each of your other devices, open the same address and select Sign in with a passkey. If your passkey syncs through your password manager, it’s already there. If not, choose to use your phone, scan the QR code and confirm on the phone.

    Your notes download to the new device, and from then on it works offline too.

    The Welcome back page with a Sign in with a passkey button and a link to use a recovery code
  6. Add a passkey for each device, and lock it down

    Open Settings (Ctrl+,) > Security and select Add a passkey on each device, so it can sign in on its own next time.

    In the same place, turn on App lock to hide your notes after a set time away, when you leave the app or every time it opens, and set an optional PIN for unlocking.

    Settings, Security: the passkey list with an Add a passkey button, and the App lock options

Part 3

Install the app

SyncedNotes is a progressive web app, so you install it from the browser: no app store needed. Installed, it gets its own icon and window, opens straight to your notes and works offline.

On a computer, with Chrome or Edge

Windows, macOS, Linux and ChromeOS. Open SyncedNotes in the browser, then:

  1. Select the install icon

    Select Install SyncedNotes, the icon at the right-hand end of the address bar.

    No icon? Open the browser’s menu and look for Install SyncedNotes: in Chrome it’s under Cast, save, and share, and in Edge it’s under Apps.

    The install icon at the right of the browser’s address bar, with the tooltip Install SyncedNotes
  2. Select Install

    The browser shows the app’s name, the address it comes from and a preview. Select Install.

    The browser’s Install app dialog for SyncedNotes, with Cancel and Install buttons
  3. Open it like any other app

    SyncedNotes opens in its own window. Find it in the Start menu, Launchpad or your app list next time, and pin it to the taskbar or Dock. When you visit SyncedNotes in the browser, the same icon becomes Open in app.

    SyncedNotes running in its own app window, with its icon and name in the title bar
SyncedNotes on a phone, showing the note list

On a phone or tablet

Sign in first, then add SyncedNotes to your home screen. It opens full screen, without the browser around it.

iPhone and iPad, in Safari
  1. Tap Share. If you can’t see it, tap ⋯ first.
  2. Tap Add to Home Screen, then Add.
Android, in Chrome
  1. Tap Install when Chrome offers it, or open the ⋮ menu and tap Add to Home screen or Install app.
  2. Tap Install. SyncedNotes appears with your other apps, and in the share menu.
Mac, in Safari
  1. Choose File > Add to Dock.
  2. Select Add. SyncedNotes appears in the Dock and Launchpad.

Afterwards

Updates, backups and recovery

Run these on the server, in the docker folder.

Update to the latest version

Get the latest cloudflared, then rebuild SyncedNotes from the latest code. Only what changed is restarted, and installed apps ask before they switch to the new version.

Terminal
docker compose pull cloudflared
docker compose up -d --build

Lost every passkey and recovery code?

Make a fresh set of recovery codes on the server. Your previous codes stop working.

Terminal
docker compose exec syncednotes \
  dotnet SyncedNotes.dll recovery-codes your-username
Output
New recovery codes for sam (previous codes no longer work):
  NVEP5-4EEW8
  EV4CS-CKM4E
  G48YE-48D9F
  …
Sign in at /Account/Recover with one of these codes, then add a new passkey.

Then go to /Account/Recover on your domain, sign in with one of the codes and add a new passkey in Settings > Security.

Back up your notes

Stop the app for a moment, archive the volume to syncednotes-backup.tgz in the current folder, and start it again.

Terminal
docker compose stop syncednotes
docker run --rm -v syncednotes_data:/data -v "$PWD":/backup \
  --user root --entrypoint tar syncednotes \
  -czf /backup/syncednotes-backup.tgz -C /data .
docker compose start syncednotes

To restore a backup, run the same stop and start commands around this one:

Terminal
docker run --rm -v syncednotes_data:/data -v "$PWD":/backup \
  --user root --entrypoint sh syncednotes \
  -c 'rm -f /data/syncednotes.db* && tar -xzf /backup/syncednotes-backup.tgz -C /data'
Troubleshooting
The build can’t fetch the repository
Check the token in GIT_PAT first: it needs access to the SyncedNotes repository with Contents: Read-only. If it’s right, some older Docker Compose releases didn’t pass .env values to build secrets, so update Compose or set the token in the shell with export GIT_PAT=….
The tunnel isn’t healthy
Check TUNNEL_TOKEN and that the server can reach Cloudflare on port 7844 over UDP and TCP. The route’s service URL must be http://syncednotes:8080.
My passkey isn’t offered
Passkeys belong to the domain they were made on. Use the same address you created your account at, and keep the same DOMAIN if you move the server.
“Registration is closed”
By default, only the first account can be created. To let other people have their own account on your server, set REGISTRATION=Open and run docker compose up -d.
Install isn’t offered
The browser only offers to install SyncedNotes over HTTPS, and not in a private window. Firefox on a computer can use SyncedNotes in a tab, but can’t install it.

Get in touch

Interested in SyncedNotes?

Questions about SyncedNotes, pricing or an integration you need? Send a message and we’ll get back to you as soon as possible.