1# PlantUML direct-Worker vendor bundle23This directory vendors the exact browser artifacts used by the PlantUML-family4Worker unit.56- `plantuml.js`: `@plantuml/core@1.2026.6`, SHA-2567 `87b8c74c1b9520ee659f4d2c8de16ae19c9f21365856a53d0766a8fa602b24d8`.8 Package integrity, upstream commit, and license are recorded in9 `../licenses/plantuml-core-NOTICE`.10- `viz-global.cjs`: the official package's `viz-global.js` in its native UMD11 CommonJS form. It is patched only to replace Emscripten's dynamic12 `WebAssembly.instantiate` with a precompiled module bridge. It also replaces13 the Node-only `__filename` URL fallback with a fixed inert URL.14 SHA-256 after those two Worker-boundary changes:15 `f1aaf216e736c262e0ae4d7de12eb34bfe889d0d03f057129c55e168a85c9d44`.16- `viz.wasm`: the embedded Viz.js GraphViz module extracted from the official17 artifact's `data:application/octet-stream;base64` payload. SHA-25618 `d744ded85304aea4a4b00343b275b4a1cab4785af8177d364beaa78bed6e8dd4`.1920The bundle proves sequence, class/component GraphViz, and lowered C4 context21rendering in real workerd. A small DOM adapter is present, and Wrangler22provides the Viz module as a precompiled Wasm import. The C4 adapter lowers the23bounded macro surface to ordinary PlantUML primitives and rejects unsupported24macros explicitly.2526Use `../../config/local/plantuml-family.jsonc` for local multi-host workerd27tests.28Wrangler's local route emulation rewrites requests to the first configured29custom domain when the production config is used. Without the local config,30the C4 hostname would exercise the PlantUML descriptor.3132The patched Viz bridge receives a `WebAssembly.Module` through33`globalThis.__DIAGRAMZIP_PLANTUML_VIZ_MODULE`; it must never compile bytes at34request time. Remote PlantUML includes are not supported by this unit.