Cloudflare
Hono Framework
Framework — Hono

Fast webhook verification,
from edge to node.

Tern's Hono adapter keeps your webhook endpoints tiny and reliable. Use one handler across Cloudflare, Bun, Deno, and Node.js with consistent verification, queuing, and replay controls.

stableedge + node
$ npm i @hookflo/tern
src/index.ts
import { Hono } from 'hono'
import { createWebhookHandler } from '@hookflo/tern/hono'
const app = new Hono()
app.post('/webhooks/stripe', createWebhookHandler({
platform: 'stripe',
secret: process.env.WEBHOOK_SECRET!,
handler: async (payload) => {
// verified payload — handle your event
return { received: true, type: payload.type }
}
}))
export default app

Use Tern with Hono
in production workflows.

src/index.ts
import { Hono } from 'hono'
import { createWebhookHandler } from '@hookflo/tern/hono'
const app = new Hono()
app.post('/webhooks/stripe', createWebhookHandler({
platform: 'stripe',
secret: process.env.WEBHOOK_SECRET!,
handler: async (payload) => {
// verified payload — handle your event
return { received: true, type: payload.type }
}
}))
export default app
Reuse the same verification logic on edge and server runtimes.
Enable queue retries with QStash to protect against transient failures.
Inspect DLQ and replay failed events with Tern controls.

Pair Hono adapter with
reliable delivery controls.

Tern with Upstash gives your Hono webhook endpoints retry queues, dead-letter visibility, and replay APIs so webhook processing stays durable under load.

Explore Reliable Delivery