Installation
fetch). Also works in modern browsers, Cloudflare Workers, Vercel Edge, and Deno.
Two clients, two credentials
The SDK exports two separate clients, each scoped to a different credential and purpose:| Client | Credential | Purpose |
|---|---|---|
VelaIngestClient | API key (vela_live_...) | Send events into your app |
VelaManagementClient | Client secret (vela_cs_...) | Create apps, manage schemas, configure rules |
Quick example
Features
- Zero dependencies — uses native
fetch, no extra packages to audit - Dual CJS + ESM — works with
require()andimportequally - Full TypeScript types — all inputs and responses are typed; no
anyleakage - Typed error hierarchy — catch
VelaNotFoundError,VelaValidationError, etc. specifically - Batch ingestion — send up to 100 events in one request
Next steps
Ingest Client
Single and batch event ingestion, event fields, levels.
Management Client
Apps, schemas, notification rules — all resource methods.
Error Handling
Typed exceptions, network errors, retry guidance.
Installation
Setup, credentials, edge runtime support.