Integrations · JavaScript framework

Pagerless for Hono

One middleware right after `new Hono()`, on every runtime Hono runs on.

Set up

npm i pagerless
import { Hono } from "hono";
import { pagerlessMiddleware } from "pagerless/hono";

const app = new Hono();
app.use(pagerlessMiddleware());

What it catches

  • Errors your handlers throw (it reads c.error after the handler).
  • On Workers it starts from c.env and sends in executionCtx.waitUntil.
  • Reports 5xx and crashes only, never 4xx, and leaves the response, logs and error exactly as they were.

Questions

Where does the key go on Workers?

npx wrangler secret put PAGERLESS_KEY. The middleware reads it from the Worker's env.

Updated .

Free for you and one backup · 3 apps · no card

Sleep through the small stuff.

Run one command in your repo. Pagerless shows every change before it makes it.

npx pagerless connect