Skip to content
manikkoriPublic

About

Project explainer

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

CodeAtlas

Turn any JavaScript or MERN repository (folder, ZIP archive, or public GitHub URL) into an interactive architecture map, animated request/response walkthroughs, codebase insights, guided tours, and code-grounded interview prep.


Live Demo

First-time visitors can explore the seeded TaskFlow MERN Demo (server/fixtures/sample-mern) immediately without signing in or uploading a repo:

  • Local preview: http://localhost:5173/s/sample-mern-demo (or click Try live demo on /)
  • Deployed Vercel frontend: <your-vercel-url>/s/sample-mern-demo

Architecture Diagram

flowchart LR
    U["Browser (Vercel React + Vite + React Flow + Monaco)"] -->|HTTPS + Clerk JWT| API["Express API (Render Node 20+)"]
    U -->|Unauthenticated /api/share/:shareId| API
    API -->|Projects, Files, Graphs, Cached Storyboards| DB["MongoDB Atlas (Mongoose)"]
    API -->|Verify Session Tokens| CLERK["Clerk Auth"]
    API -->|Tool-Calling Loop + Validation| GROQ["Groq API (openai/gpt-oss-120b)"]
Loading
  • client/: Plain JavaScript React 19, Vite 7, Tailwind CSS v4, @xyflow/react, @dagrejs/dagre, @monaco-editor/react, framer-motion, lucide-react, html-to-image, jszip, @clerk/react.
  • server/: Plain JavaScript Node 20+ ESM, Express 5, Mongoose, @babel/parser + @babel/traverse (static AST parsing only — uploaded code is never executed), @clerk/express, groq-sdk, zod, helmet, nanoid, vitest.

Views & Capabilities

View Purpose
Landing (/) Animated POST /api/auth/login hero trace, feature overview, and instant live demo launcher
Overview Codebase statistics (files, components, routes, models, flows, warnings) and deterministic flow list
Architecture Left-to-right lane diagram (Pages/Components -> API Calls -> Routes -> Middleware -> Controllers -> Models -> Collections), search, type filters, and Monaco range highlighting (list view on mobile, map on tablet/desktop)
Flows Step-by-step packet animation (violet = request, cyan = response) with play/pause, speed, loop, and keyboard controls
Ask AI Groq tool-calling Q&A producing verified storyboards playable in FlowPlayer with automatic repair loop and deterministic fallback
Interview "Explain this project in 60 seconds" pitch script + 10 code-grounded practice questions across auth, security, data modeling, error handling, and scalability with Show in code jump
Blast radius Reverse-dependency BFS impact map with expanding ripple rings and layer-grouped breakdown
Data model Mongoose Schema ER diagram with field constraints and animated ref relation edges
API map Endpoint security audit table + graph highlighting unprotected mutation routes (POST/PUT/PATCH/DELETE)
Health File dependency graph sized by LOC, colored by cyclomatic complexity, flagging circular imports and unused files
Guided tour & Share Fullscreen 6–8 step project trailer, public /s/:shareId read-only link (showCodeInShare toggle), minimal /embed/:shareId iframe page, PNG/SVG map export, and GitHub-ready ARCHITECTURE.md export

Environment Variables

Server (server/.env)

Variable Required Description Default / Example
PORT No HTTP server port 5000
NODE_ENV No development, production, or test development
MONGODB_URI Yes MongoDB Atlas connection string mongodb+srv://...
CLIENT_URL Yes Comma-separated allowed CORS frontend origins http://localhost:5173
CLERK_PUBLISHABLE_KEY Yes Clerk publishable key pk_test_...
CLERK_SECRET_KEY Yes Clerk secret key sk_test_...
GROQ_API_KEY Optional Groq API key for AI Q&A, Guided Tour, Interview, and AI summary export (falls back cleanly when omitted) gsk_...
GROQ_MODEL No Groq model ID openai/gpt-oss-120b

Client (client/.env)

Variable Required Description Example
VITE_API_URL Yes Base URL of the Express API server http://localhost:5000
VITE_CLERK_PUBLISHABLE_KEY Yes Clerk publishable key for React SDK pk_test_...

Prerequisites & Local Setup

  • Node.js 20+ (verified on Node 24)
  • MongoDB Atlas database and Clerk application keys
  1. Copy environment templates:
    cp server/.env.example server/.env
    cp client/.env.example client/.env
  2. Install all dependencies and start both dev servers:
    npm run install:all
    npm run dev:server
    npm run dev:client
  3. Run tests and build:
    npm run test:server
    npm run build:client

Deployment

  • Frontend (client/) on Vercel: Set Root Directory to client. client/vercel.json handles SPA rewrites and restricts framing (X-Frame-Options: DENY / frame-ancestors 'none') everywhere except /embed/* (frame-ancestors *).
  • Backend (server/) on Render: Set Root Directory to server (Build: npm install, Start: node src/server.js, Health Check: /api/health). See server/README.md for details.

About

Project explainer

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages