AltFreeStack
Productivitydocker-readypermissive-license

AFFiNE: the best Open Source alternative to Notion in 2026

AFFiNE combines documents, databases and a visual whiteboard on one canvas, offering an alternative to Notion with a strong focus on local-first editing.

License MIT 72k stars liveUpdated hace 1 díaWebsite GitHub Repository

Technical profile

License
MIT
Category
Productivity
Replaces
Notion
Tech stack
RustTypeScriptPostgreSQL

Preview

AFFiNE interface preview

Public image provided by AFFiNE on its own website.

Key features

  • Notion-style docs and databases
  • Integrated infinite whiteboard
  • Local-first mode

AFFiNE vs. Notion

Pros

  • Combines notes and a whiteboard, something Notion doesn't offer natively

Things to consider

  • The official self-host setup still evolves quickly between versions

Quick Docker installation guide

Copy this docker-compose.yml, adjust the example passwords and run docker compose up -d on your server. See the full step-by-step guide →

docker-compose.yml
version: "3.9"
services:
  affine:
    image: ghcr.io/toeverything/affine-graphql:stable
    restart: unless-stopped
    ports:
      - "3010:3010"
    environment:
      - DATABASE_URL=postgresql://affine:affine@affine-db:5432/affine
      - REDIS_SERVER_HOST=affine-redis
    depends_on:
      - affine-db
      - affine-redis
  affine-db:
    image: postgres:15-alpine
    restart: unless-stopped
    environment:
      - POSTGRES_USER=affine
      - POSTGRES_PASSWORD=affine
      - POSTGRES_DB=affine
    volumes:
      - affine_pg_data:/var/lib/postgresql/data
  affine-redis:
    image: redis:7-alpine
    restart: unless-stopped
volumes:
  affine_pg_data: