All recipes
Browser
CodeBrowserIIFE
Once you have access to the browser SDK bundle, host it on your own site and add the script below. It instruments window.fetch; use exact request hostnames in the data-services allowlist.
SDK availability
@checkupstream/sdk 0.1.0 is on npm and records requests made with fetch. The browser package is not published; contact us for access. Check the SDK reference for your runtime and review what the SDK sends.1. Add the script tag
HTML
<script
src="/assets/checkupstream-sdk.js"
data-sdk-key="cup_sdk_your_key"
data-services="api.stripe.com,api.openai.com"
async
></script>Package setup
@checkupstream/sdk-browser is not published to npm. If you have received the package, a site with a bundler can import it and call init() directly.
src/checkupstream.ts
import { checkupstreamBrowser } from "@checkupstream/sdk-browser";
checkupstreamBrowser.init({
sdkKey: "cup_sdk_your_key",
});Warning
Use SDK Keys (cup_sdk_*), never API Tokens, in browser bundles. SDK Keys are publishable by design; API Tokens are secrets and the ingest endpoint refuses them.
Continue your setup
Check runtime availability and credentials before deploying an integration.