Skip to content

@xtandard/audit/hono

Hono adapter: auditPanel() returns a Hono sub-app serving the panel, to compose with app.route(path, panel), and auditContext(), the request-context middleware.

import { … } from "@xtandard/audit/hono";
Name Summary
auditContext Request-context middleware: resolves the actor / tenant from Hono’s context (whatever your auth middleware set) and runs the rest of the chain inside an audit context scope, so every audit.record() downstream is attributed.
auditPanel Create a Hono sub-app serving the panel. The core, the streams runner (or null), the openapi() document builder and close() are attached.
Name Documented on
AuditContextOptions @xtandard/audit/bun
AuditPanelOptions @xtandard/audit