Node.js SDK
@vigilry/node
The official Node.js SDK for the Vigilry Risk Engine. Send events and capture errors from any Node.js application with a single function call.
npm@vigilry/nodeversion0.1.5Node.js>= 18.0.0licenseMIT
Features
- Zero dependencies — uses native fetch() (Node.js ≥ 18)
- Never throws — all errors are caught and logged to console
- TypeScript-first with full type definitions included
- captureError() automatically extracts Error name, message, and stack
- Correlation context for grouping related events (user_id, order_id, etc.)
- Configurable base URL — point to self-hosted or cloud deployments