Install the JavaScript SDK
Get the FireWorks JS SDK running in your project and make your first API call in under 10 minutes.
Install via npm
Run `npm install @fireball/sdk` in your project. The package includes TypeScript types, full JSDoc annotations, and tree-shaking support for minimal bundle size.
Initialize the client
Import the SDK and create a client with your API key from FireStation. The client handles authentication, retries, and connection pooling automatically.
Make your first call
Use `client.rounds.create()` to start a game round and `client.rounds.settle()` to resolve it. Both methods return typed responses with full error information.
Handle events
Subscribe to round events using the built-in event emitter. This lets you react to wins, timeouts, and state changes in real time without polling.



