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.
- Drag-and-drop project ZIP upload (up to 500MB via Vercel Blob)
- Automatic extraction using
adm-zip - Smart filtering of unnecessary directories:
node_modules.gitdistbuild.next- other generated artifacts
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
A synchronized learning environment.
- VS Codeโstyle file explorer
- Read-only Monaco Editor
- Syntax highlighting
- File navigation
- Line highlighting
Interactive React slides explaining:
- Overall architecture
- Individual modules
- Function breakdowns
- Component relationships
- Business logic
- Data flow
- API interactions
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
Improve understanding with automatically generated quizzes.
Features include:
- Multiple choice questions
- Architecture-based questions
- Code comprehension challenges
- Immediate feedback
- Concept reinforcement
| 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 ZIP
โ
โผ
ZIP Extraction
โ
โผ
File Filtering
โ
โผ
Codebase Parsing
โ
โผ
Gemini Architecture Analysis
โ
โผ
Structured JSON
โ
โโโโโโโโโโโโโโโ
โผ โผ
Monaco Editor Interactive Slides
โ โ
โโโโโโโโฌโโโโโโโ
โผ
Sync-to-Line Navigation
โ
โผ
Learning Quizzes
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
git clone https://github.com/your-username/deconstruct-ai.git
cd deconstruct-ainpm installCreate 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- Go to Vercel Dashboard โ Storage โ Create Database โ Blob
- Name it (e.g.,
deconstruct-uploads) - Copy the Read/Write Token (starts with
vercel_blob_rw_) - Add to
.env.localasBLOB_READ_WRITE_TOKEN
Blob Storage is auto-linked when you create it in the same Vercel project - no env vars needed.
npm run devVisit:
http://localhost:3000
deconstruct-ai/
โโโ app/
โโโ components/
โโโ lib/
โโโ services/
โโโ hooks/
โโโ utils/
โโโ public/
โโโ styles/
โโโ types/
โโโ .env.local
โโโ package.json
โโโ README.md
- Upload any codebase
- Understand architecture instantly
- Navigate visually
- Learn module-by-module
- Reduce onboarding time
- Improve developer productivity
Analyze repositories directly from GitHub URLs.
Automatically refresh analyses when repositories change.
Interactive Abstract Syntax Tree exploration for multiple languages.
Visualize imports, exports, and module relationships.
Understand function execution paths across the application.
Ask questions such as:
"How does authentication work?"
"Explain this API."
"Where is this state updated?"
"What calls this function?"
- Dark themes
- Light themes
- VS Code themes
- Custom syntax colors
Support for:
- JavaScript
- TypeScript
- Python
- Java
- Go
- Rust
- C++
- C#
- PHP
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
This project is licensed under the MIT License.
See the LICENSE file for details.
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.
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.
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).