# @interfere/node

> **Status: canary.** Pre-1.0 API, expect breaking changes. Pin to a specific `10.0.0-canary.N` in CI.

Node.js SDK for [Interfere](https://interfere.com).

## Install

```sh
bun add @interfere/node
```

## Usage

```ts
import { init, captureError, withSpan } from "@interfere/node";

await init({ serviceName: "checkout-worker" });

await withSpan("checkout.fulfill", () => fulfill(order));

try {
  await doWork();
} catch (err) {
  captureError(err);
  throw err;
}
```

Set `INTERFERE_PUBLIC_KEY` to your surface's regional publishable key (`interfere_public_us_*` or `interfere_public_eu_*`). Full docs at <https://interfere.com/docs>.
