---
title: "Deploy Bun"
description: "A minimal Bun web application."
category: "Starters"
url: https://railway.com/deploy/PnQkK-
---

# Deploy Bun

A minimal Bun web application.

**[Deploy Bun on Railway](https://railway.com/template/PnQkK-)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/PnQkK-/manifest.json

- **Creator:** alphasec
- **Category:** Starters
- **Total deploys:** 34

## Template content

### bun https://devicons.railway.app/i/bun.svg

- **Source:** alphasecio/bun
- **Start command:** `bun run index.ts`
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Bun on Railway
[Bun](https://bun.sh) 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](https://github.com/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 `.ts` files 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](https://bun.sh)
- [alphasecio/bun](https://github.com/alphasecio/bun) GitHub repository
### Deployment Dependencies
- [Bun documentation](https://bun.sh/docs)
- [Bun web application GitHub repo](https://github.com/alphasecio/bun)
## 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.

## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/PnQkK-
