Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/svg-geometry

Checks up to 200 SVG shapes you describe (rect, circle, ellipse, line, polygon, polyline, text, or a path's bounding box) against the viewBox and viewport the way an SVG renderer would: finds shapes clipped or entirely outside the drawn region, shapes that render nothing (zero or negative size, unstroked line), partial overlaps between shapes, and a zero, negative or malformed viewBox, for agents

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/svg-geometry

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/svg-geometry", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"shapes":[{"x":10,"y":10,"id":"card","type":"rect","width":120,"height":60},{"r":25,"cx":120,"cy":40,"id":"badge","type":"circle"},{"x":150,"y":90,"id":"title","text":"Quarterly revenue","type":"text","fontSize":14}],"viewBox":"0 0 200 100"}),
});
console.log(await res.json());

Example input

{
  "shapes": [
    {
      "x": 10,
      "y": 10,
      "id": "card",
      "type": "rect",
      "width": 120,
      "height": 60
    },
    {
      "r": 25,
      "cx": 120,
      "cy": 40,
      "id": "badge",
      "type": "circle"
    },
    {
      "x": 150,
      "y": 90,
      "id": "title",
      "text": "Quarterly revenue",
      "type": "text",
      "fontSize": 14
    }
  ],
  "viewBox": "0 0 200 100"
}