AFFiNE on Railway
Open-source workspace for docs, whiteboards and databases, self-hosted on Railway.
AFFiNE is an open-source workspace that combines documents, whiteboards and databases on one canvas. It is usually compared with Notion and Miro: you write pages, draw diagrams next to them and link table or kanban views to your content, with desktop, mobile and web apps available.
People self-host AFFiNE to keep notes, wikis and planning material on infrastructure they control, for a team or for personal and family use. The self-hosted server stores documents in PostgreSQL, uses Redis for real-time sync and keeps uploaded files in object storage.
AFFiNE's repository is mostly MIT-licensed, but parts of the backend fall under the AFFiNE EE licence, so check the licence files and AFFiNE's pricing page before commercial use.
What AFFiNE can do
- Docs, whiteboards and databases in one workspace
- Table and kanban database views linked to pages
- Real-time sync across web, desktop and mobile apps
- Admin panel for accounts and server settings
- Full-text search through a Manticore indexer
- Bring-your-own-key AI features
What people use it for
- Team knowledge base or wiki on your own infrastructure
- Whiteboards and diagrams beside the documents they belong to
- Project planning with table and kanban views
- Personal or family notes synced across devices
Videos
Running AFFiNE on Railway
The Railway template deploys the AFFiNE 0.27 server with PostgreSQL (pgvector), Redis, a Manticore search indexer and a Railway Bucket for images and attachments. The configuration file is generated from Railway variables on each start, migrations run in the pre-deploy step, and the administrator account is created on first start. Cost follows the CPU and memory of the five services plus volume and bucket storage.
AFFiNE templates on Railway
Tracklayer templates are listed first. Other AFFiNE templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about AFFiNE
Which AFFiNE template should I use?
The template on this page deploys the AFFiNE 0.27 self-hosted server with Postgres, Redis, a search indexer and bucket storage. It is the full server setup, so there is no separate light variant to choose between.
How do I log in?
Enter your email in AFFINE_ADMIN_EMAIL when deploying. After the first deploy, sign in with that email and the generated AFFINE_ADMIN_PASSWORD from the service variables, then change the password. The admin panel is at /admin.
How do I add other people?
Sign-up is closed by default. Open it under Admin, Settings, or create accounts under Admin, Accounts. Invitation and password-reset emails need SMTP variables, which Railway allows on the Pro plan.
What is the licence?
Most of the AFFiNE repository is MIT, but parts of the backend are under the AFFiNE EE licence. Review the licence files and AFFiNE's pricing page before using a self-hosted server commercially.
Are AI features included?
AI works with your own provider key, which workspace owners add under Workspace Settings, Integrations. No key is supplied by the template.
Guides
Similar apps
Tracklayer maintains the templates marked as such; AFFiNE is a trademark of its owners and this site is not affiliated with them.