@interfere/javascript is the typed client for the Interfere API. Use it to register releases, upload source maps, and build custom API workflows.
To capture errors and sessions from an app, install its framework SDK.
Install
Make a request
SetINTERFERE_API_KEY to an app secret key with release:write, then run this from your server or build environment:
Authentication options
UseapiKey: { token } for bearer authentication or apiKeyHeader: { apiKey } to send a secret key through x-api-key.
For an operation accepting a public ingestion key, use publicKeyHeader: { apiKey }. Check the operation’s authentication requirements in the API reference. See API keys for the different credential types.
Register releases and upload source maps
Next.js and Vite build plugins handle releases automatically. For another build system, follow Releases and source maps.Handle errors
API failures throwInterfereError. Inspect the status before deciding whether to retry:
Timeouts and retries
SettimeoutInSeconds and maxRetries on the client or an individual request. Pass abortSignal in request options to cancel it.
Eligible requests retry twice by default for HTTP 408, 429, and 5xx responses and respect Retry-After. Network failures and other HTTP statuses are not retried.
For a write whose result is uncertain, inspect the resource before trying again. Set maxRetries: 0 when your workflow needs to make that decision itself.