gitmote

gitmote / internal / webui / static  ยท  history  ยท  branches

NameModeSize
..
๐Ÿ“„ README.md 1006441145
๐Ÿ“„ mermaid.min.js 1006443565102

Vendored static assets

Third-party assets served by the browse UI, embedded into the binary via //go:embed (see ../webui.go) and served same-origin from /ui/static/โ€ฆ. Vendored โ€” not fetched at runtime โ€” so diagram rendering needs no CDN, works offline, and pulls in no supply-chain dependency at request time.

mermaid.min.js

Client-side Mermaid renderer for ```mermaid blocks in rendered markdown (the browse layout includes it only on pages that have a diagram, and initializes it with securityLevel: 'strict').

Updating

curl -fsSL "https://cdn.jsdelivr.net/npm/mermaid@<version>/dist/mermaid.min.js" \
  -o internal/webui/static/mermaid.min.js
shasum -a 256 internal/webui/static/mermaid.min.js   # record above

Bump the version and hash here in the same change. The single-file build exposes globalThis.mermaid, so a plain <script src> tag is all the layout needs.