A Forge app (for Confluence cloud) that renders mermaid diagrams from code blocks in Confluence pages.
Resources:
- Add a code block to your Confluence page
- Write your mermaid diagram syntax inside the code block
- Add a macro using "/" key and search for "mermaid"
- The diagram will be rendered automatically on the page
This app supports all Mermaid diagram types, including:
- Flowcharts
- Sequence diagrams
- Class diagrams
- State diagrams
- Entity relationship diagrams
- And more...
This is a Forge app. Install it from the Atlassian Marketplace.
Clone the repository and install dependencies:
cd custom-ui
yarn # install dependenciesThe project has two directories:
custom-ui- The React UI for rendering diagrams (all JS tooling lives here)app- The Forge app manifest and build output
# Terminal 1: Start the custom UI dev server
cd custom-ui
yarn dev # starts vite dev server on port 5173
# Terminal 2: Start the Forge tunnel
cd app
forge tunnel # proxies requests to local dev serverThen install the app on your Confluence instance using:
cd app
forge install --upgrade# Build the custom UI
cd custom-ui
yarn build
# Deploy to your Forge app
cd app
forge deploy
forge install --upgradecd custom-ui
# Run all tests
yarn test
# Run tests with coverage
yarn test --coverage- Linting: Run
yarn lintfrom thecustom-uidirectory to check code style - Node Version: See
.nvmrcor theenginesfield incustom-ui/package.json - Package Manager: Yarn v1
Contributions to Mermaid Diagrams Viewer are welcome! Please see CONTRIBUTING.md for details.
Copyright (c) 2024 Atlassian US., Inc. Apache 2.0 licensed, see LICENSE file.

