@atsignal/browser
v0.2.0
Published
Browser SDK for Signal.
Readme
@atsignal/browser
Browser SDK for Signal analytics with a default singleton, newInstance(), browser storage helpers, and plugin registration support.
Install
pnpm add @atsignal/browserUsage
import signal from "@atsignal/browser";
await signal.init("your-api-key", {
endpoint: "https://your-collector.example.com/track",
persistQueue: false,
});
await signal.track("PageView");Set endpoint to your real collector URL. The SDK default, https://api.example.com/track, is a placeholder used for docs/tests and will not send events anywhere useful by itself.
Optional browser plugins are published as separate packages. For example, install @atsignal/browser-plugin-enrich-context and import it before using signal.plugins.enrichContext().
More SDK details live in the monorepo root README.
