← Self hosted alternative to Notion · this sample is free and always will be

Self-host migration kit: Notion

Dated 2026-11-26. Every claim below was read out of the candidate's own source tree or release API on that date. Nothing here is quoted from a comparison post.

The one thing that decides this

Your databases. Everything else about Notion has a clean self-hosted equivalent. Databases are where the migrations fail, and the candidates split cleanly on it.

candidate · version read · Notion import · what happens to a database

Outline · v1.13.0 (2026-11-15) · first-class, via the Notion API · degraded to a link

AFFiNE · v0.27.4 (2026-08-18) · per-block, from the HTML export · imported as a real table

AppFlowy · 0.15.1 (2026-11-15) · one import entry point, from the export · see below

Docmost · v0.98.0 (2026-11-20) · none found · n/a

SiYuan · v3.8.12 (2026-11-24) · none found · n/a

Outline: the best import, and it drops your databases

Outline ships a complete Notion plugin, 16 files under `plugins/notion/`, including `NotionAPIImportTask.ts` and a dedicated `NotionConverter.ts` with its own test suite. It talks to the Notion API directly over OAuth, so you do not export a zip at all. That is the most mature import of any candidate.

Then read `NotionConverter.ts`. It has 28 named block handlers:

callout, column_list, column, bookmark, breadcrumb, bulleted_list_item, code, numbered_list_item, divider, equation, embed, file, pdf, heading_1, heading_2, heading_3, image, link_preview, child_page, child_database, link_to_page, paragraph, quote, synced_block, table, table_of_contents, toggle, to_do, video

Two things in that list are not what they look like.

`child_database` returns a paragraph containing a mention. Your Notion database does not arrive as a database, a table, or rows. It arrives as a link with the database's title on it. The same is true of `child_page`.

And at the end of the dispatch, any block type not in that list of 28:

Logger.warn("Encountered unknown Notion block", child);
return undefined;

Returning undefined drops the block from the document. The warning goes to the server log. Nothing appears in the imported page, and the person doing the import is never told. So the honest statement about an Outline import is not "it may lose some formatting" - it is that unsupported blocks vanish silently and you will only find them by diffing page by page, or by reading the server log while the import runs.

AFFiNE: worse import path, but it keeps the tables

AFFiNE takes the HTML export rather than the API, which means you do the export by hand. In exchange it has 18 separate per-block adapters, one of which is `blocks/database/src/adapters/notion-html.ts` - 388 lines that walk `table`, `th` and `tr`, build a real column list, detect the title column, and emit rows. It is reconstructing the database, not linking to it.

If your Notion is mostly documents, Outline wins on import quality. If your Notion is mostly databases, AFFiNE is the only candidate here that attempts them, and that single fact outranks everything else on the comparison.

Docmost and SiYuan: no Notion import exists

Zero files matching "notion" anywhere in either repository tree, read on 2026-11-26. Both are good products. Neither has an import path, so moving means re-creating your content by hand or writing the converter yourself. They are not candidates for a migration, only for a fresh start.

AppFlowy

One import entry point, `_sidebar_import_notion.dart`, reading the export rather than the API. Narrower than Outline's converter and than AFFiNE's adapter set. Worth a look only if you already want AppFlowy for other reasons.

Licensing, because it changes who can use it

Docmost, AppFlowy and SiYuan are AGPL-3.0. Outline and AFFiNE report NOASSERTION on the GitHub license API, which means their licence is not one GitHub can classify automatically and you must read it before deploying internally. That is not a warning about those two projects - it is a note that the one-word answer you would get from a comparison table is wrong for them.

What this kit does not tell you

It has not been run against YOUR export. Everything above is read from the candidates' own code, which is how the database behaviour was found at all, and it is strictly better than a feature table. It is not a substitute for the import itself.

The paid kit is that run: your real export, into the candidate this points at, with the row counts, the page counts and the list of what did not arrive on the other side. That part cannot be pre-written, because the answer depends on which of the 28 block types your pages actually use.

Reproduce any line above

curl -s https://api.github.com/repos/outline/outline/releases/latest
curl -s https://raw.githubusercontent.com/outline/outline/main/plugins/notion/server/utils/NotionConverter.ts
curl -s https://raw.githubusercontent.com/toeverything/AFFiNE/canary/blocksuite/affine/blocks/database/src/adapters/notion-html.ts
curl -s "https://api.github.com/repos/docmost/docmost/git/trees/main?recursive=1"

Still OS Digital Holdings LLC, Wyoming.

Still OS Digital Holdings LLC, Wyoming. All offers