Welcome to the Mermaid Diagrams Repository! This collection contains richly detailed Mermaid diagrams illustrating various technical processes and architectures. From compiler workflows to cloud architectures, these diagrams provide visual insights into complex systems using the powerful Mermaid diagramming language.
This repository contains the following enhanced Mermaid diagrams:
simple_webapp.mermaid- Three-tier web application architecture with AWS componentscomplex_web_app.mermaid- Comprehensive cloud architecture for enterprise applicationsk8s_architecture.mermaid- Kubernetes component architecture showing control and data planes
k8s_journey.mermaid- Complete lifecycle ofkubectl applyfrom user to container creationlinux_boot.mermaid- Detailed Linux boot sequence from BIOS to user loginlinux_process_journey.mermaid- Process lifecycle in the Linux kernellinux_process_w_threads_journey.mermaid- Thread management in Linux processeslinux_scheduler.mermaid- Linux kernel scheduler operation
ssl.mermaid- TLS/SSL handshake flow with modern cryptographic detailssaml.mermaid- SAML authentication and authorization sequencevpn.mermaid- VPN tunneling and encapsulation processdhcp_dns.mermaid- Network address configuration and name resolution flow
compiler.mermaid- Compilation phases from source code to executablecontainer_linux_journey.mermaid- Container lifecycle from image to running processjava_program_journey.mermaid- Java execution flow through JVMpython_program_journey.mermaid- Python program execution process
These diagrams incorporate several enhanced features:
- Consistent Theming - Color palettes tailored to diagram type (Kubernetes blue, AWS orange, etc.)
- Visual Hierarchy - Logical grouping with subgraphs and directional flow
- Component Icons - Emoji icons indicate component types (👤 users, 💾 storage, etc.)
- Technical Details - Protocol specifications, version details, and alternative paths
- Phase Separation - Clear process stages with colored backgrounds
- Comprehensive Comments - Well-documented code with section explanations
Several options are available:
-
VS Code Extension: Install the Mermaid Preview extension
-
Mermaid CLI: Render diagrams to images using the Mermaid CLI:
npx @mermaid-js/mermaid-cli mmdc -i file.mermaid -o output.png
-
Online Editors: Use the Mermaid Live Editor
-
HTML Preview: Generate an HTML file for local viewing:
echo "<!DOCTYPE html><html><head><script src='https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js'></script></head><body><pre class='mermaid'>$(cat file.mermaid)</pre><script>mermaid.initialize({startOnLoad:true});</script></body></html>" > preview.html
Your contributions are welcome! To contribute:
- Fork the repository to your GitHub account
- Create a branch for your changes
- Submit a pull request with a clear description of your changes
This repository is shared under the MIT License. Feel free to use, modify, and share any of the diagrams as you see fit.