Two powerful lenses. One unified platform.
See CONTRIBUTING.md for setup guide and contribution guidelines.
Features · Getting Started · Architecture · API Reference · Roadmap
You just joined a team, inherited a monorepo, or found an open-source project you want to contribute to. Step one is always the same: figure out what depends on what, which files are load-bearing, and whether the person who wrote it actually knows what they're doing. That usually takes days of reading code. Traceon does it in seconds.
It is a unified analysis platform that maps any codebase into an interactive dependency graph and decodes any GitHub developer's engineering capability through LLM-powered analysis — built for open-source contributors navigating unfamiliar repositories, developers onboarding onto new teams, engineering leads evaluating architecture health, and hiring managers who need signal beyond résumés and star counts.
Paste any GitHub URL (or upload a ZIP). Traceon clones the repository, spawns worker threads to parse every source file into an Abstract Syntax Tree via the TypeScript Compiler API, constructs a full dependency graph, and renders it as an interactive force-directed visualization in your browser. Select any node to see its impact score (0–100), blast radius, and circular dependency chains. Compare architectural snapshots across commit history with visual red/green diffs. Export the graph as PNG, SVG, PDF, or a standalone HTML viewer you can drop into a wiki.
Enter any GitHub username. Traceon fetches their public repositories, language byte distributions, recent commits, and README samples — then feeds the raw telemetry into Groq's Llama 3.3 70B model with a rigorous staff-engineer rubric. The result is a multi-dimensional "Engineering DNA" dashboard: six scored axes (Reliability, Security, Maintainability, Uniqueness, Influence, Contribution), an archetype classification, a domain radar chart, a code quality report with strengths and weaknesses, and a Squad Matcher that lets you paste your team's required tech stack to get an instant compatibility percentage.
- AST-powered analysis — Uses the TypeScript Compiler API for proper AST parsing, not regex or string matching.
- Interactive dependency graph — Force-directed graph with zoom, pan, search, and filter via React Flow. Nodes are color-coded by type.
- Impact analysis engine — Select any file to see its impact score (0–100), risk level, direct/transitive dependents, and visual blast radius.
- Circular dependency detection — Automatically flags
A → B → C → Aloops that cause build issues. - Time Travel & Architectural Diffs — View the graph at different commit hashes with visual red/green edge diffs.
- Monorepo / Workspace Support — Visualizes cross-package dependencies for Turborepo, Nx, and Lerna projects.
- Traceon AI (Codebase Chat) — Chat with your codebase architecture, ask about component relationships, and auto-generate architecture summaries.
- High-Resolution & HTML Exports — Export your graph as PNG, SVG, PDF, or a standalone interactive HTML viewer.
- Multiple ingestion methods — Paste a GitHub URL or upload a ZIP archive.
- Dashboard & metrics — Track analyzed repositories, file counts, dependency density, critical modules, and architectural heatmaps.
- Engineering DNA analysis — Enter any GitHub username to decode true engineering capability from public commits — not self-reported skills.
- LLM-powered assessment — Raw GitHub telemetry is fed into Groq's Llama 3.3 70B model, which evaluates code against a rigorous staff-engineer rubric.
- 6-axis scoring radar — Scores across Reliability, Security, Maintainability, Uniqueness, Influence, and Contribution (each 0–100), each with a one-sentence explanation.
- Archetype classification — Assigns a developer archetype (e.g., "Fullstack Architect", "Frontend Visionary", "Systems Engineer").
- Domain DNA Map — Visualizes capabilities across Frontend, Backend, DevOps, Data Science, and Security as an interactive radar chart.
- Tech Stack Volumes — Analyzes exact byte counts across languages for true proficiency signal instead of language listing.
- Code Quality Report — Detailed strengths/weaknesses and an Engineering DNA breakdown: Problem Solving, Architecture Maturity, and Documentation quality.
- Squad Matcher — Paste your team's required tech stack to get a % compatibility score showing verified capabilities and missing skills.
- Commit Hygiene evaluation — Inspects recent commit message quality and README clarity.
- 24-hour result caching — Analysis results are cached in MongoDB, so repeat lookups on the same username are instant.
- Trending profiles marquee — Quick-launch analysis on prominent open-source developers.
- Authentication — Email/password, GitHub OAuth, Google OAuth, JWT sessions, and guest mode.
- User profile settings — Manage account details in the dedicated
/profilesettings page.
- Node.js ≥ 18
- npm ≥ 9
- MongoDB Atlas cluster (free tier works)
- Groq API Key — free at console.groq.com (required for Profile DNA)
- Git installed locally
git clone https://github.com/Rishabhworkspace/Traceon.git
cd Traceon
npm install
cp .env.example .env.localEdit .env.local with your credentials:
# Database
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster>.mongodb.net/traceon
# NextAuth
NEXTAUTH_SECRET=your_random_secret_minimum_32_chars
NEXTAUTH_URL=http://localhost:3000
# GitHub OAuth
GITHUB_ID=your_github_oauth_app_id
GITHUB_SECRET=your_github_oauth_app_secret
# Google OAuth
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
# Groq (for Profile DNA analysis)
GROQ_API_KEY=your_groq_api_key
# GitHub Token (optional — raises API rate limits for Profile DNA and Repo cloning)
GITHUB_TOKEN=your_github_personal_access_tokenTip
Generate a secure NextAuth secret with openssl rand -base64 32
Note
GITHUB_TOKEN is optional but strongly recommended for production. Without it, GitHub's public API rate limit (60 req/hr) can block profile lookups for busy deployments.
npm run devOpen http://localhost:3000 — you're live.
┌─────────────────────────────────────────────────────────────────┐
│ Client (React) │
│ Landing Page → Analyzer UI → Graph Viewer → Profile DNA │
├─────────────────────────────────────────────────────────────────┤
│ Next.js App Router │
│ Server Components │ API Routes │ Server Actions │
├──────────────────────────────┬──────────────────────────────────┤
│ Repository Pipeline │ Profile DNA Pipeline │
│ Clone → Scan → Parse (WT) │ GitHub Fetch → LLM Analysis │
│ → Build Graph │ → Cache → DNA Dashboard │
├──────────────────────────────┴──────────────────────────────────┤
│ Data Layer │
│ MongoDB Atlas │ Mongoose ODM │ Connection Pooling │
└─────────────────────────────────────────────────────────────────┘
- Clone —
simple-gitclones the repo to a temp directory. - Scan — Walks the file tree, filters source files, ignores
node_modules. - Parse — Spawns worker threads for parallel AST parsing via the TypeScript Compiler API. Extracts imports, exports, functions, classes, and LOC.
- Build graph — Resolves import paths into nodes + edges. Calculates dependency density, in/out degree, and critical modules. Detects circular dependencies via DFS.
- Visualize — Renders with React Flow using Dagre layout, custom color-coded nodes, animated edges, and interactive inspection panels.
- GitHub Fetch — Hits the GitHub REST API to collect repositories, language byte counts, recent commits, and README snippets.
- LLM Execution — Sends a structured payload to Groq's
llama-3.3-70b-versatilemodel with a detailed staff-engineer rubric prompt. - Schema validation — Parses and validates the JSON response against a strict Zod schema before persisting.
- Cache & serve — Saves the result to MongoDB. Subsequent requests within 24 hours are served from cache instantly.
The impact engine uses reverse BFS traversal to quantify how much damage a change to any file could cause:
| Risk Level | Score | Meaning |
|---|---|---|
| Critical | 60–100 | Changing this file breaks many things |
| Moderate | 30–59 | Proceed with caution |
| Low | 0–29 | Safe to modify |
| Layer | Technology | Why |
|---|---|---|
| Framework | Next.js 16 (App Router) | Server Components, API routes, streaming |
| Language | TypeScript 5 | Type safety across the full stack |
| Styling | Tailwind CSS v4 | CSS-first config, custom design tokens |
| Graph | React Flow (@xyflow/react) | Best-in-class graph rendering |
| Layout | Dagre | Hierarchical graph layout algorithm |
| Database | MongoDB Atlas + Mongoose | Flexible document model for graph & profile data |
| Auth | NextAuth.js | GitHub, Google, Credentials providers |
| Parsing | TypeScript Compiler API | Production-grade AST parsing |
| Cloning | simple-git | Lightweight Git operations |
| LLM | Groq Llama 3.3 70B (via Vercel AI SDK) | Fast, structured Profile DNA generation |
| Animation | Framer Motion | Physics-based UI animations |
| Icons | Lucide React | Clean, consistent icon set |
src/
├── app/ # Next.js App Router pages & API routes
│ ├── page.tsx # Landing page
│ ├── analyze/ # Repository analysis progress UI
│ ├── dashboard/ # User dashboard (protected)
│ ├── graph/[repoId]/ # Interactive graph viewer
│ ├── profile/ # Profile settings (/profile) & DNA viewer (/profile/[username])
│ ├── profile-analytics/ # Profile analytics page
│ └── api/ # REST endpoints
│ ├── analyze/ # Repository analysis routes
│ ├── profile/[username]/ # Profile DNA API
│ └── ...
│
├── components/
│ ├── graph/ # Graph visualization (CustomNode, ImpactPanel, etc.)
│ ├── home/ # Landing page sections (incl. InteractiveShowcase)
│ ├── profile/ # All Profile DNA components
│ │ ├── ProfileLandingHero # Username search entry point
│ │ ├── ProfileDashboardView # Tabbed dashboard (Overview, Squad, Skills, …)
│ │ ├── DomainExpertise # 6-axis radar / score cards
│ │ ├── SkillsGrid # AI-extracted skills by domain
│ │ ├── TechStack # Language breakdown with byte volumes
│ │ ├── EngineeringDNA # Problem solving / architecture / docs narrative
│ │ ├── CodeQualityReport # Strengths & weaknesses traits
│ │ ├── SquadMatcher # Stack compatibility checker
│ │ └── RepositoriesList # Top repositories browser
│ ├── dashboard/ # Dashboard widgets
│ └── layout/ # Navbar, Footer, ErrorBoundary
│
├── lib/
│ ├── analyzer/ # Clone, scan, parse, pipeline orchestration
│ │ └── graph/ # Graph builder + impact scoring
│ ├── profile/ # Profile DNA logic
│ │ ├── githubFetcher.ts # GitHub API data aggregation
│ │ ├── analyzer.ts # Groq LLM prompt + Zod validation
│ │ └── service.ts # Cache-aware orchestration service
│ ├── auth.ts # NextAuth configuration
│ └── db/ # MongoDB connection + Mongoose models
│
└── workers/
└── parse-worker.js # Worker thread for CPU-intensive AST parsing
| Method | Endpoint | Auth | Description |
|---|---|---|---|
POST |
/api/analyze |
Optional | Start repository analysis |
POST |
/api/analyze/upload |
Optional | Upload ZIP for analysis |
GET |
/api/graph/:repoId |
Session | Fetch graph data |
GET |
/api/impact/:repoId |
Session | Fetch impact analysis |
GET |
/api/dashboard |
Required | User dashboard data |
GET |
/api/repository/:id |
Session | Repository status |
| Method | Endpoint | Auth | Description |
|---|---|---|---|
GET |
/api/profile/:username |
Public | Run or retrieve cached DNA analysis |
| Method | Endpoint | Auth | Description |
|---|---|---|---|
POST |
/api/auth/signup |
Public | User registration |
GET |
/api/user/profile |
Required | Get user profile |
PUT |
/api/user/profile |
Required | Update user profile |
- Push to GitHub.
- Import the project in the Vercel Dashboard.
- Add all environment variables from
.env.example(plusGROQ_API_KEYand optionallyGITHUB_TOKEN) in project settings. - Deploy — Vercel auto-detects Next.js.
Important
Whitelist 0.0.0.0/0 in MongoDB Atlas Network Access for Vercel's dynamic egress IPs.
Note
Worker threads used by the repository parser are fully compatible with Vercel's Node.js runtime. No extra configuration is required.
- Repository cloning & file scanning
- TypeScript AST parsing with Worker Threads
- Dependency graph construction & rendering
- Impact analysis engine
- User dashboard with metrics
- GitHub & Google OAuth
- ZIP upload support
- Circular dependency detection
- Traceon AI (Codebase chat & refactoring suggestions)
- Time-travel architectural commit history & diffs
- Monorepo & workspace graph visualization
- Export graph as PNG/SVG/PDF and Interactive HTML
- Profile DNA Checker — LLM-powered engineering analysis from public GitHub data
- Squad Matcher — Stack compatibility scoring for hiring & team-building
- VS Code extension
- Multi-language support (Python, Go, Rust)
- Team collaboration features
Built by Rishabh
Traceon — Because understanding code, and the people who write it, shouldn't require reading all of it.
