▶YouTube
AI Skills

AFFiNE: The Open-Source Workspace That Replaces Notion and Miro

November 23, 2026 · NextGenTip · 7 views

AFFiNE combines docs, whiteboards and databases in one privacy-first, open-source workspace you can run yourself — here is how to install it with Docker Compose.

AFFiNE is an open-source workspace that brings docs, whiteboards and databases together in one place. If you like Notion for writing and Miro for brainstorming but want your notes to live on hardware you control, AFFiNE is built for exactly that. It is free, privacy-first and ready to run on your own server.

What is AFFiNE

AFFiNE (pronounced "uh-fine") describes itself as a next-generation knowledge base that brings planning, organising and creating together. At its heart is a simple idea borrowed from Notion: everything is a block. Pages are built from blocks of text, images, tables and more, and those blocks can live in a document or on an edgeless whiteboard canvas, so writing and diagramming stop being two separate tools.

The project is fully open source, which means you can read the code, fork it, and run it yourself instead of trusting a vendor with your notes. A hosted version exists for anyone who wants the fastest start, but self-hosting is a first-class option with official Docker Compose files.

What you can do with it

How to install AFFiNE

The quickest way to try it is the hosted app at app.affine.pro, or the desktop app from the AFFiNE download page. To run your own copy, Docker Compose is the recommended method. You need Docker with Compose v2, plus at least 4 CPU cores and 2 GB of RAM.

Create a folder and fetch the official Compose file and example configuration:

mkdir affine
cd affine
mkdir -p config
curl -L -o docker-compose.yml https://github.com/toeverything/AFFiNE/releases/latest/download/docker-compose.yml
curl -L -o config/config.json https://github.com/toeverything/AFFiNE/releases/latest/download/config.json.example

Then start the stack:

docker compose up -d
docker compose ps

The one-time migration container should finish successfully while AFFiNE, PostgreSQL and Redis keep running. If you plan to share the instance publicly, set server.externalUrl in config/config.json to your final HTTPS address first.

First steps after installing

Open http://localhost:3010 in your browser and create the first administrator account — the admin panel lives at the same address under /admin. Create a workspace, add a first page, and try dragging a block onto the whiteboard canvas to see how docs and canvas blend. Desktop clients can connect to your self-hosted server, so the same workspace follows you across devices.

Frequently asked questions

Is AFFiNE free? Yes. It is open-source software you can download and run without paying.

How do I stop it? Run docker compose down in the install folder. Your data stays in the local data and config folders, so starting again with docker compose up -d brings the same workspace back.

What should I back up? The PostgreSQL database, uploaded files and any configuration you changed. Test that you can restore from a backup before relying on it.

← Back to all guides

Comments (0)

Leave a comment