# forkrail

> The open-source alternative to Vercel, Netlify, Render, Railway, Heroku, and Northflank — running entirely inside your own AWS account.

Git deploys, preview URLs, instant rollbacks (~5 s), an edge firewall, ClickHouse observability, and real-time spend limits for websites and APIs — billed directly by AWS at cost with 0% platform markup and no seat fees.

## Install

- macOS / Linux: `curl -fsSL https://forkrail.com/install | sh`
- Windows (PowerShell): `irm https://forkrail.com/install.ps1 | iex`
- GitHub: https://github.com/forkrail/forkrail

## Key facts

- **License & pricing:** Free and open source (Apache-2.0). AWS bills your account directly with 0% markup. Always-on infrastructure (routers, ClickHouse/Postgres analytics, Global Accelerator) starts around $130/month depending on region count.
- **Architecture:** Global anycast via AWS Global Accelerator → regional Rust routers (TLS, routing rules, edge firewall, ISR/CDN cache, statics, logs) → AWS Lambda arm64 workers over reverse HTTP/2.
- **Concurrent compute:** Up to 10 concurrent requests pack onto one warm Lambda worker so I/O-bound APIs pay for one function instead of ten.
- **Supported regions:** 20 AWS / Vercel region codes.

## Released features

- **Git push deploys** (GitHub App, every branch) — [Docs](https://www.forkrail.com/docs/deploy-from-github.md)
- **Preview URLs** (one per branch and pull request) — [Docs](https://www.forkrail.com/docs/deploy-from-github.md)
- **Instant rollbacks** (immutable deployments (~5 s)) — [Docs](https://www.forkrail.com/docs/deployments-and-rollbacks.md)
- **Custom domains** (automatic Let’s Encrypt TLS certificates) — [Docs](https://www.forkrail.com/docs/domains.md)
- **Environment variables** (per environment and branch, KMS-encrypted) — [Docs](https://www.forkrail.com/docs/environment-variables.md)
- **Cron schedules** (from your existing config) — [Docs](https://www.forkrail.com/docs/cron-schedules.md)
- **Firewall** (rules, rate limits, bot challenge, Attack Mode) — [Docs](https://www.forkrail.com/docs/firewall.md)
- **Deployment protection** (private previews and share links) — [Docs](https://www.forkrail.com/docs/deployment-protection.md)
- **Logs and observability** (every request, searchable in ClickHouse) — [Docs](https://www.forkrail.com/docs/logs-and-observability.md)
- **Image optimization** (plus middleware and skew protection) — [Docs](https://www.forkrail.com/docs/image-optimization.md)
- **Spend limits** (team and project budgets with auto-pause) — [Docs](https://www.forkrail.com/docs/spend-budgets.md)
- **Team access** (GitHub sign-in, no seat fees) — [Docs](https://www.forkrail.com/docs/team-and-sign-in.md)
- **Redirects, rewrites, headers** (your routing rules, as written) — [Docs](https://www.forkrail.com/docs/routing.md)
- **Functions in api/** (Node and Python side by side) — [Docs](https://www.forkrail.com/docs/functions.md)
- **Notifications and webhooks** (deploys, budgets and incidents) — [Docs](https://www.forkrail.com/docs/notifications.md)
- **Your choice of region** (run where your users are) — [Docs](https://www.forkrail.com/docs/function-regions.md)

## Supported frameworks & runtimes

- **SvelteKit**: @sveltejs/adapter-vercel · ssr + isr + images — [Guide](https://www.forkrail.com/frameworks/sveltekit.md)
- **Astro**: @astrojs/vercel · islands + edge middleware — [Guide](https://www.forkrail.com/frameworks/astro.md)
- **Nuxt**: nitro vercel preset · routeRules + crons — [Guide](https://www.forkrail.com/frameworks/nuxt.md)
- **TanStack Start**: streaming ssr · powers forkrail’s own dashboard — [Guide](https://www.forkrail.com/frameworks/tanstack-start.md)
- **React Router**: react router 7 · vercelPreset() verbatim — [Guide](https://www.forkrail.com/frameworks/react-router.md)
- **Remix**: remix 2 · streaming loaders & actions — [Guide](https://www.forkrail.com/frameworks/remix.md)
- **Vite**: zero-lambda content-hashed s3 delivery — [Guide](https://www.forkrail.com/frameworks/vite.md)
- **Next.js** (Beta): beta · shared router cache & tag revalidation — [Guide](https://www.forkrail.com/frameworks/nextjs.md)
- **FastAPI**: python 3.13 arm64 · 10× concurrent asgi — [Guide](https://www.forkrail.com/frameworks/fastapi.md)
- **Django**: python 3.13 · same-vpc rds + kms secrets — [Guide](https://www.forkrail.com/frameworks/django.md)
- **Flask**: python 3.13 wsgi · zero wrapper needed — [Guide](https://www.forkrail.com/frameworks/flask.md)
- **Express**: node 24 arm64 · loopback http/1.1 — [Guide](https://www.forkrail.com/frameworks/express.md)
- **Hono**: web fetch standard · native typescript — [Guide](https://www.forkrail.com/frameworks/hono.md)
- **Go**: compiled arm64 binary · low-memory cold starts — [Guide](https://www.forkrail.com/frameworks/go.md)
- **Rust**: cargo [[bin]] · native aarch64 release — [Guide](https://www.forkrail.com/frameworks/rust.md)
