Getting Started
Hono API Servers
Nitro API Servers
Documentation
Nitro support lets you run a pattern's server logic outside its Next.js app. The pattern preview stays in Next.js, while the export becomes a standalone, API-only Nitro service that any frontend can call over HTTP.
Beta pin. Generated artifacts pin nitro@3.0.260610-beta. Nitro v3 has no
stable release yet. Re-test after bumping the pin.
What you get
A Nitro export contains:
- the pattern's AI and API route logic under
src/ - programmatic Nitro routes in
nitro.config.ts(no filesystem route scanning) - one handler file per operation under
server/handlers/ - CORS middleware that mirrors the Hono export (
CORS_ORIGINS, streaming headers) - exact runtime dependencies and TypeScript configuration
- an
.env.examplewith pattern and server settings - a pattern-specific README with routes and security declarations
- a
/healthzendpoint
It does not contain the React UI, Next.js application shell, preview proxy, or product entitlement middleware.
Choose an export
| Goal | Choose |
|---|---|
| Run the complete pattern UI and server together | Download → Next.js app |
| Run the pattern API as a Hono Node service | Download → Hono API server |
| Run the pattern API as a Nitro Node service | Download → Nitro API server |
| Give an AI coding tool the Nitro server source | Copy for a coding agent → Nitro API server |
| Add the pattern to an existing Next.js app | Install with shadcn CLI |
Quick start
- Open a pattern that offers a Nitro export.
- Choose Download → Nitro API server.
- Extract the archive and create
.envfrom.env.example. - Install, typecheck, and start the service:
pnpm install
pnpm typecheck
pnpm devThe default server address is http://127.0.0.1:3001. Check the generated
README for the pattern's exact API routes, required environment variables, and
security declarations.
Shared docs
Compatibility constraints and frontend wiring are the same as Hono:
Continue
- Deploy for production builds and environment notes.
Join Today
Copy and Paste 126+
ai sdk templates.
ai sdk templates.
Get early access pricing and shape the future of the product.
Go to pricing