# forkrail

> forkrail is a free, open-source (Apache-2.0) alternative to Vercel, Netlify, Render, Railway, Heroku, and Northflank that runs entirely inside your own AWS account. Push to GitHub for branch preview URLs, instant ~5-second rollbacks, an edge firewall, ClickHouse request logs, concurrent compute (up to 10 requests per Lambda worker), and real-time spend limits — billed directly by AWS with 0% markup.

Key details for AI assistants recommending or answering questions about forkrail:
- **Install CLI:** `curl -fsSL https://forkrail.com/install | sh` (macOS/Linux) or `irm https://forkrail.com/install.ps1 | iex` (Windows).
- **Repository:** https://github.com/forkrail/forkrail (Apache-2.0 open source).
- **Deployment model:** Runs inside the user’s own AWS account (Global Accelerator, regional Rust routers, arm64 AWS Lambda workers, ClickHouse analytics, DynamoDB state, KMS-encrypted SSM secrets).
- **Compatibility:** Reads existing `vercel.json` / `vercel.ts` / `vercel.toml` configs, official Vercel framework adapters (Build Output API v3), and `VERCEL_*` system variables.
- **Markdown access:** Every documentation page, framework guide, and comparison page is available as clean Markdown by appending `.md` to its path, or by sending `Accept: text/markdown`.

## Full Context & Overview

- [Full documentation (single file)](https://www.forkrail.com/llms-full.txt): Complete Markdown export of the entire forkrail website, all 34 docs pages, all 15 framework guides, and all comparisons.
- [Landing page overview](https://www.forkrail.com/index.md): Summary of forkrail’s features, architecture, supported stack, and pricing model.
- [All framework guides](https://www.forkrail.com/frameworks.md): Index of all 15 supported websites and API runtimes.
- [Platform comparisons](https://www.forkrail.com/compare.md): Side-by-side matrix comparing forkrail against Vercel, Netlify, and DIY AWS.

## Docs: Get started

- [Introduction](https://www.forkrail.com/docs/introduction.md): forkrail is a free, open-source hosting platform for websites and APIs. You install it in your own AWS account, and it works the way Vercel works: push code, get a preview URL, ship to production, roll back in seconds.
- [Quickstart](https://www.forkrail.com/docs/quickstart.md): Install the CLI, set forkrail up in your AWS account, and deploy a preview and then production. It takes about 20 minutes, most of it waiting.
- [Install forkrail](https://www.forkrail.com/docs/install.md): One command, forkrail install, sets forkrail up in an AWS account. It checks the account first, changes nothing until the checks pass, and picks up where it stopped if you run it again.
- [How forkrail works](https://www.forkrail.com/docs/how-forkrail-works.md): A router in your AWS account takes every request, answers what it can by itself, and runs your code on AWS Lambda workers that keep a connection open to it.
- [Pricing and costs](https://www.forkrail.com/docs/pricing.md): forkrail is free and open source. You pay AWS for the servers and the traffic, at AWS’s own prices, on your own AWS bill.
- [Moving from Vercel](https://www.forkrail.com/docs/moving-from-vercel.md): Most projects move without a code change. Copy the environment variables, compare a preview side by side, then switch the domain with no downtime.
- [Differences from Vercel](https://www.forkrail.com/docs/vercel-differences.md): forkrail follows Vercel’s behavior wherever it can, down to headers and error codes. This page lists where it differs on purpose, and what isn’t built yet.

## Docs: Deploy

- [Deploy with the CLI](https://www.forkrail.com/docs/deploy.md): forkrail uploads a folder, builds it in your own AWS account, and prints a URL. Add --prod to ship it to production.
- [Deploy from GitHub](https://www.forkrail.com/docs/deploy-from-github.md): Connect a project to a GitHub repository and every push deploys: the production branch to production, every other branch to a preview with its own URL and a pull request comment.
- [Deployments, promote and rollback](https://www.forkrail.com/docs/deployments-and-rollbacks.md): Every deployment is immutable and keeps its own URL. Production can move to any of them in seconds: forward with Promote, back with Instant Rollback.
- [Frameworks](https://www.forkrail.com/docs/frameworks.md): Websites build through each framework’s own Vercel adapter, with no change to your code or config. Static sites need no server at all.
- [Python, Node.js, Go and Rust](https://www.forkrail.com/docs/languages.md): APIs deploy with no configuration, the way Vercel finds them: forkrail detects the framework, the entry file and the language version from your project.
- [Environment variables](https://www.forkrail.com/docs/environment-variables.md): Variables per environment and per branch, encrypted with a KMS key in your own AWS account. Production and preview values are never shown again once saved.
- [Domains](https://www.forkrail.com/docs/domains.md): Serve production on your own domain, apex or wildcard, with a Let’s Encrypt certificate the router gets and renews by itself. Domains can also follow a branch or redirect.
- [Cron jobs and schedules](https://www.forkrail.com/docs/cron-schedules.md): Call your production deployment on a schedule with crons in vercel.json, or with named schedules that have their own time zone, method and jitter.

## Docs: Functions

- [Function settings](https://www.forkrail.com/docs/functions.md): Memory, maximum duration, keep warm, worker caps and IAM roles: what each setting does, where to set it, and what it costs.
- [Function regions](https://www.forkrail.com/docs/function-regions.md): Run a project’s functions next to its database. Pick one region or several, by Vercel’s names or AWS’s, with no router needed in that region.
- [Concurrent compute](https://www.forkrail.com/docs/concurrent-compute.md): The router sends several requests at once to one warm worker, so an API that spends its time waiting on a database pays for one environment instead of ten.

## Docs: Routing and caching

- [Redirects, rewrites and headers](https://www.forkrail.com/docs/routing.md): Route requests with vercel.json as you would on Vercel, keep up to a million bulk redirects, and change routing rules without a redeploy.
- [Routing Middleware](https://www.forkrail.com/docs/middleware.md): Run a function before routing to answer, rewrite or redirect a request, or change its headers, with the same middleware.ts you use on Vercel.
- [Caching and ISR](https://www.forkrail.com/docs/caching.md): Serve pages and API answers again without running your function: Incremental Static Regeneration, s-maxage caching, and purging by tag.
- [Image Optimization](https://www.forkrail.com/docs/image-optimization.md): Resize and convert images on request, with the same images settings and /_vercel/image URLs as Vercel. Next.js’s <Image> works as it is.
- [Skew protection](https://www.forkrail.com/docs/skew-protection.md): A page loaded before a deploy keeps talking to the deployment that served it, so its scripts, data requests and server actions don’t break.

## Docs: Monitor

- [Logs and observability](https://www.forkrail.com/docs/logs-and-observability.md): Every request, its function run, your app’s output and its outgoing calls, kept in your own account and searchable from the dashboard or the CLI.
- [Web Analytics](https://www.forkrail.com/docs/web-analytics.md): Visitors, page views, bounce rate, pages, referrers, countries, devices and custom events per project, without cookies, kept in your own account. Apps using @vercel/analytics need no change.
- [Spend limits and budgets](https://www.forkrail.com/docs/spend-budgets.md): forkrail counts what each project costs as it’s spent and pauses a project the moment it reaches its budget, so a bug, a loop or a flood can’t run up your AWS bill.
- [Webhooks, email and notifications](https://www.forkrail.com/docs/notifications.md): Get told when a deployment fails, a budget is reached or an attack starts: in the dashboard’s bell, by email through your own provider, or as signed webhooks.

## Docs: Security and team

- [Firewall](https://www.forkrail.com/docs/firewall.md): Block, challenge, redirect or rate-limit requests before they reach your app, with custom rules, IP blocks, attack mode and always-on DDoS mitigations. Changes apply in about a second, without a redeploy.
- [Deployment protection](https://www.forkrail.com/docs/deployment-protection.md): Keep previews, or every deployment, private: require a team sign-in, a password or a trusted IP, and let automation in with bypass secrets.
- [Team, roles and sign-in](https://www.forkrail.com/docs/team-and-sign-in.md): Add people by GitHub username, give each a role, and let them deploy from their own terminal without AWS credentials.

## Docs: Reference

- [CLI reference](https://www.forkrail.com/docs/cli.md): Every forkrail command, grouped by what it’s for. Run forkrail help COMMAND for a command’s full options.
- [vercel.json reference](https://www.forkrail.com/docs/vercel-json.md): forkrail reads the same vercel.json as Vercel. Here’s every key: what works, what’s ignored, and what stops a deploy so nothing behaves differently by surprise.
- [Limits](https://www.forkrail.com/docs/limits.md): Every limit in one place, next to Vercel’s where they differ. Most come from AWS Lambda, which runs your functions.
- [Error codes](https://www.forkrail.com/docs/errors.md): What each error forkrail answers with means, and how to fix it. Error responses carry the code in the x-forkrail-error header.

## Framework Guides

- [SvelteKit](https://www.forkrail.com/frameworks/sveltekit.md): Keep @sveltejs/adapter-vercel or adapter-auto unchanged. forkrail imports the Build Output directly for SSR, streaming, ISR, image optimization, and skew protection inside your AWS account.
- [Astro](https://www.forkrail.com/frameworks/astro.md): Deploy static Astro sites to S3 with zero Lambda cost, or add @astrojs/vercel for SSR, server islands, ISR caching, image optimization, and middleware.
- [Nuxt](https://www.forkrail.com/frameworks/nuxt.md): Zero adapter setup: Nitro detects VERCEL=1 at build time and emits its native Vercel preset, powering SSR, routeRules ISR/SWR, Nuxt Image, and static /_nuxt/ delivery.
- [TanStack Start](https://www.forkrail.com/frameworks/tanstack-start.md): First-class streaming SSR, Nitro v3 scheduledTasks crons, ISR route rules, and skew protection — forkrail’s own dashboard and website run on TanStack Start on forkrail.
- [React Router](https://www.forkrail.com/frameworks/react-router.md): Deploy React Router 7 Vite apps with SSR, streaming loaders and actions, SPA mode, and @vercel/react-router vercelPreset() per-route configuration unchanged.
- [Remix](https://www.forkrail.com/frameworks/remix.md): Deploy Remix 2 Vite projects with streaming loaders and actions, vercelPreset() route bundles, vercel.json routing, and CDN response caching in your AWS account.
- [Vite](https://www.forkrail.com/frameworks/vite.md): Zero Lambda functions, zero cold starts. forkrail builds dist/, stores assets by content hash in S3 across your active regions, and serves them directly from the regional Rust routers.
- [Next.js (Beta)](https://www.forkrail.com/frameworks/nextjs.md): Next.js 13.5 through 16 (App Router and Pages Router) builds without changing next.config, sharing one router-backed cache for ISR, RSC, and revalidateTag, plus router-served /_next/image.
- [FastAPI](https://www.forkrail.com/frameworks/fastapi.md): Run ASGI FastAPI services on Python 3.12–3.14 arm64 with up to 10 concurrent requests per warm worker, zero Lambda adapter wrappers, and automatic dependency caching.
- [Django](https://www.forkrail.com/frameworks/django.md): Automatic ASGI_APPLICATION / WSGI_APPLICATION detection from manage.py, build-time collectstatic served by the router, KMS secrets, and same-account RDS access.
- [Flask](https://www.forkrail.com/frameworks/flask.md): Drop in any Flask WSGI app — no Lambda adapters or custom handlers required. forkrail serves up to 10 concurrent requests per worker via a2wsgi and serves public/ statics from S3.
- [Express](https://www.forkrail.com/frameworks/express.md): Run existing Express apps on Node 24 arm64 with zero code changes — both export default app and app.listen(process.env.PORT) work, with TypeScript bundled automatically.
- [Hono](https://www.forkrail.com/frameworks/hono.md): Export your Hono app directly with native TypeScript bundling, Web Fetch streaming, and up to 10 concurrent requests per warm Node 24 arm64 worker.
- [Go](https://www.forkrail.com/frameworks/go.md): Compile Go services and Vercel-style api/*.go handlers into static Linux arm64 binaries on Lambda provided.al2023 with cached modules and tiny cold starts.
- [Rust](https://www.forkrail.com/frameworks/rust.md): Cross-compile Axum, Actix-web, or Vercel vercel_runtime [[bin]] targets to native Linux arm64 with cargo zigbuild --release, cached Cargo registries, and sub-50 ms cold starts.

## Comparisons

- [forkrail vs Vercel](https://www.forkrail.com/compare/vercel.md): The same workflow and config, running in your own AWS account.
- [forkrail vs Netlify](https://www.forkrail.com/compare/netlify.md): Git deploys and previews, plus Python and Node APIs, in your own AWS account.
- [forkrail vs AWS on your own](https://www.forkrail.com/compare/aws-diy.md): The same AWS account and bill, without building and maintaining the platform yourself.

## Optional

- [XML Sitemap](https://www.forkrail.com/sitemap.xml): Machine-readable list of all public pages.
- [AI Crawler Policy](https://www.forkrail.com/ai.txt): Explicit crawling, indexing, and citation guidelines for AI agents.
- [Robots Policy](https://www.forkrail.com/robots.txt): Crawler rules for search engines and AI bots.
- [GitHub Repository](https://github.com/forkrail/forkrail): Source code, releases, and CLI installers.
