AI-Powered Repository Intelligence, Architecture Auditor & Onboarding Copilot
Ingests GitHub repositories, calculates deterministic telemetry and AST complexity heatmaps, and synthesizes architectural knowledge dossiers using Google Gemini 3.8 Flash.
- π GSAP-Powered Modern Landing Page: Immersive product showcase at
/built with official GSAP primitives (useGSAP,ScrollTrigger,matchMediareduced-motion safety). Features an interactive macOS sandbox window with live demo repository switching across 4 polyglot repos, The Zero-Clone Engine architecture console, a uniform 3Γ2 bento capabilities grid, official Simple Icons vector brand logos, and a single-unit dimension comparison table. - π― Centered Viewport Hero (Section 1): Full-height
100dvhcentered viewport layout (display: flex; justify-content: center; align-items: center) providing optical balance beneath the fixed floating navbar, accompanied by live emerald pulse status, responsive headline typography, and a secondary smooth-scroll CTA (See How It Works). - πΈ Floating Island Navigation & Silky Smooth Scrolling: Centered, fixed floating pill navbar with glassmorphic backdrop blur (
backdrop-filter: blur(20px) saturate(190%)), dynamic scroll elevation border glow, and unboxed navigation links. Primary navigation links (Live Demo, Architecture, Capabilities, Ecosystems, Why CodeLens) match the natural sequential flow of the page, accompanied by an unadorned Sign In action pill. Implements hardware-accelerated smooth section scrolling viascroll-behavior: smoothinglobals.cssand JavaScriptscrollIntoView({ behavior: "smooth" }), locking seamlessly onto each full-screen section without title clipping. - β‘ The Zero-Clone Engine Architecture (
IngestionPipelineSection.tsx): Anti-slop, developer-grade architecture presentation strictly adhering to@design-taste-frontend. Eliminates decorative index numbering (01/02/03), fake status dots, card drop shadows, top color accent bars, and flow arrows. Features bare vector SVG icons alongside real runtime engine specs (System.IO.ZipArchive,Roslyn AST + Multi-Manifest,Complexity Γ ln(Churn + 1),Gemini 3.8 Flash + SK), tangible engine artifact chips (<code>System.IO.ZipArchive</code>,<code>AST Symbol Manifest</code>, etc.), and deterministic performance metric pills (0 MB Disk Footprint,Sub-Second Traversal, etc.) inside a flat console markeddata-ui="true". - π Symmetrical 3Γ2 Capability Bento Grid: Standardized single-column geometry across all 6 core capability cardsβincluding Deterministic Cyclomatic Hotspotsβeliminating awkward spans and maintaining visual harmony across dark and light themes.
- π Unified Comparison Table Reveal (
ComparisonSection.tsx): Dimension-by-dimension comparison table comparing legacy manual audits against CodeLens AI, designed to reveal smoothly as a single cohesive unit on scroll, eliminating disruptive line-by-line staggered entry. - π Full-Screen Viewport Stages (
min-height: 100dvh): Every landing page section commands its own dedicated, vertically centered full-screen stage (min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;) withpadding: 6rem 1.5rem 3.5remproviding clear breathing room beneath the fixed floating navbar. - π¨ Official CodeLens Brand Favicon & Visual Identity: High-resolution SVG favicon (
/favicon.svg) featuring an architectural amber-to-bronze gradient squircle (#f59e0bβ#b45309) with internal border highlight, drop-shadow depth, and code lens crosshair glyph, crisp on both dark and light browser tabs and mobile bookmarks. - π Streamlined Icon-Only Theme Toggle & Floating Tooltip: Seamless toggling between Dark (Moon) and Light (Sun) modes with
systemOS color scheme defaulting (prefers-color-scheme). Features a circular 36px icon-only button and an accessible floating glassmorphic tooltip with triangular pointer arrow indicating "Switch to light mode" / "Switch to dark mode". - π« Resilient 404 Not Found Handling & Azure SWA Rewrites: Dedicated, theme-aware 404 page at unknown paths featuring glassmorphic error card, contextual redirect to dashboard or home, browser back action, and quick navigation links, reinforced by Azure Static Web Apps
staticwebapp.config.jsonnavigation fallback. - π¨ State-of-the-Art Typography & Aesthetics: Curated Google Fonts typography stack featuring Plus Jakarta Sans for prominent headings, Inter for readable body content, and JetBrains Mono for AST metrics, code tokens, and file paths.
- π€ Modern Profile Avatar & Authenticated Header: Dashboard header featuring user initials/avatar pill, user email, and an interactive danger-accented signout action with smooth transitions.
- π Commit Velocity, All-Time Chronological Activity Pulse: Tracks all-time repository commit history grouped by month and year (or spaced lifetime intervals for older/newer repositories) via GitHub Octokit with dynamic X-axis labels, formatted date range hover cards (
X commits (MMM dd, yyyy - MMM dd, yyyy)), and all-time lifetime totals. - π Enhanced Language Distribution: Interactive distribution card with dual visualization modesβcompact multi-segment progress bar with proportional rows in Bar mode, and an expanded two-column Donut + Legend layout in Circular mode.
- π₯ Complexity Heatmaps: Computes cyclomatic complexity and cross-references git churn to identify high-risk bug hotspots (automatically ignoring
.agents/and configuration tooling). - π¦ Polyglot Dependency Intelligence: Parses Bun (
bun.lock), Node.js (package.json), Dart/Flutter (pubspec.yaml), .NET (.csproj), Python (requirements.txt), Go (go.mod), and Rust (Cargo.toml) with interactive real-time ecosystem filtering and search. - π³ Architecture Explorer & Touchpad Gestures: Generates interactive Mermaid.js C4 and component dependency diagrams with trackpad pinch-to-zoom, two-finger pan, dynamic size-aware zoom limits, viewport pan clamping (preventing diagrams from escaping off-screen), a 1-click 100% view reset button, and SVG export.
- π§Ή Dead Code & Zombie Files: Pinpoints unreferenced internal symbols and dormant legacy files.
- π‘οΈ Zero-Allocation Secret Scanner: Scans for exposed API keys, private keys,
.pem, and environment secrets using compiled .NET 10[GeneratedRegex], with smart filtering for benign.env.exampletemplates. - π Secure Password Authentication: Built-in email/password credentials with PBKDF2 (HMAC-SHA512 + 100,000 iterations), strict password strength verification, and signed HS256 JWT sessions.
- β‘ Shared Repo Cache & 1-Click Re-Analysis: Instantly retrieves previously analyzed repositories in
<50ms. Automatically compares cached commit SHAs against the GitHub remote default branch to flag outdated audits with 1-click re-analysis (forceRefresh: true). - π₯οΈ Unified All-in-One Dashboard: High-contrast Bento Grid telemetry cards, interactive repository selector with quick sample chips, Architecture Diagram canvas, and Knowledge Dossier viewer.
- π€ Context-Grounded Floating AI Drawer & Live Quota Countdown: Slide-over AI copilot accessible from a floating bottom-right launcher button or top header, grounded strictly in the synthesized
PROJECT_KNOWLEDGE.mddossier via real-time SSE streaming. Features prominent top-of-chat rate-limit alerts with a live countdown timer (Resets in MM:SSorHh MMm), dynamicretryDelaypropagation from Google Gemini, instantaneous auto-dismiss upon timer completion, and seamless fallback to the local AST-grounded engine when Gemini Free Tier quota is reached. - βοΈ Zero-Cost Azure Cloud Infrastructure: Fully automated Infrastructure as Code via Azure Bicep (
infra/main.bicep) featuring Cosmos DB Lifetime Free Tier (1,000 RU/s, 25 GB), Azure Container Apps with scale-to-zero billing, Azure Static Web Apps, and GitHub Actions CI/CD. - π©Ί Zero-Warning Diagnostics & Lint Policy: Strict ESLint 9 Flat Config (
@eslint/js,typescript-eslint,eslint-plugin-react-hooks) and .NET 10 compiler enforcement ensuring 0 errors and 0 warnings across both frontend and backend.
ββββββββββββββββββββββββββββββββββββββββββ
β React 19 SPA (Vite / Bun Runtime) β
β React Router / Tailwind CSS β
ββββββββββββββββββββ¬ββββββββββββββββββββββ
β HTTPS / Bearer JWT / SSE
βΌ
ββββββββββββββββββββββββββββββββββββββββββ
β ASP.NET Core .NET 10 Minimal Web API β
β Scalar OpenAPI Docs β
βββββββββ¬βββββββββββββββββββββββ¬ββββββββββ
β β
ββββββββββββββββββββ΄ββββββββββββββββ β
βΌ βΌ βΌ
βββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
β Cosmos DB (Users / Audits) β β Azure Blob (Dossier .md) β
βββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββ
| Layer | Technologies | Details |
|---|---|---|
| Frontend | React 19, Vite, Bun, TypeScript, React Router | Ultra-fast client-side SPA, Light/Dark/System theme system, client JWT auth, dedicated 404 page |
| Animation & Motion | GSAP (gsap@^3.15.0), @gsap/react, ScrollTrigger |
Master entrance timeline, ScrollTrigger.batch reveals, matchMedia accessibility |
| Workspace UI | Mermaid.js, React Markdown, Lucide Icons | Trackpad gestures, size-aware zoom, Markdown dossier viewer, AI chat drawer |
| Backend | .NET 10 (net10.0), C# 13, ASP.NET Core |
Minimal APIs, Scalar OpenAPI, PBKDF2 cryptography, port 5050 |
| Analysis | Roslyn C# Compiler, Polyglot AST, Octokit | In-memory zipball parsing, complexity & hotspot calculation (ignoring .agents/), commit staleness |
| AI Synthesis | Microsoft Semantic Kernel (1.81.0), Gemini |
Google AI Studio gemini-3.8-flash integration & fallback engine |
| Data & Cloud | Azure Cosmos DB, Azure Blob Storage | Fallback in-memory providers for local development; Bicep IaC for Azure |
| DevOps & CI/CD | GitHub Actions, Docker, Azure Bicep | Scale-to-zero ACA container deployment, GHCR images, SWA deployment |
codelens-ai/
βββ README.md # Project guide and quickstart
βββ .github/
β βββ workflows/
β βββ deploy-backend.yml # GitHub Actions: .NET 10 build, test, Docker & ACA deploy
β βββ deploy-frontend.yml # GitHub Actions: Bun Vite React build & SWA deploy
βββ infra/
β βββ main.bicep # Zero-cost Azure Bicep template (ACA, SWA, Cosmos, Blob)
β βββ main.parameters.json # Deployment parameter configurations
βββ .agents/
β βββ AGENTS.md # AI coding agent rules & guardrails
β βββ PROJECT_CONTEXT.md # Comprehensive architectural specification
β βββ skills/ # Agent engineering & quality skills
β βββ react-doctor/ # React architecture, lint & bundle diagnostics skill
β βββ vercel-react-best-practices/# Vercel React & Next.js performance optimization skill
β βββ gsap-* # Official GSAP AI skills (core, react, timeline, scrolltrigger, etc.)
βββ frontend/ # React 19 SPA (Vite + Bun)
β βββ index.html # SPA entry point with anti-flash script & favicon link
β βββ vite.config.ts # Vite ESM configuration (`import.meta.dirname`) & path aliases
β βββ eslint.config.mjs # ESLint 9 Flat Config (React 19 + TypeScript + React Hooks)
β βββ staticwebapp.config.json # Azure SWA client routing rewrite rules
β βββ public/
β β βββ favicon.svg # Official CodeLens AI gradient brand squircle favicon
β β βββ staticwebapp.config.json # Azure SWA navigation fallback deployed to dist/
β βββ src/
β β βββ main.tsx # Root React DOM entrypoint
β β βββ App.tsx # React Router routes, ProtectedRoute & NotFoundPage catch-all (code-split)
β β βββ context/
β β β βββ AuthContext.tsx # Client JWT authentication provider with memoized callbacks
β β β βββ ThemeContext.tsx # Pure Light/Dark/System theme provider with system default & instant toggle
β β βββ pages/
β β β βββ HomePage.tsx # Modern Product Landing Page with hero, features & CTA
β β β βββ HomePage.module.css # Glassmorphic landing styles & animations
β β β βββ SignInPage.tsx # Tabbed Sign-In / Create Account UI with back-to-home
β β β βββ CredentialsForm.tsx # Form state, validation & submission logic
β β β βββ PasswordValidationComponents.tsx # Eye toggles, strength meter, checklist badges
β β β βββ passwordUtils.ts # Pure scoring rules & validation helpers (hoisted regexes)
β β β βββ NotFoundPage.tsx # Glassmorphic 404 error page with action shortcuts
β β β βββ NotFoundPage.module.css # 404 styles, badges, and layout
β β β βββ DashboardPage.tsx # Protected dashboard page
β β βββ components/ # Presentation & telemetry components
β β β βββ landing/ # GSAP modular landing page sections
β β β β βββ HeroSection.tsx # Hero introduction, stats ribbon & CTAs
β β β β βββ HeroPreviewTabs.tsx # Interactive macOS sandbox window (#preview) with demo repo controls & 4 tabs
β β β β βββ IngestionPipelineSection.tsx # The Zero-Clone Engine 4-phase architecture console (#pipeline)
β β β β βββ BentoFeaturesSection.tsx # 3x2 uniform bento capabilities grid (#features)
β β β β βββ EcosystemSection.tsx# Polyglot manifest intelligence & official Simple Icons (#ecosystem)
β β β β βββ ComparisonSection.tsx # Dimension comparison table with single-unit reveal (#comparison)
β β β β βββ CtaBannerSection.tsx# Conversion CTA banner & community links
β β β βββ BrandLogo.tsx # Reusable SVG brand mark component
β β β βββ ThemeToggle.tsx # Icon-only circular theme toggle with floating accessible tooltip
β β β βββ ThemeToggle.module.css # Animated theme toggle & glassmorphic tooltip styles
β β β βββ DashboardClient.tsx # Unified Dashboard (Bento Grid, Dossier & Diagram tabs)
β β β βββ DashboardHeader.tsx # Top bar navigation, user profile avatar pill & danger signout button
β β β βββ DashboardHeader.module.css # Header layout, avatar & signout styles
β β β βββ ActiveAuditSection.tsx # Active audit summary, stale banner, lazy-loaded Mermaid & Dossier
β β β βββ AnalysisProgressBar.tsx # Multi-stage animated pipeline progress bar with shimmer & step indicators
β β β βββ analysisSteps.ts # 6-step analysis stage metadata, icons, and descriptions
β β β βββ TelemetryBentoGrid.tsx # Metrics Bento Grid layout
β β β βββ DependenciesCard.tsx # Ecosystem filter tabs (Bun, Pub, npm, NuGet, PyPI), search & badges
β β β βββ LanguageDistributionCard.tsx # Dual-mode Bar/Circular language telemetry with dominant stack banner
β β β βββ HotspotTable.tsx # Complexity x Churn risk table (memoized sorting & filter)
β β β βββ SparklineChart.tsx # SVG 8-week commit sparklines with all-time total commits pill
β β β βββ MermaidViewer.tsx # Client-side Mermaid diagram canvas with pan/zoom/copy, 100% reset & a11y region
β β β βββ FullscreenMermaidModal.tsx # Immersive fullscreen diagram viewer with touch & pan clamping
β β β βββ InlineMermaidBlock.tsx # Flow diagram renderer for AI chat markdown responses
β β β βββ ThinkingLines.tsx # Claude-style multi-line animated thinking shimmer state
β β β βββ DossierViewer.tsx # Formatted Markdown dossier preview with SAS download
β β β βββ RepoChatSidebar.tsx # Real-time SSE grounded repo copilot with rate-limit countdown banner & clear chat
β β βββ styles/
β β β βββ globals.css # Glassmorphism design system & token definitions (Plus Jakarta Sans, Inter, JetBrains Mono)
β β βββ lib/
β β βββ api-client.ts # Typed API client (sanitized API_BASE) + SSE stream & chat history endpoints
β β βββ mermaidUtils.ts # Client-side Mermaid syntax normalizer & label quoting
β βββ package.json
βββ backend/ # .NET 10 Solution
βββ CodeLens.sln
βββ Dockerfile # Multi-stage .NET 10 container image (port 5050)
βββ tests/CodeLens.Tests/ # xUnit test suite (31 tests)
βββ src/
βββ CodeLens.Core/ # Domain entities, DTOs, and interface contracts (IGeminiSynthesisService)
βββ CodeLens.Infrastructure/ # Cosmos DB, Blob, Octokit, Roslyn analysis, Secret scanner, Gemini AI Engine
βββ CodeLens.Api/ # ASP.NET Core Minimal API (port 5050) & Scalar UI
- JavaScript / TypeScript: Bun (
v1.2+) - Backend SDK: .NET 10 SDK (
10.0.x) - GitHub Token (Optional): Set
GITHUB_TOKENin your environment orappsettings.Development.jsonto increase API rate limits from 60/hr to 5,000/hr. - Gemini API Key (Optional): Set
GEMINI_API_KEYorGemini:ApiKeyinappsettings.Development.jsonto enable Gemini 3.8 Flash synthesis and AI chat.
From the project root:
cd backend
dotnet restore CodeLens.sln
dotnet test CodeLens.sln # Run all 31 xUnit tests
dotnet run --project src/CodeLens.Api- API Base:
http://localhost:5050 - Interactive Scalar Docs:
http://localhost:5050/scalar/v1
π‘ Zero Setup Required: If Azure connection strings or Gemini API keys are omitted, the backend automatically uses the built-in in-memory repository, blob services, and heuristic synthesis fallback so you can analyze repositories, inspect telemetry, and test chat immediately.
In a separate terminal window:
cd frontend
bun install
# Configure environment variables
cp .env.example .env.localEnsure frontend/.env.local contains:
VITE_API_URL=http://localhost:5050
VITE_APP_URL=http://localhost:5173Start the development server:
bun run devVisit http://localhost:5173 to view the interactive Product Landing Page, or open http://localhost:5173/auth/signin to test the tabbed Sign-In, real-time password strength validation, and registration experience.
CodeLens AI includes full Infrastructure as Code (IaC) via Azure Bicep in infra/main.bicep configured for $0/month idle cost:
# Log in to Azure
az login
# Create resource group in Central India (or preferred region)
az group create --name rg-codelens-prod --location centralindia
# Deploy Bicep template
az deployment group create \
--resource-group rg-codelens-prod \
--template-file infra/main.bicep \
--parameters location=centralindiaPushing to main automatically triggers:
.github/workflows/deploy-backend.yml: Runs all 30 xUnit tests, builds Docker container, publishes to GitHub Container Registry (ghcr.io), and deploys to Azure Container Apps..github/workflows/deploy-frontend.yml: Builds Vite React SPA with Bun and deploys static artifacts directly to Azure Static Web Apps edge CDN.
- Foundation & Infrastructure: ASP.NET Core .NET 10 Minimal API, React 19 Vite SPA, Scalar OpenAPI UI, zero-warning build, 30 passing xUnit tests.
- Secure Password Authentication: PBKDF2 Email/Password cryptography, real-time criteria checks, dynamic strength meter, show/hide toggles, and dedicated auth page theme toggling.
- Deterministic Telemetry & Static Analysis: Zero-disk in-memory zipball streaming, Octokit commit sparklines, Roslyn AST cyclomatic complexity, hotspot calculation (with
.agents/exclusion), polyglot package parsing, compiled regex secret scanner (with.env.examplefiltering), and Telemetry Bento Grid. - Gemini 3.8 Flash Dossier Synthesis: Semantic Kernel connector, structured outputs (ELI5, License, Architecture Smells, Runbook), Mermaid diagram syntax sanitization, and standardized
PROJECT_KNOWLEDGE.mdcompilation with Azure Blob SAS tokens. - Unified Interactive Dashboard & Floating AI Drawer: All-in-one home dashboard with tabs for Bento Grid, Mermaid Diagram, and Knowledge Dossier. Slide-over AI copilot drawer with streaming SSE responses. Trackpad gestures (pinch-to-zoom, two-finger pan) with dynamic diagram-aware zoom bounds.
- Light / Dark / System Theme: Full 3-mode theme system (
System,Dark,Light) with automatic OS preference detection, instant anti-flash pre-hydration script, dynamic SVG diagram color palette adaptation, and high-contrast form controls and typography. - Zero-Cost Cloud Deployment & CI/CD: Azure Container Apps scale-to-zero compute, Azure Static Web Apps, Cosmos DB Lifetime Free Tier, Azure Bicep IaC (
infra/main.bicep), and automated GitHub Actions workflows.
This project is licensed under the MIT License - see the LICENSE file for details.