Install dependencies
hookfish.config.ts using the Hono guide, then mount
the handler before middleware that consumes /api request bodies.
http://127.0.0.1:3000/api/docs or requesting
/api/openapi.json.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mount the Fetch-compatible Hookfish handler in an Express 5 application.
pnpm add @hookfish/api @hookfish/database @hookfish/providers @hono/node-server express
hookfish.config.ts using the Hono guide, then mount
the handler before middleware that consumes /api request bodies.
import { getRequestListener } from '@hono/node-server'
import { HookfishServer } from '@hookfish/api'
import express from 'express'
import config from '../hookfish.config'
const hookfish = await HookfishServer.init(config)
const handleHookfish = getRequestListener((request) =>
hookfish.fetch(request, process.env),
)
const app = express()
app.use((request, response, next) => {
if (request.path.startsWith('/api/')) {
void handleHookfish(request, response).catch(next)
return
}
next()
})
app.listen(3000, '127.0.0.1')
http://127.0.0.1:3000/api/docs or requesting
/api/openapi.json.
/api paths.