Skip to content

itslokeshx/DevIntel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

103 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

React 18 Node.js Llama AI MongoDB

๐Ÿงฌ DevIntel

Decode Your Developer DNA

๐ŸŒ Live Demo | ๐Ÿ“– Get Started | โš”๏ธ Features

An AI-powered intelligence platform that transforms your GitHub activity into meaningful insights, personalized recommendations, and competitive analysis.


๐ŸŽฏ Why DevIntel?

DevIntel goes beyond simple GitHub stats. We analyze your coding patterns, project architecture, tech stack evolution, and contribution consistency to reveal your true developer identity.

๐Ÿ”ฌ Deep Analysis

  • Real-time GitHub data โ€” No caching, pure GraphQL
  • Contribution patterns โ€” Heatmaps, streaks, yearly trends
  • Tech Stack DNA โ€” Language distribution & evolution
  • Repository health โ€” Documentation quality, project maturity
  • Developer signature โ€” Unique coding archetype

๐Ÿง  AI-Powered Insights

  • Llama 3.3 70B integration โ€” State-of-the-art AI
  • Personalized verdicts โ€” What makes you special?
  • Growth recommendations โ€” Actionable career advice
  • Streaming responses โ€” Real-time AI generation
  • Context-aware analysis โ€” Understands your journey

โš”๏ธ Battle Arena

  • Head-to-head comparisons โ€” Developer vs Developer
  • 8 key metrics โ€” Commits, stars, consistency, impact
  • AI referee โ€” Unbiased winner declaration
  • Tech overlap Venn โ€” Shared & unique skills
  • Visual scorecards โ€” Beautiful comparison UI

โœจ Core Features

๐Ÿš€ GitHub Intelligence Dashboard

Transform any GitHub profile into a comprehensive intelligence report:

  • ๐ŸŽจ Contribution Heatmap โ€” 52-week activity visualization with intensity timeline
  • ๐Ÿ“Š Yearly Breakdown โ€” Interactive charts showing evolution across years (2025-2026)
  • ๐Ÿ’ผ Developer Wrapped โ€” Spotify-style annual summary with peak months & milestones
  • ๐Ÿงช Tech Stack DNA โ€” Language usage with trend forecasting
  • ๐Ÿ† Repository Showcase โ€” Ranked by stars, activity, and impact
  • ๐Ÿ“ˆ Developer Analysis โ€” 4-quadrant skill assessment (Activity, Focus, Documentation, Impact)
  • ๐ŸŽญ Developer Signature โ€” Your unique archetype (e.g., "Code Craftsman", "Rapid Prototyper")
  • ๐Ÿ’Ž What Makes You Special? โ€” AI-generated insights revealing your strengths

โš”๏ธ Developer Battle Arena

Compare two developers side-by-side with AI-powered analysis:

  • ๐ŸŽฏ Battle Score System โ€” Comprehensive scoring across multiple dimensions
  • ๐Ÿ“Š Metric Comparison โ€” Visual bars for 8 key indicators
  • ๐Ÿง  AI Verdict โ€” Llama AI declares the winner with reasoning
  • ๐Ÿ”ต๐ŸŸฃ Tech Stack Overlap โ€” Venn diagram visualization
  • ๐Ÿ‘ค Profile Cards โ€” Quick stats, followers, top languages
  • ๐Ÿ… Winner Declaration โ€” Animated reveal with confetti

๐Ÿ“ฑ Mobile-First Design

  • ๐Ÿ” Hamburger menu with smooth animations
  • ๐Ÿ“ Responsive layouts from 320px to 4K
  • ๐Ÿ‘† Touch-optimized interactions
  • ๐ŸŒŠ Horizontal scroll heatmaps on small screens
  • ๐ŸŽจ Premium aesthetics โ€” Calm, clean, dark-first

๐Ÿ› ๏ธ Technology Stack

Layer Technologies
Frontend React 18 โ€ข Vite โ€ข Tailwind CSS โ€ข Framer Motion
Backend Node.js โ€ข Express โ€ข MongoDB โ€ข Mongoose
AI/ML Groq (Llama 3.3 70B) โ€ข Streaming Responses
Data Sources GitHub GraphQL API โ€ข GitHub REST API
Visualization Recharts โ€ข Custom SVG animations โ€ข Canvas Confetti
State Management Zustand โ€ข React Context
Styling Custom Design Tokens โ€ข Dark Mode โ€ข Gradients
Deployment Vercel (Frontend) โ€ข Render (Backend)

๐Ÿ“ Project Architecture

DevIntel/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ constants.js      # App-wide constants & scoring weights
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ database.js       # MongoDB connection
โ”‚   โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ githubController.js     # Profile analysis endpoint
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ comparisonController.js # Battle arena logic
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ leetcodeController.js   # LeetCode integration
โ”‚   โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ errorHandler.js   # Global error handling
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ rateLimit.js      # API rate limiting
โ”‚   โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ User.js           # User schema
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ GitHubData.js     # Cached GitHub profiles
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ComparisonCache.js # Cached battle results
โ”‚   โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ github.js         # /api/github routes
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ comparison.js     # /api/comparison routes
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ leetcode.js       # /api/leetcode routes
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ai/
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ groq.js       # Groq AI client
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ insights.js   # AI insight generation
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ prompts.js    # AI prompt templates
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ github/
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ fetcher.js    # GitHub API calls
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ analyzer.js   # Metrics calculation
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ contributionCalendar.js # Heatmap data
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ cache/
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ kv.js         # Caching layer
โ”‚   โ”‚   โ””โ”€โ”€ utils/
โ”‚   โ”‚       โ”œโ”€โ”€ metrics.js        # Score calculations
โ”‚   โ”‚       โ””โ”€โ”€ dataValidator.js  # Input validation
โ”‚   โ”œโ”€โ”€ server.js                 # Express app entry point
โ”‚   โ”œโ”€โ”€ .env                      # Environment variables
โ”‚   โ””โ”€โ”€ package.json
โ”‚
โ””โ”€โ”€ frontend/
    โ”œโ”€โ”€ src/
    โ”‚   โ”œโ”€โ”€ components/
    โ”‚   โ”‚   โ”œโ”€โ”€ common/
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Button.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Card.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Input.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Loading.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ThemeToggle.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
    โ”‚   โ”‚   โ”œโ”€โ”€ comparison/
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BattleArenaSetup.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ StreamingAIVerdict.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ WinnerAnnouncement.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ MetricsComparison.jsx
    โ”‚   โ”‚   โ”œโ”€โ”€ github/
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ContributionHeatmap.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ YearlyBreakdown.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ DeveloperWrapped.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ TechStackDNA.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ DeveloperAnalysis.jsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ DeveloperSignature.jsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ RepositoryShowcase.jsx
    โ”‚   โ”‚   โ””โ”€โ”€ layout/
    โ”‚   โ”‚       โ””โ”€โ”€ Header.jsx        # Navbar with mobile menu
    โ”‚   โ”œโ”€โ”€ pages/
    โ”‚   โ”‚   โ”œโ”€โ”€ Home.jsx              # Landing page
    โ”‚   โ”‚   โ”œโ”€โ”€ GitHubIntelligence.jsx # Profile analysis
    โ”‚   โ”‚   โ”œโ”€โ”€ GitHubComparison.jsx   # Battle arena
    โ”‚   โ”‚   โ””โ”€โ”€ LeetCodeSkills.jsx     # LeetCode analysis
    โ”‚   โ”œโ”€โ”€ services/
    โ”‚   โ”‚   โ””โ”€โ”€ api.js                # Axios API client
    โ”‚   โ”œโ”€โ”€ context/
    โ”‚   โ”‚   โ””โ”€โ”€ ThemeContext.jsx      # Dark mode state
    โ”‚   โ”œโ”€โ”€ store/
    โ”‚   โ”‚   โ””โ”€โ”€ index.js              # Zustand store
    โ”‚   โ”œโ”€โ”€ styles/
    โ”‚   โ”‚   โ””โ”€โ”€ globals.css           # Tailwind + custom styles
    โ”‚   โ”œโ”€โ”€ App.jsx                   # Router setup
    โ”‚   โ””โ”€โ”€ main.jsx                  # React DOM entry
    โ”œโ”€โ”€ public/
    โ”œโ”€โ”€ vercel.json                   # Vercel deployment config
    โ”œโ”€โ”€ tailwind.config.js
    โ”œโ”€โ”€ vite.config.js
    โ””โ”€โ”€ package.json

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 16+ and npm/yarn
  • MongoDB Atlas account (or local instance)
  • GitHub Personal Access Token (Create here)
  • Groq API Key (Get free key)

Installation

1๏ธโƒฃ Clone the repository

git clone https://github.com/itslokeshx/DevIntel.git
cd DevIntel

2๏ธโƒฃ Backend Setup

cd backend
npm install

# Create .env file
touch .env

Add these variables to backend/.env:

# Server
PORT=5000
NODE_ENV=development

# MongoDB
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/devintel

# GitHub API
GITHUB_TOKEN=ghp_your_github_personal_access_token

# AI (Groq)
GROQ_API_KEY=gsk_your_groq_api_key

# CORS (optional, defaults to http://localhost:3000)
FRONTEND_URL=http://localhost:3000

Start the backend:

npm start
# Server runs on http://localhost:5000

3๏ธโƒฃ Frontend Setup

cd ../frontend
npm install
npm run dev
# Frontend runs on http://localhost:3000

4๏ธโƒฃ Access the App

Open http://localhost:3000 in your browser.


๐ŸŽฎ Usage Guide

Analyzing a GitHub Profile

  1. Enter username in the search bar on the home page
  2. View comprehensive analysis:
    • Contribution heatmap with 52-week history
    • AI-generated insights about your coding style
    • Tech stack breakdown with language percentages
    • Repository showcase ranked by impact
    • Yearly trends and milestones
    • Developer archetype (e.g., "Open Source Champion")

Starting a Developer Battle

  1. Navigate to Compare page (desktop) or open mobile menu
  2. Enter two GitHub usernames
  3. Click "Start Battle"
  4. Watch the analysis unfold:
    • Overall battle scores with circular progress rings
    • Head-to-head metrics comparison (8 indicators)
    • AI verdict declaring the winner
    • Tech stack overlap Venn diagram
    • Winner announcement with confetti ๐ŸŽ‰

Key Metrics Explained

Metric Description Weight
Developer Score Overall coding activity & consistency 30%
Stars Earned Community recognition & project popularity 25%
Total Commits Volume of contributions 20%
Current Streak Recent consistency 10%
Impact Score Code quality & project health 10%
Documentation Quality README & docs completeness 5%

๐ŸŽจ Design Philosophy

DevIntel follows a calm, clean, premium aesthetic:

  • Dark-first design โ€” Reduces eye strain for developers
  • Subtle gradients โ€” Blue โ†’ Purple โ†’ Pink accents
  • Smooth animations โ€” Framer Motion for delightful interactions
  • Custom design tokens โ€” Consistent spacing, colors, shadows
  • Mobile-responsive โ€” From 320px to 4K displays
  • Accessible โ€” WCAG 2.1 AA compliant color contrasts

๐Ÿ”ง API Endpoints

GitHub Intelligence

POST /api/github/analyze
Content-Type: application/json

{
  "username": "torvalds"
}

Response:

{
  "profile": { "name": "Linus Torvalds", "bio": "...", ... },
  "contributions": { "totalCommits": 5000, "currentStreak": 12, ... },
  "repositories": [...],
  "metrics": { "devScore": 95, "languageStats": [...], ... },
  "aiInsights": { "verdict": "...", "strengths": [...], ... }
}

Developer Comparison

POST /api/comparison/compare
Content-Type: application/json

{
  "usernameA": "gvanrossum",
  "usernameB": "tj"
}

Response:

{
  "userA": { "username": "gvanrossum", ... },
  "userB": { "username": "tj", ... },
  "comparison": {
    "totalCommits": { "userA": 8000, "userB": 12000 },
    "totalStars": { "userA": 15000, "userB": 25000 },
    "winner": "B",
    "aiInsights": { "verdict": "...", "winner": "B", "winReason": "..." }
  }
}

๐ŸŒŸ Key Features Showcase

1. Contribution Heatmap

  • 52 weeks of GitHub activity
  • 5 intensity levels with gradient colors
  • Horizontal scroll on mobile
  • Hover tooltips with commit counts
  • Activity timeline chart showing peak weeks

2. AI Insights with Streaming

  • Real-time generation with typewriter effect
  • Personalized analysis based on coding patterns
  • Actionable recommendations for skill growth
  • Context-aware โ€” understands your tech stack

3. Developer Wrapped

  • Spotify-style carousel with 4 slides
  • Peak month detection with ๐Ÿ”ฅ emoji
  • Top languages visualization
  • Share functionality (Twitter, LinkedIn, copy link)
  • Auto-advance with pause on hover

4. Battle Score System

Comprehensive scoring algorithm:

Total Score = (Commits ร— 0.3) + (Stars ร— 0.25) + (Repos ร— 0.2) +
              (Streak ร— 0.1) + (Impact ร— 0.1) + (Docs ร— 0.05)

๐Ÿค Contributing

We welcome contributions! Here's how:

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/amazing-feature
  3. Commit your changes
    git commit -m "Add amazing feature"
  4. Push to the branch
    git push origin feature/amazing-feature
  5. Open a Pull Request

Development Guidelines

  • Follow existing code style (Prettier/ESLint)
  • Write meaningful commit messages
  • Add comments for complex logic
  • Test on multiple screen sizes
  • Ensure dark mode compatibility

๐Ÿ› Known Issues & Roadmap

Current Limitations

  • GitHub rate limits (5000 requests/hour with token)
  • AI response can take 2-5 seconds for complex profiles
  • Some older GitHub accounts may have incomplete data

Upcoming Features

  • ๐Ÿ” User authentication & profile saving
  • ๐Ÿ“Š LeetCode full integration
  • ๐Ÿ† Global developer leaderboard
  • ๐Ÿ“ˆ Historical tracking (profile over time)
  • ๐ŸŽฏ Skill recommendations based on job market
  • ๐ŸŒ Multi-language support

๐Ÿ“„ License

This project is licensed under the MIT License โ€” see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • GitHub GraphQL API for comprehensive developer data
  • Groq for lightning-fast AI inference
  • Llama 3.3 70B by Meta for intelligent analysis
  • Vercel for seamless frontend deployment
  • MongoDB Atlas for reliable data storage

๐Ÿ“ฌ Contact & Support

Built with โค๏ธ by Lokesh

โญ Star this repo if you found it helpful!

About

๐Ÿš€ DevIntel is an AI-powered platform that decodes your GitHub activity to reveal your true developer identity and career potential

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors