Skip to content

LeulAria/Mermaid-AI-Playground

Repository files navigation

Mermaid AI Playground

Mermaid AI Playground

Transform your ideas into stunning diagrams with AI-powered Mermaid diagram generation.

TypeScript React TanStack Start


✨ Features

  • 🤖 AI-Powered Generation - Create diagrams from natural language descriptions
  • 📊 Multiple Diagram Types - Flowcharts, sequence diagrams, class diagrams, and more
  • Real-time Preview - See your diagrams update as you type
  • 🎨 Modern UI - Beautiful, intuitive interface built with shadcn/ui
  • 🔒 Authentication - Secure user authentication with Better-Auth
  • 💾 Type-Safe APIs - End-to-end type safety with oRPC
  • 🚀 SSR Ready - Built on TanStack Start for optimal performance

🛠️ Tech Stack

  • Frontend: React, TanStack Start, TailwindCSS, shadcn/ui
  • Backend: TanStack Start, oRPC
  • Database: SQLite/Turso with Prisma ORM
  • Auth: Better-Auth
  • Language: TypeScript
  • Build: Turborepo, Bun

🚀 Quick Start

Prerequisites

  • Bun (v1.2.21 or later)

Installation

  1. Clone the repository
git clone https://github.com/LeulAria/Mermaid-AI-Playground.git
cd Mermaid-AI-Playground
  1. Install dependencies
bun install
  1. Set up the database
cd apps/web && bun db:local
cd ../..
bun db:push
  1. Configure environment variables

Create a .env file in apps/web with your configuration:

# Add your environment variables here
  1. Start the development server
bun dev

Open http://localhost:3001 to view the application.

📁 Project Structure

mermaid/
├── apps/
│   └── web/              # Fullstack application
│       ├── src/          # Application source code
│       ├── public/       # Static assets
│       └── prisma/       # Database schema
├── packages/
│   ├── api/              # API layer and business logic
│   ├── auth/             # Authentication configuration
│   └── db/               # Database schema and queries

📜 Available Scripts

Command Description
bun dev Start development server
bun build Build for production
bun check-types Type-check all packages
bun db:push Push schema changes to database
bun db:studio Open Prisma Studio

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is open source and available under the MIT License.

🙏 Acknowledgments

Built with Better-T-Stack - a modern TypeScript stack.


About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors