@johannes.latzel/llm-chat-drawio
v0.1.0
Published
Headless draw.io diagram rendering tools for the llm-chat package
Maintainers
Readme
LLM Chat Drawio
Headless rendering tools for the llm-chat ecosystem: turn a .drawio file into an SVG or PNG image without a browser, X server, or the draw.io desktop app.
Disclaimer: This package was written entirely by AI. Use at your own risk.
Rendering is done in-process with maxGraph (the maintained successor of mxGraph, draw.io's rendering core) running on a jsdom DOM, plus @resvg/resvg-js for rasterisation. No subprocess, no headless browser.
Features
export_drawiotool: reads a.drawio/.xmlfile and writes an image- workspace-aware input and output paths (read/write access enforced)
- SVG and PNG output, format chosen per call from a configured allowlist
- parses both compressed and uncompressed
.drawiofiles DrawioToolPackagebundling the tool into aToolPackage
Prerequisites
- Node.js >= 22
Installation
npm install @johannes.latzel/llm-chat-drawioDocumentation
Full documentation at johanneslatzel.github.io/llm-chat-drawio/
License
MIT. See LICENSE.
Contributing
Issues and PRs welcome at github.com/johanneslatzel/llm-chat-drawio.
