QUESTPIE
Client IntegrationHTTP Adapters

Hono Adapter

Serve QUESTPIE APIs with Hono.

The Hono adapter connects QUESTPIE to the Hono web framework.

Install

bun add @questpie/hono hono

Setup

src/index.ts
import { Hono } from "hono";
import { questpieHono } from "@questpie/hono/server";
import { app } from "#questpie";

const server = new Hono();

server.route("/api", questpieHono(app));

export default server;

With OpenAPI

OpenAPI is registered as a module rather than wrapping the handler. Add openApiModule to your modules.ts:

modules.ts
import { adminModule } from "@questpie/admin/modules/admin";
import { openApiModule } from "@questpie/openapi/modules/openapi";

export default [adminModule, openApiModule] as const;

The fetch handler stays the same — no wrapping needed:

src/index.ts
server.route("/api", questpieHono(app));

// OpenAPI spec at /api/openapi.json
// Scalar UI at /api/docs

On this page