Skip to content

๐Ÿš€ AI-Powered, Highly Customizable Mermaid Chart Display Platform | Breaking Node Limits + Sequence Playback + Endpoint Alignment Animation + One-Click Sharing | Next.js + Cytoscape.js + ELK.js

License

Notifications You must be signed in to change notification settings

Yippine/Mermaid-Render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Mermaid-Render

AI-Powered Interactive Diagram Platform - Break Mermaid limitations, create cinematic experiences

Next.js TypeScript Cytoscape.js AI

โšก Core Breakthroughs

Pain Point Solution Impact
๐Ÿšซ Node width limits Adaptive Node System Perfect long label display
๐Ÿšซ Messy edge routing Smart Routing + ELK Layout Professional aesthetics
๐Ÿšซ Static presentations Sequence Play + Node Approach Cinematic experience
๐Ÿšซ Manual creation AI Generation Instant diagram creation

๐ŸŽฌ Power Demo

๐ŸŽฏ Sequence Play + Node Approach

Edges 1โ†’2โ†’3...โ†’N highlight in sequence
โ†“
Connected nodes automatically approach each other
โ†“
Camera intelligently tracks, no manual movement needed

๐Ÿค– AI One-Click Generation

"I need to show microservices architecture with API Gateway, User Service, Order Service and Database"
โ†“ 3 seconds later โ†“
Complete Mermaid diagram + optimal layout + color scheme

๐Ÿ“ค Instant Sharing

Edit complete โ†’ One-click share link โ†’ Embed anywhere

๐Ÿ› ๏ธ Tech Stack

Frontend Arsenal

โšก Next.js 14      # Lightning fast rendering
๐ŸŽจ Cytoscape.js    # Graph engine supreme
๐Ÿง  ELK.js         # German engineering layout art
๐ŸŽญ Framer Motion  # Hollywood-grade animations
๐ŸŽฏ TypeScript     # Type safety

Backend Firepower

๐Ÿš€ Fastify        # High-performance API
๐Ÿ—„๏ธ PostgreSQL     # Reliable data storage
โšก Redis          # Lightning cache
๐Ÿค– OpenAI API     # AI brain

โšก Quick Start

๐Ÿš€ Method 1: Local Development (Recommended)

# 1. Clone the project
git clone https://github.com/your-username/Mermaid-Render.git
cd Mermaid-Render

# 2. Install dependencies
npm install
cd server && npm install && cd ..

# 3. Start backend (Terminal 1)
cd server && npm run dev

# 4. Start frontend (Terminal 2)
npm run dev

# 5. Open browser
# Frontend: http://localhost:3000
# Backend API: http://localhost:3001

๐Ÿณ Method 2: Docker Development

# Start only databases (recommended for development)
npm run docker:dev

# Then start frontend and backend separately (as Method 1)

๐Ÿ—๏ธ Method 3: Full Docker Stack

# Start everything in containers
npm run docker:full

# Stop everything
npm run docker:full:down

See magic happen in 30 seconds โœจ

๐Ÿงช Available Commands

Development

npm run dev              # Start frontend development server
npm run server:dev       # Start backend development server
npm run build           # Build frontend for production
npm run start           # Start production frontend server

Testing & Quality

npm run test            # Run unit tests
npm run test:watch      # Run tests in watch mode
npm run test:e2e        # Run end-to-end tests
npm run lint            # Run ESLint
npm run type-check      # Run TypeScript checks

Docker Operations

npm run docker:dev      # Start dev databases only
npm run docker:dev:down # Stop dev databases
npm run docker:full     # Start full application stack
npm run docker:full:down # Stop full application stack

๐Ÿ“‚ Project Structure

Mermaid-Render/
โ”œโ”€โ”€ ๐Ÿ“ src/                    # Frontend source code
โ”‚   โ”œโ”€โ”€ app/                   # Next.js App Router
โ”‚   โ”œโ”€โ”€ components/            # React components
โ”‚   โ”œโ”€โ”€ lib/                   # Utilities and core logic
โ”‚   โ”œโ”€โ”€ hooks/                 # Custom React hooks
โ”‚   โ””โ”€โ”€ types/                 # TypeScript type definitions
โ”œโ”€โ”€ ๐Ÿ“ server/                 # Backend source code
โ”‚   โ”œโ”€โ”€ src/                   # Server source code
โ”‚   โ”œโ”€โ”€ prisma/                # Database schema & migrations
โ”‚   โ””โ”€โ”€ tests/                 # Backend tests
โ”œโ”€โ”€ ๐Ÿ“ config/                 # Configuration files
โ”‚   โ”œโ”€โ”€ build/                 # Build configs (Next.js, Tailwind, etc.)
โ”‚   โ”œโ”€โ”€ docker/                # Docker configurations
โ”‚   โ”œโ”€โ”€ testing/               # Test configurations
โ”‚   โ””โ”€โ”€ development/           # Dev tools config (ESLint, Prettier)
โ”œโ”€โ”€ ๐Ÿ“ tests/                  # Frontend tests
โ”‚   โ””โ”€โ”€ e2e/                   # End-to-end tests
โ”œโ”€โ”€ ๐Ÿ“ docs/                   # Project documentation
โ””โ”€โ”€ ๐Ÿ“ .github/                # GitHub Actions CI/CD

๐Ÿ”ง API Endpoints

Health & Status

GET /health                    # Health check
GET /api/hello                 # Hello World API
GET /api/graphs               # Graph API endpoints

๐ŸŽฏ Core Features

๐ŸŽฎ Interactive Display Modes

  • Sequence Player: 1โ†’N edge highlighting in order
  • Node Approach: Automatic node focus when highlighted
  • Camera Flight: Smooth viewport transitions
  • Region Browse: Smart focus switching

๐Ÿค– AI Superpowers

  • Natural Languageโ†’Diagram: Describe needs, get Mermaid instantly
  • Smart Layout Optimization: AI analyzes optimal arrangements
  • Style Suggestions: Professional color schemes

๐Ÿ“Š Rendering Engine

  • Unlimited Node Width: Say goodbye to text truncation
  • Multi-Layout Engines: ELK/Dagre/Force-directed
  • Beautiful Edge Routing: Avoid messy intersections
  • 60FPS Animations: Silky smooth experience

๐Ÿ”— Collaboration & Sharing

  • One-Click Share Links: Instant shareable URLs
  • Embed Mode: Easy iframe integration
  • Version Control: Edit history tracking
  • Real-time Collaboration: Multi-user editing

๐ŸŽช Use Cases

Scenario Impact
๐Ÿ“‹ Project Presentations Sequence playback guides audience flow
๐Ÿ—๏ธ System Architecture AI generates complex diagrams, one-click beautify
๐Ÿ“š Educational Demos Interactive step-by-step learning
๐Ÿ’ผ Client Proposals Professional visuals increase persuasion

๐Ÿš€ Why Choose Us?

- Mermaid Live Editor: Node truncation, layout limitations
- Draw.io: Manual drawing, no programmatic generation
- Graphviz: Command-line tool, steep learning curve
+ Mermaid-Render: AI-driven + Cinematic experience + Instant sharing

๐Ÿ“ˆ Project Status

๐Ÿšง Development Phase: MVP Sprint
โฑ๏ธ Expected Completion: 3-4 weeks
๐ŸŽฏ Goal: Redefine diagram presentation standards

๐Ÿ’ก Contributing

All forms of contribution welcome!

  • ๐Ÿ› Bug reports
  • ๐Ÿ’ก Feature suggestions
  • ๐Ÿ”ง Code contributions
  • ๐Ÿ“– Documentation improvements

๐Ÿ“„ License

MIT License - Free to use, commercial-friendly


โญ If this project helps you, please give it a star!

Let's redefine the future of diagram presentation together ๐Ÿš€

About

๐Ÿš€ AI-Powered, Highly Customizable Mermaid Chart Display Platform | Breaking Node Limits + Sequence Playback + Endpoint Alignment Animation + One-Click Sharing | Next.js + Cytoscape.js + ELK.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •