@vela/sdk package provides a type-safe client for the Vela API. It has zero runtime dependencies and uses the native fetch API.
Features
- Zero dependencies — uses native
fetch(Node.js 18+, all modern browsers) - Dual CJS + ESM — works with any module system
- Full TypeScript types — all inputs and responses are typed
- Two clients —
VelaIngestClientfor events,VelaManagementClientfor everything else - Typed error hierarchy — catch specific error types like
VelaNotFoundError
Two clients
| Client | Auth | Purpose |
|---|---|---|
VelaIngestClient | API key (vela_live_...) | Send events |
VelaManagementClient | Client secret (vela_cs_...) | Manage apps, schemas, rules |
Quick links
Installation
Install and set up the SDK.
Ingest Client
Send single and batch events.
Management Client
Manage apps, schemas, and rules.
Error Handling
Handle API errors gracefully.