AFFiNE
★ 73.8kA self-hosted alternative to Miro, Notion, Obsidian
MIT LicenseOpen Source — No Paywall4 Containers — 4 containers — moderate hosting footprintDocker · Compose · SourceNeeds Pgvector1 documented maintainer
About
AFFiNE is an open-source workspace platform designed for writing, drawing, planning, and organizing knowledge in one place. It combines document editing and whiteboard-style canvas interactions,...
Community Ratings
No ratings yetNew this week
Read recap →Weekly Recap — Oct 16, 2026 – Oct 23, 2026Oct 23, 2026
Features
- edgeless canvas
- rich text editing
- sticky notes
- embedded web pages
- multi-view databases
- linked pages
- shapes
- slides
- AI-assisted writing and brainstorming
- real-time collaboration
Details
- Last Updated
- Oct 26, 2026
- Created
- Jul 31, 2022
- Install Methods
- dockerdocker-composesource
- Privacy & Independence
- Cloud: OptionalOffline Capable
- User Model
- Multi-User
- Deployment
Deployment: Docker Compose ✓4 Containers — moderate hosting footprintRuns as 4 containers
Run AFFiNE with Docker Compose
Compose file from the AFFiNE project repository.
4 services · database: pgvector · infra: redis, pgvector
no resource limits declared
needs persistent storage (5 volumes)
.docker/selfhost/compose.yml · @ edc87e3 · scanned Jun 4, 2026
name: affine
services:
affine:
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
container_name: affine_server
ports:
- '${PORT:-3010}:3010'
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
affine_migration:
condition: service_completed_successfully
volumes:
# custom configurations
- ${UPLOAD_LOCATION}:/root/.affine/storage
- ${CONFIG_LOCATION}:/root/.affine/config
env_file:
- .env
environment:
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
- AFFINE_INDEXER_ENABLED=false
restart: unless-stopped
affine_migration:
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
container_name: affine_migration_job
volumes:
# custom configurations
- ${UPLOAD_LOCATION}:/root/.affine/storage
- ${CONFIG_LOCATION}:/root/.affine/config
command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js']
env_file:
- .env
environment:
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
- AFFINE_INDEXER_ENABLED=false
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
redis:
image: redis
container_name: affine_redis
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg16
container_name: affine_postgres
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE:-affine}
POSTGRES_INITDB_ARGS: '--data-checksums'
# you better set a password for you database
# or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test:
['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
This file may be out of date. Check the AFFiNE documentation for current setup steps.
Open-source health
Not quite free with issues
- open-washing
- limited-core
- vc-funding
Source: isitreallyfoss.com · reviewed Jun 2025
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.
Metadata extracted from README on Mar 25, 2026
Related Software
AFFiNE Community Edition
73.8k
AFFiNE is an open-source, local-first workspace for writing, drawing, planning, and knowledge management, positioned as an alternative to Notion and Miro.
Knowledge ManagementFOSS with IssuesOpen-Washing Risk+6
4 ContainersFOSS with Issues
TriliumNext Notes
38.6k
Trilium Notes is a free, open-source hierarchical note-taking application for building large personal knowledge bases.
Note Taking AppsCopyleft LicenseKnowledge Management+3
Single Container
docmost
22.1k
Open-source collaborative wiki and documentation software.
WikisCopyleft LicenseFOSS with Issues+5
3 ContainersOpen CoreFOSS with Issues
Gollum
14.3k
Gollum is a git-based wiki system that lets users edit repository-backed pages in a web interface or with a local editor.
WikisPermissive LicenseKnowledge Management+3
Livebook
5.9k
Livebook is a web application for interactive and collaborative Elixir code notebooks.
Note Taking AppsIDE ToolsAutomation Tools+4
4 Containers
HedgeDoc
7.5k
HedgeDoc lets users create real-time collaborative markdown notes.
Note Taking AppsCopyleft LicenseKnowledge Management+2
4 Containers
writer-computer
1.7k
Fast, lightweight desktop app for working with workspace markdown files.
Note Taking AppsKnowledge ManagementDiagramming Tools
AppFlowy
77.8k
AppFlowy is an open-source AI workspace and Notion alternative for notes, databases, collaboration, and building custom productivity apps.
Task ManagementCopyleft LicenseFOSS with Issues+4
Single ContainerFOSS with Issues
TiddlyWiki
8.7k
TiddlyWiki is a non-linear personal web notebook and interactive wiki that can run as a single HTML file in the browser or as a Node.js application.
WikisNote Taking AppsKnowledge Management+2
SilverBullet
6.4k
SilverBullet is a self-hosted, browser-based personal knowledge management platform with a programmable Markdown editor.
Note Taking AppsPastebinsPermissive License+4
Single Container
Docs
16.9k
An open-source collaborative text editor for teams to write, organize, and share knowledge in real time.
Note Taking AppsKnowledge ManagementPermissive License+3
Zim
2.2k
Zim is a graphical desktop wiki editor for organizing notes, journals, task lists, and other plain-text wiki pages.
WikisNote Taking AppsKnowledge Management+3