Skip to main content

ntnsync

Sync Notion pages to local markdown files with git versioning

ntnsync mirrors a Notion workspace into plain markdown files in a git repository, continuously. Every page — and every database, and every row of every database — becomes one .md file whose path never changes, committed on every sync.

Why you would want this

01

Your LLM can actually read it

The Notion API makes an agent paginate a block tree, one page at a time. A markdown tree is grep-able and chunk-able, so the whole workspace fits into a coding agent’s context the same way your source code does.

02

History with no expiry date

Notion’s page history is capped by your plan. Git’s is not capped at all. Every sync is a commit, so “what did this spec say in March?” is a git log away — forever.

03

No lock-in, no cliff edge

If the subscription lapses or the team moves tools, nothing has to be rescued. The knowledge is already on disk, in the one format every editor, search tool and model already reads.

“Notion already exports markdown”

It does — once, by hand, into a fresh folder with fresh filenames. ntnsync is different in three ways that matter:

  • It runs continuously: pull the pages that changed, sync, repeat — on a schedule or on a webhook.
  • File paths are stable. Renaming a page in Notion does not move its file, so a diff shows what changed in the content instead of a delete plus an add.
  • Every version lands in git. Because the paths hold still, the diffs actually mean something.

One-way, and read-only

ntnsync reads Notion and writes files. It never writes back to Notion — not a page, not a property, not a comment. Editing the markdown changes nothing in your workspace, and the next sync will overwrite it.

So this is a mirror, not a backup you can restore into. What you get is readable, searchable, permanently versioned markdown — not a workspace in a box.