# Quickback for Hono API

**Quickback for Hono API** is the default compile target. Your `defineTable()` and `defineActions()` files become a complete Hono application: routes, middleware, types, OpenAPI spec, and an MCP server, all generated and ready to deploy.

## What you ship

```
src/
├── routes/        # One file per resource — GET/POST/PATCH/DELETE + batch
├── middleware/    # Auth, firewall, access, guards, masking
├── types/         # TypeScript interfaces inferred from your schema
├── openapi.json   # Generated spec, served at /openapi.json
└── index.ts       # Hono app entry point
```

The generated app runs on **Cloudflare Workers** (recommended) or any Hono-compatible runtime. Pair it with **Cloudflare D1** for SQLite-at-the-edge or **Neon** for full PostgreSQL with database-level RLS.

## Pick your database

| Database | Best for | Notes |
|----------|----------|-------|
| [**Cloudflare D1**](/compiler/targets/hono-api/database/d1) | Most projects | SQLite at the edge. Application-level security. Free tier covers a lot. |
| [**Neon**](/compiler/targets/hono-api/database/neon) | PostgreSQL features needed | Full Postgres with database-level RLS via Neon Authorize. |

## Pick your runtime

| Runtime | Notes |
|---------|-------|
| [**Cloudflare Workers**](/compiler/targets/hono-api/cloudflare) | Default. Edge-native, integrates with the rest of [Quickback Stack](/stack). |
| Bun / Node | Supported via the same Hono output. Less first-class for Stack services. |

## In this section

- **[Cloudflare](/compiler/targets/hono-api/cloudflare)** — Compile and deploy to Workers
- **[Neon](/compiler/targets/hono-api/database/neon)** — Compile to PostgreSQL with RLS
- **[Database](/compiler/targets/hono-api/database)** — D1, Neon, schema and migrations
- **[Using the API](/compiler/targets/hono-api/using-the-api)** — CRUD, batch operations, query params, OpenAPI, errors
