AFFiNE — Open-Source Notion Alternative
Docs, whiteboards, and databases in one privacy-first workspace. Local-first with real-time collaboration. 66K+ GitHub stars.
先审查再安装
这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。
npx -y tokrepo@latest install a517c512-e1ff-4814-98f6-65dd2757616d --target codex先 dry-run,确认写入项后再运行此命令。
What it is
AFFiNE is an open-source workspace that combines documents, whiteboards, and databases in a single application. It is designed as a privacy-first alternative to Notion, with local-first data storage and optional real-time collaboration.
AFFiNE supports rich text editing, infinite canvas whiteboards, Kanban boards, and database views. All data is stored locally by default, with optional cloud sync for team collaboration.
How it saves time or tokens
AFFiNE eliminates the need for separate tools for notes, diagrams, and databases. A single workspace handles project planning (Kanban), documentation (rich text), brainstorming (whiteboard), and data tracking (database views).
The local-first architecture means AFFiNE works offline and loads instantly without server round-trips. For AI workflows, the block-based document model makes content programmatically accessible.
How to use
- Download AFFiNE desktop app or use the web version:
# Self-host with Docker
docker run -d -p 3010:3010 ghcr.io/toeverything/affine:latest
- Create a workspace and start adding pages with docs, whiteboards, or databases.
- Switch between document mode and canvas mode for the same page:
Document mode: Rich text with blocks, headings, lists, code
Canvas mode: Infinite whiteboard with shapes, connectors, sticky notes
- Create database views for structured data: tables, Kanban boards, and calendars.
Example
# Project Planning in AFFiNE
Requirements (Document mode)
- Feature A: User authentication
- Feature B: Dashboard redesign
Architecture (Canvas mode)
[Drag shapes and connectors to diagram the system]
Sprint Board (Database mode)
| Task | Status | Assignee |
|---|---|---|
| Auth API | In Progress | Alice |
| Dashboard UI | Todo | Bob |
Related on TokRepo
- AI Tools for Documentation — Documentation and knowledge management tools
- AI Tools for Task Management — Project management and planning tools
Common pitfalls
- Expecting feature parity with Notion on day one. AFFiNE is actively developed and some Notion features (deep API integrations, formulas) may not be available yet.
- Not setting up cloud sync for team use. Local-first means data stays on your device by default. Enable AFFiNE Cloud or self-host for team collaboration.
- Overloading pages with mixed content types. While AFFiNE supports docs, canvas, and databases on one page, complex pages with all three can become hard to navigate. Use separate pages for distinct content types.
- Failing to review community discussions and changelogs before upgrading. Breaking changes in major versions can disrupt existing workflows. Pin versions in production and test upgrades in staging first.
常见问题
AFFiNE is open-source and local-first, while Notion is a proprietary cloud service. AFFiNE combines docs, whiteboards, and databases in one app. Notion requires separate tools for whiteboarding. AFFiNE prioritizes privacy and offline access; Notion prioritizes cloud-first collaboration.
Yes. AFFiNE stores all data locally on your device by default. No internet connection is required for reading or editing. Optional cloud sync is available for team collaboration and cross-device access.
Yes. AFFiNE provides Docker images for self-hosting. This gives your team full data ownership and control. The self-hosted version includes real-time collaboration via WebSocket sync.
Yes. When using AFFiNE Cloud or a self-hosted server, multiple users can edit the same page simultaneously with live cursor visibility and conflict resolution.
Document mode provides a traditional rich text editing experience with blocks, headings, and lists. Canvas mode provides an infinite whiteboard where you can freely arrange text, shapes, images, and connectors. You can switch between modes for the same page.
引用来源 (3)
- AFFiNE GitHub— AFFiNE combines docs, whiteboards, and databases with local-first architecture
- AFFiNE Documentation— AFFiNE documentation and user guide
- Local-First Software Paper— Local-first software design principles
来源与感谢
Created by Toeverything. Licensed under MIT.
AFFiNE — ⭐ 66,900+
讨论
相关资产
Awesome ChatGPT Repos — Open-Source Index
Curated index of open-source ChatGPT-related repos and tools. Use it to discover practical implementations, prompts, and integrations across many stacks.
remindb — Portable Memory DB for AI Agents
remindb stores agent memory in a SQLite file with search and deltas. Install via a one-line script and serve memory to MCP-capable agents.
free-ai-tools — Curated List of Practical AI Developer Tools
A curated list of free/low-cost AI developer tools (LLM APIs, IDEs, agents, infra) for quickly building real apps. Verified 284★; pushed 2026-05-14.
Awesome Claude DXT — Desktop Extensions Directory
Directory of Claude Desktop extensions (DXT). Discover installable desktop integrations and learn patterns beyond MCP servers.