Skip to content
HALOWERK

Formatwerk

graphviz render

Graphviz compiled to WebAssembly (@hpcc-js/wasm-graphviz 1.30) runs inside a sandboxed Chrome renderer with network blocked, so a pathological graph cannot exhaust the API process. Syntax errors return the Graphviz message; file-reading attributes (image, shapefile, imagepath) and javascript: links are rejected. Node, edge and cluster counts come from the SVG; PNG is rasterised by Chrome.

POST https://format.halowerk.com/v1/graphviz-render

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
dotstringYesGraph in DOT language.
enginestringNo
formatstringNosvg, png (rasterised by Chrome) or both.
scalenumberNoDevice pixel ratio for PNG output.
backgroundstringNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "dot"
  ],
  "properties": {
    "dot": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200000,
      "description": "Graph in DOT language."
    },
    "engine": {
      "type": "string",
      "enum": [
        "dot",
        "neato",
        "fdp",
        "sfdp",
        "circo",
        "twopi",
        "osage",
        "patchwork"
      ],
      "default": "dot"
    },
    "format": {
      "type": "string",
      "enum": [
        "svg",
        "png",
        "both"
      ],
      "default": "svg",
      "description": "svg, png (rasterised by Chrome) or both."
    },
    "scale": {
      "type": "number",
      "minimum": 1,
      "maximum": 4,
      "default": 2,
      "description": "Device pixel ratio for PNG output."
    },
    "background": {
      "type": "string",
      "enum": [
        "white",
        "transparent"
      ],
      "default": "white"
    }
  }
}

Open original schema

Published input example

{
  "dot": "digraph G { rankdir=LR; order -> invoice -> payment; order -> shipment; }",
  "engine": "dot"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’