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 honoSetup
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:
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:
server.route("/api", questpieHono(app));
// OpenAPI spec at /api/openapi.json
// Scalar UI at /api/docsRelated Pages
- Elysia Adapter
- Next.js Adapter
- Installation — Getting started