Integration Steps
-
1
Sign in
Head to the console.edge dashboard and authenticate with GitHub, Google, or email.
Open Dashboard -
2
Grab your API key
Once signed in, copy the auto‑generated key in Settings → API Keys.
CONSOLE_EDGE_API_KEY = "pk_live_********************************"
-
3
Install the SDK
Add our tiny client to your project (Node, Workers, or Browser ESM):
$ npm i @console-edge/sdk
-
4
Initialise with your key
import { consoleEdge } from "@console-edge/sdk"; consoleEdge.init({ apiKey: "pk_live_********************************", project: "my-saas-backend", });
-
5
Log events just like
console.log
console.edge.log(...)
mirrorsconsole.log(...)
. If the first argument is a string, it becomes the event title; the rest are structured context.// basic log with context console.edge.log("Payment succeeded", { user: "cust_123", amount: 1999, currency: "EUR", }); // raw object style (no title) console.edge.log({ type: "auth_attempt", success: false, user: "someone@example.com", });
You’ll see it show up instantly in the dashboard – title, tags, and all 🎉