AFFiNE puts the database on your disk and the AI off to the side

The pitch for toeverything/AFFiNE is easy to dismiss, because everyone makes it. Local-first, privacy-focused, open source, an alternative to Notion and Miro, 80,131 stars, one canvas for docs and whiteboards.
What makes it worth a look is what happens when you ask how a local-first app also manages to be collaborative, and how an AI feature fits into a document that lives on your disk with no server in the middle.
One canvas, several data shapes
The product claim is that any building block can sit on an edgeless canvas: rich text, sticky notes, embedded web pages, multi-view databases, linked pages, shapes, slides. That is a harder problem than it sounds, because each of those is a different data model. A document is a sequence of blocks. A whiteboard is a spatial graph. A database is a table with views. Slides are an ordered set of frames.
Most tools pick one and imitate the others. A whiteboard app adds text boxes that behave nothing like a document editor. A docs app adds a canvas view that is really a big page. AFFiNE's bet is that the underlying storage can hold all of them as the same kind of object, which is why the word "affine" is in the name: a mapping that preserves structure.
Whether the bet pays off is a matter of taste and habit. The architecture behind it is not.
The Rust underneath
The dependency list is the honest part of the repository. OctoBase is described as the open-source database behind AFFiNE, local-first yet collaborative, a lightweight data engine written in Rust. y-octo is a native, high-performance, thread-safe implementation of Yjs CRDTs, and it is the core engine that lets the client and server deliver local-first behavior. Around them sit Yjs for CRDT state management, napi-rs for compiled Node add-ons, Jotai for React state, and React itself.
That stack tells you what kind of application this is. CRDTs are the mechanism that lets two people edit the same document offline and merge later without a central arbiter. The cost is that every operation has to be commutative and idempotent, and the merge has to produce the same result regardless of arrival order. Doing that in JavaScript is possible and slow. Doing it in Rust, with thread safety, and calling into it from Node through napi-rs, is the choice a team makes when the document is expected to be large and edited for years.
Local-first is the claim; CRDT merge semantics are the thing that makes the claim true. An app that stores files locally but requires a server to resolve conflicts is local-first in the marketing sense only.
Where the AI sits
AFFiNE AI is pitched at the usual tasks: turn an outline into presentable slides, summarize an article into a structured mind map, sort a job plan and backlog, draw and code prototypes from a prompt.
The architectural question is more interesting than the feature list. In a cloud document, an AI feature is a server-side job: send the document, get a result, write it back. In a local-first document, the AI has to produce CRDT operations like any other client, which means the generated content becomes a set of edits that merge with whatever else is happening.
That is the right design, and it has a consequence people notice only after using it. AI edits are undoable, because they are normal operations. They merge with a collaborator's simultaneous edits instead of overwriting the file. And they work offline once the model call has returned, because the write path is local.
The tradeoff is that the model call itself is not local. Unless you point the app at a local model, the prompt and the relevant document content leave the machine. For a tool whose first sentence is "privacy-focused, local-first," that is the tension worth being explicit about: the storage is yours, the inference may not be.
What CRDTs cost you
Worth being concrete about the trade, because "local-first" has become a marketing word.
A CRDT document records operations in a form that can be merged without coordination. To do that, it keeps metadata: unique identifiers per character or block, version vectors, tombstones for deletions. The document that reaches the server is not the document you see; it is a structure that can be reconstructed into the document you see, plus enough bookkeeping to merge a divergent copy.
Two consequences follow. Documents grow in ways users do not expect, because deleting text does not remove the record of the deletion immediately. And merging is not free at scale: the reason y-octo exists as a Rust implementation with thread safety is that doing this in a single-threaded JavaScript runtime becomes the bottleneck on large documents.
The payoff is the property that makes the whole thing worth it. Two people can edit the same paragraph on a plane, and when the laptops reconnect, the result is a merge rather than a decision about whose version wins. For a tool that wants to hold a team's long-lived knowledge, that property is more valuable than any single feature.

What the canvas actually changes
People bounce off Notion-plus-Miro setups for a structural reason: the same idea lives in two places. The spec is in a doc, the diagram is in a board, the tasks are in a database, and none of them know about each other. You copy a link between them and pretend that is integration.
Putting all three on one canvas is a real reduction in that tax. A sticky note can be dragged into a database row. A page can be embedded next to the diagram that explains it. Slides can be frames on the same canvas as the notes they came from.
The cost is discoverability. A canvas with no edges can become a place where things are technically present and practically lost. Apps that constrain you to a hierarchy are easier to navigate precisely because they are more limited. AFFiNE inherits the whiteboard's freedom and the whiteboard's filing problem.
Who this is for
Three groups, and the fit differs.
Teams that already distrust cloud document storage get the architecture they want, with a self-hostable path and data on disk. Teams that live in Notion will find the import and the habits friction, and the AI features will not be enough to justify the move on their own.
Solo users with a large body of notes and a habit of drawing diagrams are probably the best fit. The single-canvas model matches how a lot of people actually think, and the local storage removes the small ongoing anxiety of a subscription holding your archive.
One thing to check before committing: the export path. With any local-first tool, the question that matters in year three is whether you can leave with your data intact, not whether the feature list is longer than the competitor's. A CRDT document that only one application can read is a lock-in with better marketing.
The repository is honest about being a big project with many dependencies and a lot of moving parts. It is not a weekend self-host. But if the choice is between a cloud doc with an AI button and a local database with an AI button, the second one at least keeps the database.
Turn ideas into images with ChatPicture
60 free credits every day. Generate, edit, and download — no prompt engineering degree required.
Related articles
Thirteen eggs stump a whole lineup of models: AI images can draw, but they cannot count
On the evening of November 18, "Doubao stumped by thirteen eggs" reached Weibo's trending list. Of nine image models, only four got the number right, and research already says prompt tweaks cannot fix counting. The problem is a diffusion model with no counter.
A trading skill pack that refuses to tell you what to buy
claude-trading-skills ships four workflows for reviewing a portfolio, screening a setup and journaling a closed trade. It never issues a buy signal, and the README says so three times.
Tencent's Hy3D 3.6 generates the 3D draft, not the finished asset
Hy3D 3.6 pushes generated models to two million faces and eight-kay PBR textures, then hands them to a retopology artist. Tencent had hundreds of its own 3D artists blind-test it first.
ChatPicture
Start generating
Generate production-ready AI images for e-commerce, design, and film.