AFFiNE on Railway

Open-source workspace for docs, whiteboards and databases, self-hosted on Railway.

Official site · License: MIT for most of the repository; parts of the backend under the AFFiNE EE licence · 13 Railway templates

Deploy AFFiNE on RailwayCompare templates

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

AFFiNE: The Open-Source Alternative for Notion, Miro and Airtable · Better Stack
How to Self-Host AFFiNE on a VPS (Open-Source Notion & Miro Alternative) · SaaS Master

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

AFFiNE Docs and WhiteboardsMaintained by Tracklayer
Deploys the AFFiNE 0.27 self-hosted server, an open-source workspace combining docs, whiteboards and databases. Runs with Postgres and pgvector, Redis, a Manticore search indexer a
2 deployments
Deploy
AFFiNE by an independent creator
AFFiNE - Self-host version
282 deployments
Deploy
AFFiNE-latest by an independent creator
Selfhosted sync backend for AFFiNE version 0.23.0+
81 deployments
Deploy
AFFiNE by an independent creator
A basic, out-of-the-box setup of Affine.
34 deployments
Deploy
AFFiNE | Open Source Notion, Miro Alternative on Railway by an independent creator
Self Host AFFiNE. Docs, whiteboards, databases, auto migrations & more
31 deployments
Deploy
Affine with AI Copilot by an independent creator
One-click template for AFFiNE with optional AI (NVIDIA NIM/Google Gemini)
9 deployments
Deploy
AFFiNE by an independent creator
Self-host AFFiNE — docs, whiteboards & databases in one canvas
3 deployments
Deploy
Affine by an independent creator
Notion alternative. Docs, whiteboard, kanban, databases & real-time sync
2 deployments
Deploy
AFFiNE | Open-Source Notion & Miro Alternative with Postgres by an independent creator
Docs, whiteboards and databases in one workspace, self-hosted
2 deployments
Deploy
AFFiNE (AI + Search) by an independent creator
Notion + Miro alternative with AI (your own key) and full-text search
1 deployments
Deploy
AFFiNE [Updated Nov '26] by an independent creator
AFFiNE [Nov '26] (Self-Hosted Notion and Miro Alternative)
1 deployments
Deploy
AFFiNE by an independent creator
Collaborative docs and whiteboards with PostgreSQL and persistent storage.
0 deployments
Deploy
AFFiNE — Open-Source Knowledge Base Software by an independent creator
Notion and Miro alternative: docs, whiteboards and databases, self-hosted
0 deployments
Deploy

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.