A simple, client-side Mermaid diagram viewer with export capabilities. This web application allows you to create, preview, and export Mermaid diagrams to PNG and PDF formats.
- Live preview of Mermaid diagrams
- Export diagrams to PNG
- Export diagrams to PDF
- Minimal, clean interface using Tailwind CSS
- Completely client-side (no server required)
A hosted version of the application is available at https://melashri.net/n-mermaid.
To use the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/MohamedElashri/n-mermaid.git
- Open the
index.html
file in your web browser - Enter your Mermaid diagram code in the left panel
- Click "Update Diagram" to see the preview
- Use the export buttons to save your diagram as PNG or PDF
The application uses the following CDN-hosted libraries:
- Mermaid.js (v10.8.0) - For diagram rendering
- Tailwind CSS - For styling
- html2canvas (v1.4.1) - For PNG export
- jsPDF (v2.5.1) - For PDF export
No installation is required as all dependencies are loaded via CDN.
If you find any bugs or have suggestions for improvement, please open an issue or a pull request on the GitHub repository.
This project is released under the MIT License.