How martin226/gitdiagram works
File Structure
• Top-level:
• frontend: src/, public/, components/, Next.js config, Tailwind config
• backend: backend/app/routers/, /services/, /prompts.py, FastAPI entrypoint, Docker + nginx
• database: src/server/db/ (Drizzle ORM, PostgreSQL schema)
• infra & CI/CD: docker-compose.yml, .github/workflows/, deploy.sh, start-database.sh
• Patterns:
• Clear separation between UI (React/Next.js + ShadCN components) and API (FastAPI)
• AI orchestration via prompt modules (prompts.py) and service adapters (claude_service.py, o3_mini_openrouter_service.py)
• Rate limiting and request routing in backend/app/core/limiter.py and routers/generate.py
README for Additional Insights
• Architecture described: Frontend (Vercel), Backend (EC2 + Docker), Database (Postgres), AI (Claude 3.5 Sonnet), CI/CD (GitHub Actions)
• Features: interactivity, fast generation, customization, private-repo auth