Developer Docs
Start here for Distlang Metrics quickstarts, API tokens, JavaScript usage, and ingestion examples for Cloudflare and Vercel.
Quickstart Create an API token, send your first metric, and verify it in Distlang Metrics. API Tokens Manage the single long-lived API token used by Distlang Metrics clients and automation. JavaScript Client Use @distlang/client to record and flush metrics from JavaScript apps, workers, and handlers. Cloudflare Workers Send metrics from a Cloudflare Worker into Distlang Metrics using @distlang/client. Vercel Send metrics from a Vercel-hosted Next.js route handler into Distlang Metrics. Metrics API Use the hosted Metrics API directly when you need raw HTTP access instead of the JavaScript client.
Need endpoint-level details? The full API reference lives at api.distlang.com/docs.