The Leafen guide
This guide explains Leafen one feature at a time. A person reads the chapter they need. An agent connected to Leafen reads the same chapter and gets the exact names, limits, defaults and steps, so it can act without guessing.
Every chapter is written from Leafen's source and checked against it. The
names on screen are the names in the chapters. Backticked names (an MCP tool,
an API path, a leafen command, a setting) are names that exist. Pictures use
made-up data only, and each one is retaken when the screen it shows changes.
Installing, running a server, the API and apps already have their own documents. This guide links to them and does not repeat them.
Start here
| If you are | Read |
|---|---|
| new to Leafen | Installing Leafen, then Getting started and Concepts |
| writing pages | Pages, then Editor blocks |
| building a database | Databases, then Properties and Views |
| moving from Notion | Moving from Notion, then Differences from Notion |
| connecting an AI agent | Agents, then Leafen MCP |
| building on the API, or making an app | Building on Leafen, Building Leafen apps |
| running Leafen for other people | Self-hosting, then Outside address and Backups |
| stuck | Troubleshooting |
Chapters without a link are being written for the 0.1 pre-release. Each one becomes a link when it is published.
Everything
Using Leafen
- Getting started: the first page after Leafen is installed
- Concepts: workspaces, teamspaces, pages, databases, people and permissions, and how they nest
- The interface: the sidebar, search, settings and the inbox
- Pages: title, icon, cover, sub-pages, the page menu
- Editor blocks: every block type, the slash menu, Markdown shortcuts
- Mentions and comments: mentions, comments and suggestions
- Page history: earlier versions and bringing one back
- Trash: what moving to the trash does, and restoring
- Sharing and permissions: page access, teamspaces, guests, link sharing, publishing a site
- Workspaces and members: members, invitations, roles, teamspaces
- Language and time: language, time zone, date and time formats
- Templates: page templates
- Favorites, recents and notifications
- Keyboard shortcuts
Databases
- Databases: creating one, inline databases, data sources, locking
- Properties: every property type, with its limits and defaults
- Views: every view type, with filters, sorts and groups
- Formulas: every function, with examples
- Relations and rollups
- Forms
- Automations and buttons
- Database templates: row templates and repeating rows
- Sprints
Leafen and connections
- Moving from Notion: importing, matching people, importing again
- Exporting: every way out of Leafen
- Differences from Notion: what Leafen does differently on purpose
- Outside address: reaching Leafen from outside, through Tailscale, your own domain or a temporary link
- Desktop and phone apps: logging in, device codes, notifications
- Accounts and devices: login, devices, sessions
- Organizations and audit: organizations, administrators, the audit log
- Agents: connecting an agent over MCP, keys, working as a person, instruction files
- File apps: opening Leafen's files from other apps, such as over WebDAV
- Backups: backups and restores from the app; server backups are in Self-hosting
- Troubleshooting: common failures and how to find the cause
Installing, running and building
- Installing Leafen: desktop, Docker and source installs, and the first run
- Self-hosting: running a server, settings, proxies, backups, restores, upgrades
- Leafen in a regulated organization
- Leafen MCP: connecting, keys, and every MCP tool
- Building on Leafen: keys, registered apps, the API, webhooks, view links
- Building Leafen apps
- Leafen workspace bundles: the file format Leafen imports and exports
- Architecture
- Development: building Leafen from source and its checks
For agents reading this
Each chapter stands alone: its first paragraph says what it covers and links to what it does not. There is no reading order.
Where the screen and the tools use different words for one thing, the chapter says so where it matters. An agent works as the person who connected it and sees what that person may see, as the Agents chapter explains.
Writing a chapter
The chapter template and the writing rules are in Writing the guide.