Skip to content

About

An AI-powered reverse-engineering dashboard that ingests full codebases, maps dependencies, and automatically generates interactive architectural slide decks, performance analysis, and contextual code walkthroughs. Built with Next.js, Monaco Editor, and the Gemini API.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

33 Commits

Folders and files

Repository files navigation

๐Ÿš€ Deconstruct.ai

Understand any codebase visually, interactively, and intelligently.

Deconstruct.ai is an AI-powered reverse engineering platform that transforms unfamiliar codebases into an interactive learning experience. Instead of spending hours navigating thousands of lines of legacy code, simply upload a project ZIP and let Deconstruct automatically analyze, visualize, and explain the architecture step by step.

The platform parses the project structure, identifies execution entry points, analyzes application flow using the Google Gemini API, and generates synchronized architectural diagrams, interactive presentations, and contextual quizzesโ€”all alongside the actual source code.


โœจ Features

โšก Fast Project Ingestion

  • Drag-and-drop project ZIP upload (up to 500MB via Vercel Blob)
  • Automatic extraction using adm-zip
  • Smart filtering of unnecessary directories:
    • node_modules
    • .git
    • dist
    • build
    • .next
    • other generated artifacts

๐Ÿง  AI-Powered Architecture Analysis

Generate a complete understanding of any codebase with Gemini.

  • Project overview
  • Folder hierarchy analysis
  • Execution flow detection
  • Entry point identification
  • Module relationships
  • Data flow explanation
  • Component dependency mapping
  • Predictable structured JSON outputs

๐Ÿ’ป Dual-Panel Interactive Workspace

A synchronized learning environment.

Left Panel

  • VS Codeโ€“style file explorer
  • Read-only Monaco Editor
  • Syntax highlighting
  • File navigation
  • Line highlighting

Right Panel

Interactive React slides explaining:

  • Overall architecture
  • Individual modules
  • Function breakdowns
  • Component relationships
  • Business logic
  • Data flow
  • API interactions

๐Ÿ”„ Sync-to-Code Navigation

Every explanation is connected directly to the source.

Clicking a slide automatically:

  • Opens the correct file
  • Scrolls Monaco Editor
  • Highlights the responsible lines
  • Keeps explanation and code synchronized

๐ŸŽ“ AI-Generated Learning Quizzes

Improve understanding with automatically generated quizzes.

Features include:

  • Multiple choice questions
  • Architecture-based questions
  • Code comprehension challenges
  • Immediate feedback
  • Concept reinforcement

๐Ÿ›  Tech Stack

Technology Purpose
Next.js 15 (App Router) Frontend & Backend Framework
React 19 User Interface
Tailwind CSS Styling
shadcn/ui UI Components
Monaco Editor VS Code Editing Experience
Google Gemini API AI Architecture Analysis
Vercel Blob Object Storage (500MB+ uploads)
adm-zip ZIP Extraction
TypeScript Type Safety

๐Ÿ“‚ Project Workflow

Project ZIP
      โ”‚
      โ–ผ
 ZIP Extraction
      โ”‚
      โ–ผ
 File Filtering
      โ”‚
      โ–ผ
 Codebase Parsing
      โ”‚
      โ–ผ
 Gemini Architecture Analysis
      โ”‚
      โ–ผ
 Structured JSON
      โ”‚
      โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ–ผ             โ–ผ
 Monaco Editor   Interactive Slides
      โ”‚             โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
             โ–ผ
     Sync-to-Line Navigation
             โ”‚
             โ–ผ
      Learning Quizzes

๐Ÿš€ Getting Started

Prerequisites

Before running the project, you'll need:

  • Node.js 18+
  • npm
  • Google Gemini API Key
  • Vercel Account (for Blob storage - auto-configured on deploy)

Get your API key from:

https://aistudio.google.com/app/apikey


๐Ÿ“ฆ Installation

1. Clone the repository

git clone https://github.com/your-username/deconstruct-ai.git

cd deconstruct-ai

2. Install dependencies

npm install

3. Configure environment variables

Create a file named:

.env.local

Add:

# Required: Google Gemini API
GEMINI_API_KEY=your_actual_api_key_here

# Required for >4MB uploads: Vercel Blob
# Auto-created when you add Blob Storage in Vercel Dashboard
BLOB_READ_WRITE_TOKEN=vercel_blob_rw_xxx

Setting up Vercel Blob (Local Development)

  1. Go to Vercel Dashboard โ†’ Storage โ†’ Create Database โ†’ Blob
  2. Name it (e.g., deconstruct-uploads)
  3. Copy the Read/Write Token (starts with vercel_blob_rw_)
  4. Add to .env.local as BLOB_READ_WRITE_TOKEN

On Vercel Deploy

Blob Storage is auto-linked when you create it in the same Vercel project - no env vars needed.


4. Run the development server

npm run dev

5. Open the application

Visit:

http://localhost:3000

๐Ÿ“ Recommended Project Structure

deconstruct-ai/

โ”œโ”€โ”€ app/
โ”œโ”€โ”€ components/
โ”œโ”€โ”€ lib/
โ”œโ”€โ”€ services/
โ”œโ”€โ”€ hooks/
โ”œโ”€โ”€ utils/
โ”œโ”€โ”€ public/
โ”œโ”€โ”€ styles/
โ”œโ”€โ”€ types/
โ”œโ”€โ”€ .env.local
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐ŸŽฏ MVP Goals

  • Upload any codebase
  • Understand architecture instantly
  • Navigate visually
  • Learn module-by-module
  • Reduce onboarding time
  • Improve developer productivity

๐Ÿ”ฎ Future Roadmap

GitHub Repository Import

Analyze repositories directly from GitHub URLs.


Live Repository Sync

Automatically refresh analyses when repositories change.


AST Visualization

Interactive Abstract Syntax Tree exploration for multiple languages.


Dependency Graphs

Visualize imports, exports, and module relationships.


Call Graph Explorer

Understand function execution paths across the application.


AI Chat Assistant

Ask questions such as:

"How does authentication work?"

"Explain this API."

"Where is this state updated?"

"What calls this function?"


Custom Monaco Themes

  • Dark themes
  • Light themes
  • VS Code themes
  • Custom syntax colors

Multi-Language Support

Support for:

  • JavaScript
  • TypeScript
  • Python
  • Java
  • Go
  • Rust
  • C++
  • C#
  • PHP

๐Ÿค Contributing

Deconstruct.ai is currently in active MVP development.

Once the initial release is completed, external contributions will be welcomed.

Future contributors will be able to work on:

  • New language parsers
  • Improved AI prompts
  • UI enhancements
  • Performance optimizations
  • Visualization tools
  • Documentation

๐Ÿ“„ License

This project is licensed under the MIT License.

See the LICENSE file for details.


๐Ÿ’ก Why Deconstruct.ai?

Every developer has experienced the frustration of opening an unfamiliar repository and wondering:

  • Where does the application start?
  • Which files matter?
  • How are modules connected?
  • Where does the data flow?
  • How do components communicate?

Deconstruct.ai answers these questions automatically, transforming complex codebases into an interactive learning experience that is visual, intuitive, and AI-powered.


โญ If you find this project useful, consider giving it a star!

It helps support development and motivates future improvements.

Built with โค๏ธ using Next.js, Monaco Editor, Tailwind CSS, shadcn/ui, Google Gemini AI, and Vercel Blob.


One-click Deploy

Deploy with Vercel

Other Platforms

The app works on any Node.js hosting (Railway, Render, Fly.io, etc.) - set GEMINI_API_KEY and BLOB_READ_WRITE_TOKEN (from Vercel Blob or compatible S3).

About

An AI-powered reverse-engineering dashboard that ingests full codebases, maps dependencies, and automatically generates interactive architectural slide decks, performance analysis, and contextual code walkthroughs. Built with Next.js, Monaco Editor, and the Gemini API.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages