Skip to content

Ayushisingh2005/DevScope_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Typing SVG


Subtitle



React Vite FastAPI Groq SQLite Tailwind



🚩 The Problem: Code Quality Flies Blind

Most developers write code, push it, and hope for the best. Security vulnerabilities, creeping complexity, and silent technical debt only surface during expensive late-stage reviews β€” or worse, in production.

DevScope AI installs a real-time intelligence layer directly into your development workflow:

  1. Ask it anything about your code β€” Big O, maintainability, security gaps
  2. Upload any file and get targeted refactoring or debugging analysis
  3. Track your technical debt as a measurable trend over time β€” not a gut feeling

No more flying blind. Your AI co-pilot is always watching.


✨ Features

Feature Description
πŸ” Intelligent Analysis Real-time feedback on Time Complexity (Big O), Maintainability scores, and Security vulnerabilities
πŸ“ Smart File Uploads Attach .py, .js, or .cpp files with specific refactoring or debugging instructions
πŸ“ˆ Issue Trend Graph Data-driven line chart tracking code issues over time via persistent SQLite
🎨 Cinematic UI Glassmorphism Space Theme with a live starfield, terminal-style interface, and smooth animations
⚑ Lightning-Fast AI Groq LPU inference with Llama 3.3 70B for near-instantaneous responses

πŸ—οΈ Architecture

graph TD
    subgraph Frontend["πŸ–₯️ React Frontend"]
        A[πŸ‘¨β€πŸ’» Developer] -->|Code / File Upload| B[πŸ’¬ Chat Interface]
        B -->|HTTP POST via Axios| C[⚑ FastAPI Backend]
    end

    subgraph Backend["🧠 Backend Engine"]
        C -->|Prompt Engineering| D[πŸ€– Groq β€” Llama 3.3 70B]
        D -->|Analysis Result| E[πŸ“Š Issue Scorer]
        E -->|Write Record| F[(SQLite via SQLAlchemy)]
    end

    subgraph Dashboard["πŸ“ˆ Analytics Layer"]
        F -->|Historical Data| G[Recharts Issue Trend Graph]
        D -->|Live Response| H[Terminal Chat Bubbles]
    end

    style D fill:#38bdf8,stroke:#fff,stroke-width:1px,color:#000
    style G fill:#38bdf8,stroke:#fff,stroke-width:1px,color:#000
    style C fill:#009688,stroke:#fff,stroke-width:1px,color:#fff
    style F fill:#003B57,stroke:#aaa,stroke-width:1px,color:#fff
    style A fill:#1e1b4b,stroke:#a5b4fc,stroke-width:1px,color:#fff
    style B fill:#1e293b,stroke:#38bdf8,stroke-width:1px,color:#fff
Loading

πŸ› οΈ Tech Stack

Layer Technologies
Frontend React.js, Vite, Tailwind CSS, Framer Motion, Recharts, Lucide React
Backend Python 3.8+, FastAPI, Uvicorn
AI Engine Groq SDK β€” Llama 3.3 70B
Database SQLite, SQLAlchemy ORM
File Handling python-multipart
HTTP Client Axios

πŸ“‚ Project Structure

devscope-ai/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ main.py             # FastAPI entry point & API routes
β”‚   β”œβ”€β”€ analyzer.py         # AI logic & Groq API integration
β”‚   β”œβ”€β”€ database.py         # SQLite connection & SQLAlchemy models
β”‚   β”œβ”€β”€ .env                # API keys (environment variables)
β”‚   └── devscope.db         # Auto-generated SQLite database
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ Sidebar.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ ChatBubble.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ CodeWindow.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ MetricsBar.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ InputArea.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ IssueGraph.jsx
β”‚   β”‚   β”‚   └── Starfield.jsx
β”‚   β”‚   β”œβ”€β”€ App.jsx         # Main logic & state
β”‚   β”‚   β”œβ”€β”€ main.jsx        # React entry point
β”‚   β”‚   └── index.css       # Global styles & Tailwind
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   β”œβ”€β”€ package.json
β”‚   └── vite.config.js
└── README.md

πŸš€ Getting Started

Prerequisites


1. Backend Setup

# Navigate to the backend folder
cd backend

# Create and activate a virtual environment
python -m venv .venv

# Windows
.\.venv\Scripts\activate
# Mac / Linux
source .venv/bin/activate

# Install dependencies
pip install fastapi uvicorn sqlalchemy groq python-dotenv python-multipart

Configure environment variables β€” create a .env file in backend/:

GROQ_API_KEY=your_gsk_key_here

Start the backend:

python main.py
# Running at http://localhost:8000

2. Frontend Setup

# Navigate to the frontend folder
cd ../frontend

# Install dependencies
# (includes axios, recharts, lucide-react, react-syntax-highlighter, framer-motion)
npm install --legacy-peer-deps

# Start the dev server
npm run dev
# Running at http://localhost:5173
Service URL
Frontend UI http://localhost:5173
Backend API http://localhost:8000
API Docs (Swagger) http://localhost:8000/docs

πŸ“Š Usage Guide

πŸ’¬ Chat β€” Type any coding question (e.g. "Write an optimized quicksort in Python") and hit Send. The AI responds with code, complexity analysis, and suggestions.

πŸ“ Analyze a File β€” Click the Paperclip icon or the Upload icon in the sidebar to attach a .py, .js, or .cpp file. Add specific instructions (e.g. "Check this for SQL injection") and hit Send.

πŸ“ˆ Analytics β€” Click the Bar Chart icon in the sidebar to view your issue trend graph β€” a persistent record of code health over time.

πŸ”„ Dashboard β€” Click the Grid icon to reset your current session and start a fresh analysis.


🀝 Contributing

Contributions that improve the following are especially welcome:

  • Prompt Engineering β€” more accurate Big O and security scoring prompts
  • New File Type Support β€” extending uploads to .ts, .go, .rs, .java
  • Database Adapters β€” PostgreSQL support via SQLAlchemy
  • UI Themes β€” additional Glassmorphism or terminal-dark variants

Please open an issue before submitting a large PR so we can align on direction.


πŸ“„ License

This project is open source. See LICENSE for details.


Built for developers who care about code quality. ⚑

DevScope AI β€” Real-time intelligence. Zero compromise.

About

An AI-powered developer dashboard for real-time code analysis. Features complexity metrics, security auditing, and historical issue tracking with a sleek space-themed UI.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors