Skip to main content
The Spidra Bun integration (spidra-bun) brings web data intelligence to Bun’s ultra-fast native runtime:
  • Bun Native: Optimized for Bun’s native Fetch, Web Crypto, and standard Web APIs.
  • Bun.file() Document Parsing: parseBunFile() parses local PDFs, Word files, and spreadsheets directly from BunFile handles.
  • Bun.serve Handler: createSpidraBunHandler() provides a plug-and-play HTTP server handler.
  • HMAC Webhook Verification: verifyBunWebhook() verifies asynchronous job completion signatures with Bun’s built-in crypto.
  • Full API Surface: Scrape, Crawl, SERP Search, Batch Scraping, Document Parsing, Domain Mapping, Turnkey Templates, Presets, and Monitors.

Installation

Get your API key from app.spidra.io under API Keys. Store it in .env or set SPIDRA_API_KEY.

Configuration

Set environment variables in .env:
createBunSpidra() automatically reads Bun.env.SPIDRA_API_KEY and process.env.SPIDRA_API_KEY.

Quickstart

1. Basic Client Usage

2. Document Parsing with Bun.file()

Parse local PDFs or office documents in one line using Bun.file():

3. Native Bun HTTP Server (Bun.serve)

Complete Spidra Features Guide

1. Scraping with Browser Actions & Proxies

Handle SPAs, bypass anti-bot shields with residential proxies, and interact with pages before extraction:

2. Deep Site Crawling

Crawl entire domains with breadth-first or depth-first traversal, prefix filtering, and sitemaps:
Query web, news, and image indexes to feed live context into AI applications:

4. High-Throughput Batch Scraping

Scrape multiple independent pages simultaneously:
Discover all discoverable URLs on a domain without downloading full page bodies:

6. Document Parsing

Extract clean markdown and tables from local files using Bun handles or online document URLs:

7. Turnkey AI Templates & Scheduled Monitors

Execute pre-tuned extraction templates and automate recurring scrapes:

HMAC Webhook Verification

Verify webhook integrity with Bun’s native Web Crypto API:

Typed Error Handling

Catch and handle granular Spidra errors:

Fastify SDK

High-performance Spidra plugin for Fastify backends.

Remix SDK

Spidra loaders and actions for Remix and React Router.