Deploy Bun
A minimal Bun web application.
Just deployed
Deploy and Host Bun on Railway
Bun is an all-in-one JavaScript runtime and toolkit built for speed. It ships with a bundler, a test runner and a Node.js-compatible package manager, and runs TypeScript directly without a build step.
About Hosting Bun
This template deploys a minimal Bun web server from the alphasecio/bun repository. Railway builds the app from the repo, starts it with bun run index.ts, and serves it on a public HTTPS domain. The server listens on the port in the PORT variable. Fork the repository, change index.ts, and push to deploy your own app.
Common Use Cases
- APIs and web services: build fast HTTP servers with Bun's built-in
Bun.serve()API. - TypeScript apps without a build step: run
.tsfiles directly in production. - Starter for larger projects: begin with a working deployment and add routes, a database or a frontend.
Dependencies for Bun Hosting
- Bun runtime
- alphasecio/bun GitHub repository
Deployment Dependencies
Why Deploy Bun 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 Bun on Railway, you are 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