Install
npm
pnpm
bun
Initialize
Surface
Errors
Verifying webhooks
TypeScript types
Every method returns fully-typed responses — imports don’t need a separate types package. If you usetsc --strict, the SDK respects it.
Edge / serverless runtimes
The SDK uses the platformfetch when available — so it works on:
- Cloudflare Workers — drop in, no config.
- Vercel Edge Functions — drop in.
- Deno / Bun — drop in.
- Browser — technically works, but never use a live key in a browser. Route through your server.