freeflowchart

v0.3.2
io.github.northwindapps/freeflowchart Checked 10 hours ago Published 13 days ago

Render text-based flowcharts (FlowScript) to PNG/PDF/Markdown with layout feedback, offline.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

render_flowchart Render flowchart

Render a FlowScript flowchart to PNG or PDF. PNG output is returned as an image so you can check the result; PDF is saved to a file. Pass output_path to save either format to disk. The result also includes a JSON layout: every node with its box (x, y, width, height in CSS px from the image top-left; multiply by scale for image pixels), the script line it came from, the edges, and detected issues ("overlap", "edge_crosses_node") with the script lines involved. Use the issues to revise the script and render again. Pass markdown_path to also save a Markdown file documenting the chart: the PNG i…

ParameterTypeDescription
script *stringFlowScript source, one statement per line
formatstringOutput format
include_layoutbooleanInclude the JSON layout in the result
markdown_pathstringAbsolute path of a .md file to write: image, step outline and FlowScript source.
output_pathstringAbsolute file path to save the output to. Required to keep a PDF in a specific place; if omitted for PDF, a temp file path is returned.
scalenumberPixel ratio (resolution multiplier)
titlestringHeading for the Markdown file (default: its file name)