format.halowerk.com/v1/mermaid-render
Render a Mermaid diagram (flowchart, sequence, class, state, ER, Gantt, pie and more) to SVG and/or PNG with securityLevel strict. Runs mermaid 12.2 from node_modules (no CDN) in a fresh incognito Chrome context with all network requests blocked, initialised with securityLevel strict (labels sanitised, no click callbacks, no HTML labels) and deterministic ids; directives cannot lift the protected
POST
https://format.halowerk.com/v1/mermaid-renderUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://format.halowerk.com/v1/mermaid-render", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"code":"flowchart TD\n A[Order received] --> B{Paid?}\n B -->|yes| C[Ship]\n B -->|no| D[Send reminder]","format":"svg"}),
});
console.log(await res.json());Example input
{
"code": "flowchart TD\n A[Order received] --> B{Paid?}\n B -->|yes| C[Ship]\n B -->|no| D[Send reminder]",
"format": "svg"
}