mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-17 23:30:09 +02:00
a311cb1ec5
Single self-contained page (dist/diagram-render.html, 9.2MB, committed per eng-review D2) exposing __renderMermaid / __mermaidToExcalidraw / __excalidrawToSvg / __rasterize / __probeImage through browse load-html + js --out. Render contract per D3: securityLevel strict, per-fence ids, print-css font lock, htmlLabels off (canvas-taint-safe). Deterministic build (same sha twice); drift test pins dist == BUILD_INFO == package.json pins and rebuild-reproducibility when toolchain matches. Spike-proven offline: flowchart + sequence SVG, editable .excalidraw scene, 300dpi PNG. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
586 B
JSON
17 lines
586 B
JSON
{
|
|
"name": "@gstack/diagram-render",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Offline diagram-render bundle: mermaid + excalidraw export + mermaid-to-excalidraw, built into a single self-contained HTML page loaded by the browse daemon. Versions are exact-pinned; bump them only via scripts/build.ts (see README.md).",
|
|
"scripts": {
|
|
"build": "bun run scripts/build.ts"
|
|
},
|
|
"dependencies": {
|
|
"@excalidraw/excalidraw": "0.18.0",
|
|
"@excalidraw/mermaid-to-excalidraw": "1.1.2",
|
|
"mermaid": "11.12.2",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1"
|
|
}
|
|
}
|