Self-hosted · Docker · MIT

Notes, on
your own disk.

Flow Notes is a note server you run yourself. Every note is a plain Markdown file under data/notes/<account>/, the folders on disk are the sidebar, and SQLite holds only the accounts and a search index that is rebuilt from those files. The browser client fetches nothing from the network — no CDN, no web fonts, no remote icons.

  • MIT
  • 7 UI languages
  • SQLite FTS5
  • Multi-user
  • ~51 MB compressed image
  • Zero external requests
Flow Notes with the sidebar open: folders, a selected note in the tree and the editor showing headings, a task list and a code block The same note in the dark theme

What it does

Storage, search, editing and accounts — and what each of them refuses to do.

Files first

One Markdown file per note, one folder per sidebar folder, no hidden format. Edit them over SSH; the tree and the index catch up within two seconds.

Search you can rebuild

SQLite FTS5 with snippet() excerpts and highlighted hits, plus a substring fallback so Chinese, Japanese and Korean words still match. Delete the index and resync.

An editor that speaks Markdown

Tiptap with a Markdown round trip. / opens 17 commands; # , - , 1. , > , --- and a fence convert as you type; pasted screenshots are uploaded and inserted.

Accounts with their own space

Each account owns notes/<name>/ and uploads/<name>/, and the index is filtered by owner. Administrators add, disable and delete accounts; deleting moves the files to data/trash/.

No external requests

Everything the browser needs comes from your server: the editor bundle is built locally with esbuild, every icon is an inline SVG, and the Content-Security-Policy only allows this origin. A browser that can reach your LAN but not the internet still gets the whole interface.

Seven languages, RTL included

English, Arabic, Spanish, French, Russian and both Chinese scripts, with a full right-to-left layout for Arabic. Light, dark or follow the system, and six accent tones.

Autosave that survives a closed tab

Edits save 600 ms after the last keystroke; a pending change is flushed with keepalive when the page is hidden. Every note can also leave as a ZIP of Markdown.

One container, one volume

Multi-architecture image on linux/amd64 and linux/arm64. Mount ./data and that is the entire state: notes, images, accounts, index.

Screenshots

Taken from a running instance with a demo account — the same build you can pull.

Dark theme: sidebar with Personal and Work folders, and a note with a task list and a SQL snippet
Dark theme, same note
Settings page: account and password, appearance with theme, language and accent colour
Settings: account, appearance, accent colour
Phone-sized layout: a hamburger button, a breadcrumb and the editor canvas
390 px wide, drawer closed

Deploy

Docker with Compose, one port and one directory. No external database, no mail server, no TLS termination.

01

Clone and start

The image builds locally from source. ./data is created on first start; mount it and that is the whole state.

git clone https://github.com/noelbennettz/flownotes.git
cd flownotes
mkdir -p data
docker compose up -d --build
02

Or run the published image

ghcr.io/noelbennettz/flownotes:latest is public and multi-architecture, so docker pull needs no login. The Compose file that comes with the repository keeps ./data and the same port.

docker compose -f docker-compose.ghcr.yml up -d
docker compose -f docker-compose.ghcr.yml logs -f flownotes
03

Finish the setup wizard

Open http://your-server:8000/; with no accounts the service sends you to /setup. Create the administrator, and the instance becomes yours. Set FLOWNOTES_SETUP_TOKEN before the first start if the port may be reachable by others: the wizard then asks for it and refuses everything else.

Rootless Docker: the container user is 1000, which maps to a sub-uid and cannot write a ./data owned by you. Put FLOWNOTES_UID=0 and FLOWNOTES_GID=0 in .env so the container writes files as your own user; on a normal rootful install, leave the defaults.

Limits worth knowing

What Flow Notes deliberately does not do, before you move notes into it.

  • One process, one throttle. Failed sign-ins are counted in memory: ten per address and account in five minutes. Restarting clears the count, and a multi-worker deployment counts each worker separately.
  • No simultaneous editing. Flow Notes is not a collaborative editor: there is no live sync, presence or cursor sharing. Saves are versioned; if two devices write the same note, edits in different places are merged, and edits to the same lines keep one text and store the other as a (conflict …) copy. Treat that as a safety net, not as support for editing one note from several devices at once.
  • Administrators manage accounts, not notes. An administrator cannot open another account's notes; that is intentional, and the fix for a lost note is the filesystem or a backup.
  • Images need a session. /uploads is not public; a note image is served to its owner or an administrator. Files from the single-user era stay readable by any signed-in account.

Plain HTTP is supported on purpose. The session cookie is HttpOnly and SameSite=Lax but not Secure, so an internal address such as http://192.168.1.10:8000 can sign in. Put it behind a TLS proxy before exposing it to the internet.

Search is a convenience, not the source. The index ranks and highlights; the files decide what exists, and POST /api/resync re-compares them. index.db also holds the accounts, so back it up before deleting it.

Technical details

What runs, what it listens on, and what it stores.

Image
ghcr.io/noelbennettz/flownotes
Tags
latest, master, sha-<commit>
Platforms
linux/amd64, linux/arm64
Port
8000
State
./data volume: notes, uploads, index.db, .session-secret, trash
Stack
Python 3.11, FastAPI, SQLite FTS5, vanilla JS, Tiptap
Languages
7 — English, Arabic, Spanish, French, Russian, Simplified Chinese and Traditional Chinese
License
MIT

Questions

The things worth knowing before moving a year of notes into it.

Where do the notes actually live?

In data/notes/<account>/, one .md file per note, and folders for folders. data/index.db holds the accounts and the FTS5 index; the search tables are rebuilt from the files, while the account rows are not, so copy the database before deleting it. The Markdown is the part worth backing up.

Can I edit files with vim or Obsidian and keep using the web UI?

Yes. GET /api/tree and GET /api/search compare the disk with the index at most once every two seconds per account, so an external edit appears without a restart. If the file changes while the same note is open in the browser, the browser's next save is merged with it when the edits are in different places; if they touch the same lines, the browser's text is kept as a separate (conflict …) note instead of overwriting the external one.

Does it really work with no internet access?

The page, the stylesheet, the editor bundle and every icon come from the same origin, and the server sends a same-origin Content-Security-Policy (default-src 'self', with the inline styles and scripts the app itself ships). Nothing is fetched from a CDN, a font service or an icon host at any point.

What if the administrator forgets the password?

On the server: python -m app.cli passwd admin, or docker compose exec -it flownotes python -m app.cli passwd admin. It writes the database directly, so no restart is needed and existing sessions for that account stop working.

How do I back up or move the instance?

Copy data/ — notes, uploads, index.db and .session-secret — and start the container on the new host with the same directory. Keeping the session secret keeps everyone signed in; dropping it only signs them out.

Why MIT?

It is a small personal tool: run it, fork it, change it, ship it. The only request is that the copyright notice travels with the copies.

Does it serve HTTPS?

No. The app listens on plain HTTP — uvicorn on port 8000 — and the image carries no certificate, no ACME client and no HSTS header. That is deliberate: the session cookie is HttpOnly and SameSite=Lax but not Secure, so a LAN address such as http://192.168.1.10:8000 can sign in. Keep the port on the LAN, or terminate TLS in front of it.

How do I put a reverse proxy in front?

With Caddy it is two lines: notes.example.com { reverse_proxy 127.0.0.1:8000 }. With nginx, proxy_pass http://127.0.0.1:8000; plus proxy_set_header Host $host;, and raise client_max_body_size to at least 21m so 20 MB image uploads are not rejected. No WebSocket upgrade is needed, and binding the published port to 127.0.0.1 keeps plain HTTP off the network. DOCS.md has both configurations.

Can one account edit the same note from several devices at once?

No. Flow Notes does not support simultaneous editing: there is no live sync, no presence and no cursor sharing, so two devices cannot reliably type in one note at the same time. Saves are versioned as a safety net — edits in different places are merged, and edits that touch the same lines keep one text and save the other as a (conflict …) note — but that is there to avoid losing work, not to make multi-device editing a supported workflow. Edit an active note on one device at a time.