Installation
Install and initialize the EmitKit JavaScript package.
Install @emitkit/js with your package manager:
pnpm add @emitkit/js
Initialize it with a server-side API key:
import { EmitKit } from '@emitkit/js';
const client = new EmitKit(process.env.EMITKIT_API_KEY!);
The client defaults to https://api.emitkit.com. See the
TypeScript guide for the first event.