CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.
TypeScript ai-agentsai-diagramai-presentationbomcadcanvasdiagramdiagram-generatordrawioflowchartinfographicspptppt-generatorpresentation-generatorreactsvgedittext-to-diagramtypescriptworkflow
Diagram Router
Use this prompt to decide whether a request should go through full generation or local editing.
Goal
Choose exactly one path:
displayedit
Decision Rules
- Choose
displaywhen:- there is no current XML
- the user wants a brand-new diagram
- the user wants a major relayout or structural rewrite
- exact local editing would be fragile
- Choose
editonly when:- current XML exists
- the change is small and local
- you can safely preserve most of the current XML structure
Output Contract
Return only one word:
displayedit