Documentation

Hono API Servers

Export supported AI SDK patterns as standalone Hono API servers that run on Node.js.

Hono 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 Hono service that any frontend can call over HTTP.

What you get

A Hono export contains:

  • the pattern's AI and API route logic
  • a generated Hono entry point that mounts the exported routes
  • exact runtime dependencies and TypeScript configuration
  • an .env.example with pattern and server settings
  • a pattern-specific README with routes and security declarations
  • a /healthz endpoint

It does not contain the React UI, Next.js application shell, preview proxy, or product entitlement middleware.

Choose an export

GoalChoose
Run the complete pattern UI and server togetherDownload β†’ Next.js app
Run the pattern API as a separate serviceDownload β†’ Hono API server
Give an AI coding tool the Hono server sourceCopy for a coding agent β†’ Hono API server
Add the pattern to an existing Next.js appInstall with shadcn CLI

Quick start

  1. Open a pattern that offers a Hono export.
  2. Choose Download β†’ Hono API server.
  3. Extract the archive and create .env from .env.example.
  4. Install, typecheck, and start the service:
pnpm install
pnpm typecheck
pnpm dev

The 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.

Continue