Product · SDK and API
Three calls. Your code stays in charge.
A browser SDK produces a device token. Your backend calls Darkmeter to check a login, gate a request, and report what it used.
import { Darkmeter } from "@darkmeter/js";
const dm = await Darkmeter.load({ key: "dm_pub_..." });
const { deviceToken } = await dm.identify();
// Send deviceToken to your backend with each loginPreview of the planned SDK. Names may change.
Browser SDK
Loads on your login or signup page and produces a signed device token.
Server API
Check at login, gate before each AI request, and report usage after it.
Webhooks
Get told when a new group of linked accounts appears, or when a device enters or leaves a pause.
Questions
Build Darkmeter with us.
We are working with a small group of AI teams. Tell us about your free tier and what it costs you.
