spidra-nestjs) provides a native NestJS module and injectable service for the Spidra platform:
SpidraModule.forRoot()&forRootAsync(): Dynamic module registration with sync or async configuration (e.g. viaConfigService).SpidraService: Injectable service with typed accessors and dynamic proxy delegation for all 70+ Spidra client methods.@InjectSpidra(): Parameter decorator to inject the underlyingSpidraClient.SpidraWebhookGuard: Controller guard that verifies HMAC-SHA256 signatures on incoming asynchronous webhooks.
Installation
Get your API key from app.spidra.io under API Keys.
Store it in your environment or NestJS
ConfigService. Never hardcode keys.Configuration
ImportSpidraModule into your root AppModule:
Synchronous configuration
Asynchronous configuration (with ConfigService)
Quickstart
1. In a service
InjectSpidraService into any provider or controller:
2. In a controller with Webhook Guard
Protect webhook receiver endpoints withSpidraWebhookGuard:
Scraping & browser actions
Deep site crawling
Live web & SERP search
Parallel batch scraping & streaming watchers
Domain mapping
Document parsing (PDF, Word, Excel)
Turnkey templates & monitors
Error handling
Express
Express.js middleware, turnkey router, and error handling.
Fastify
Fastify high-performance plugin and route decoration.

