
Deploy HappyView 2 (PostgreSQL)
A lexicon-driven ATProto AppView.
Just deployed
/var/lib/postgresql/data
Just deployed
Deploy and Host HappyView on Railway
HappyView is a lexicon-driven ATProto AppView. Upload lexicon definitions at runtime and HappyView dynamically generates XRPC query and procedure endpoints, indexes records from the network, and proxies writes to users' PDSes. This Railway template uses PostgreSQL for production use.
About Hosting HappyView
HappyView can use either SQLite or PostgreSQL for its database. This template deploys HappyView and PostgreSQL pre-configured. PostgreSQL is the recommended backend for large, production deployments.
If you'd prefer to use SQLite, check out the HappyView w/ SQLite template.
Common Use Cases
- Building custom ATProto applications with their own record types, queries, and procedures
- Indexing and querying AT Protocol records without running a full relay
- Hosting a production backend for ATProto clients that need OAuth and record management
Dependencies for HappyView Hosting
- PostgreSQL 17+
Deployment Dependencies
Why Deploy HappyView on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying HappyView on Railway, you're one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
SESSION_SECRET
A random 64+ character string (e.g. openssl rand -base64 48)
TOKEN_ENCRYPTION_KEY
Base64-encoded 32-byte key for encrypting plugin secrets and DPoP private keys at rest. Required for dashboard-managed plugin secrets and third-party app OAuth sessions (e.g. openssl rand -base64 32)
