# Deploy Hono on forkrail

> Export your Hono app directly with native TypeScript bundling, Web Fetch streaming, and up to 10 concurrent requests per warm Node 24 arm64 worker.

- Framework: Hono
- Category: APIs & backends
- Status: Production ready
- Adapter / Preset: None (native Web Fetch export default app)
- Runtime: Node.js 24 or 22 (arm64)
- Detection: src/index.ts, app.ts, index.ts, server.ts
- Memory: 640 MB default
- URL: https://www.forkrail.com/frameworks/hono

## Capabilities

| Capability | Support | Details |
| --- | --- | --- |
| Web Fetch standard | Supported | Zero adapter needed — just export default app |
| Native TypeScript | Supported | Compiled with esbuild during deploy |
| Streaming responses | Supported | stream(), streamText(), and streamSSE() stream directly |
| 10× concurrency | Supported | Shared warm workers keep tail latency and AWS cost low |

## 1. Export your Hono instance

forkrail detects Hono from `package.json` and runs any exported `{ fetch }` object through Web `Request` and `Response` automatically — no `@hono/node-server` wrapper required.

**src/index.ts**

```ts
import { Hono } from 'hono'

const app = new Hono()

app.get('/', (c) => c.json({ service: 'edge-api', status: 'ok' }))

app.get('/items/:id', (c) => {
  const id = c.req.param('id')
  return c.json({ id, country: c.req.header('x-vercel-ip-country') ?? 'unknown' })
})

export default app
```

## 2. Deploy to forkrail

**Deploy Hono**

```bash
forkrail deploy
forkrail deploy --prod
```

Prefer one file per endpoint instead of a single Hono router? Drop Web Fetch handlers directly inside `api/` — see [Functions in api/](https://www.forkrail.com/docs/functions).

## Related documentation

- [Functions in api/](https://www.forkrail.com/docs/functions.md)
- [Concurrent compute](https://www.forkrail.com/docs/concurrent-compute.md)
- [Function regions](https://www.forkrail.com/docs/function-regions.md)
