Developers · Playground
Interactive Charts SDK playground
Configure the real mmflow Charts SDK, preview the chart live, generate framework-specific code, and share the playground state without leaking local API keys.
Source
mmflow
Transport
SSE
Streaming
on
Layers
0/0
Loading engine...
Flow Pulse API
The same endpoints that power the /flows dashboard and the terminal's Flow indicators. REST is public and cached; the WebSocket channel needs the same local API key as the keyed chart transport above.
Flow Pulse REST
const res = await fetch("/api/v1/flows/summary?coins=BTC");
const { data, meta } = await res.json();
console.log(data.rows[0]?.flowPressureScore, meta.partial);Flow History REST
const res = await fetch(
"/api/v1/flows/history?coin=BTC&metric=flowPressureScore&interval=1m",
);
const { data, meta } = await res.json();
console.log(data.enabled, data.points.at(-1), meta.partial);Flow Signals WebSocket
import { MmflowSocket } from "@mmflow/sdk";
const sock = new MmflowSocket({
apiKey: import.meta.env.VITE_MMFLOW_KEY,
});
sock.subscribe("flowSignals", "BTC", (payload) => {
console.log(payload);
});
sock.connect();