Node.js 18+ — the SDK uses the native fetch API added in Node 18
Works in all modern browsers (Chrome 95+, Firefox 90+, Safari 15+)
Compatible with edge runtimes: Cloudflare Workers, Vercel Edge Functions, Deno
If you need to use the SDK in Node.js 16 or earlier, pass a custom fetch implementation via the fetchImpl option:
import nodeFetch from 'node-fetch';import { VelaIngestClient } from '@vela-event/sdk';const ingest = new VelaIngestClient(process.env.VELA_API_KEY!, { fetchImpl: nodeFetch as unknown as typeof fetch,});
# For management operations (apps, schemas, rules)export VELA_CLIENT_SECRET="vela_cs_..."# For event ingestionexport VELA_API_KEY="vela_live_..."
See the credentials guide for how to generate these values. Client secrets come from Settings → Client Secrets in the dashboard. API keys are generated when you create an app.