Skip to content
Fourohtwo

format.halowerk.com/v1/vega-render

Render a Vega-Lite or Vega chart specification with inline data to SVG and/or PNG, with mark counts and compiler warnings. Compiles Vega-Lite 6.5 to Vega 6.4 and renders to SVG with the string renderer (no canvas); PNG comes from the Chrome canvas. Both libraries run from node_modules inside a sandboxed Chrome renderer with network blocked, so Vega expressions never run in the API process. Data mu

BaseAnswering
POSThttps://format.halowerk.com/v1/vega-render

Uptime100% of 2 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/vega-render", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"spec":{"data":{"values":[{"month":"Jan","revenue":120},{"month":"Feb","revenue":180}]},"encoding":{"x":{"field":"month","type":"nominal"},"y":{"field":"revenue","type":"quantitative"}},"mark":"bar"}}),
});
console.log(await res.json());

Example input

{
  "spec": {
    "data": {
      "values": [
        {
          "month": "Jan",
          "revenue": 120
        },
        {
          "month": "Feb",
          "revenue": 180
        }
      ]
    },
    "encoding": {
      "x": {
        "field": "month",
        "type": "nominal"
      },
      "y": {
        "field": "revenue",
        "type": "quantitative"
      }
    },
    "mark": "bar"
  }
}