Mermaid Viewer for GitHub
Overview
Pan, zoom, and recolor Mermaid diagrams rendered on GitHub.
# Chrome Web Store listing ## Name Mermaid Viewer for GitHub ## Short description Recolor, pan, and zoom Mermaid diagrams directly on GitHub. ## Detailed description Mermaid Viewer for GitHub adds a toolbar to Mermaid diagrams that GitHub has already rendered. The Colorful palette gives flowchart nodes distinct colors and highlights actors and notes in sequence diagrams. - Drag with the left mouse button to move the diagram. - Hover over the diagram and scroll up to zoom in or down to zoom out. Each scroll step zooms around the current pointer position. The + and − buttons also control zoom. - Choose Original to restore the diagram's colors or switch to another palette. - Select Reset to restore the original position and zoom. Color and view changes are applied locally in the browser. This is an independent project. ## Single purpose Improve the readability and navigation of rendered Mermaid diagrams on GitHub by adding color controls, mouse dragging, and pointer-centered zoom. ## Host permission justification The content script runs only on URLs matching https://viewscreen.githubusercontent.com/markdown/mermaid*. GitHub displays rendered Mermaid diagrams inside cross-origin iframes on that host. The extension needs to run inside those frames to locate the rendered SVG, read its position and dimensions, add a toolbar, and apply colors and view transforms. Frame matching lets users operate each embedded diagram independently. ## Data use disclosure The extension processes rendered diagram elements, SVG geometry, the renderer's light or dark mode setting, and mouse or toolbar input locally in the browser to provide its features. Palette selection and view state are kept in memory for the current frame and reset when it reloads. The extension does not record browsing history, persist diagram contents or interaction logs, transmit them to a server, sell them, or share them with third parties. ## Remote code justification The extension does not use remote code. The JavaScript and CSS it runs are included in the uploaded ZIP. ## Privacy policy URL https://github.com/benjamin5252/github-mermaid-viewer/blob/main/PRIVACY.md ## Homepage URL https://github.com/benjamin5252/github-mermaid-viewer ## Support URL https://github.com/benjamin5252/github-mermaid-viewer/issues ## Test instructions 1. Install the extension and open https://github.com/mermaid-js/mermaid/blob/develop/docs/syntax/all-examples.md. The example is public and requires no GitHub sign-in. 2. Find the first flowchart and confirm that its toolbar appears at the upper left with Colorful selected. Switch to Original, then back to Colorful. 3. Drag the diagram with the left mouse button. Move the pointer over the diagram and scroll up and down to verify pointer-centered zoom. 4. Select Reset and confirm that the original position and zoom are restored.
0 out of 5No ratings
Details
- Version1.1.2
- UpdatedDecember 2, 2026
- Offered byk0960355356@gmail.com
- Size8.73KiB
- LanguagesEnglish
- Developer
Email
k0960355356@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes