Skip to main content
The Spidra Hono integration (spidra-hono) brings web intelligence to modern edge runtimes:
  • Multi-Runtime Web Standards: 100% standard Fetch, Request, Response, and Web Crypto APIs running on Cloudflare Workers, Node.js, Bun, Deno, and Vercel Edge.
  • spidraMiddleware(): Automatically resolves c.env.SPIDRA_API_KEY (or process.env.SPIDRA_API_KEY) and attaches c.get('spidra').
  • spidraWebhookHandler(): Pre-built route handler verifying HMAC-SHA256 signatures with verifyHonoWebhook().
  • createSpidraHonoRouter(): Pre-wired sub-app with turnkey endpoints.

Installation

Compatible with Hono 3+ and 4+.
Get your API key from app.spidra.io under API Keys. Store it in wrangler.toml (Cloudflare Workers) or .env (Node/Bun).

Configuration

In Cloudflare Workers (wrangler.toml):
Or in Node / Bun .env:

Quickstart

1. Basic middleware usage

2. Pre-built router sub-app

Mount all Spidra REST API endpoints under /api/spidra:

3. Webhook receiver

Scraping & browser actions

Deep site crawling

Batch scraping

Domain mapping

Document parsing (PDF, Word, Excel)

Turnkey templates & monitors

Error handling

Fastify

Fastify high-performance plugin and route decoration.

Bun

Native Bun runtime, Bun.file() parsing, and Bun.serve.