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, upload a project ZIP or paste a public GitHub repository URL 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
- Import a public repository straight from its URL โ no manual ZIP download
- Supports
https://github.com/owner/repoand.../tree/branch-name - Shows owner, name, description, default branch, branch selector and file count before analysis
- Streams real progress (validating โ fetching โ downloading โ filtering โ preparing โ analysing โ generating)
- Uses the exact same filtering, Gemini analysis and learning workspace as ZIP uploads
- Server-side only GitHub requests; no token required for public repositories
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 |
ZIP Upload โโโโโโโ
โโโโถ CodebaseSummary โโโถ Gemini Architecture Analysis
GitHub Import โโโโ โ โ
โ โผ
โ Structured JSON
โ โ
โ โโโโโโโโโโโโโดโโโโโโโโโโโโ
โผ โผ โผ
Monaco Editor Interactive Slides Learning Quizzes
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโ
โผ
Sync-to-Line Navigation
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
# Optional: higher GitHub API rate limit (not needed for public repositories)
GITHUB_TOKEN=ghp_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
Public repositories can already be analysed directly from their URL. Next up: private repositories via user-authorized tokens.
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
npm test # URL parsing, filtering, ZIP safety, GitHub metadata/archive handling
npm run typecheck # TypeScript
npm run lint # ESLint / Next lint
npm run build # Production build- GitHub imports support public repositories only (no token required).
- Repository size is capped at 150MB reported by GitHub; the downloaded archive is capped at 80MB.
- At most 3000 source files / 32MB of text reach Gemini, matching ZIP imports.
- Without
GITHUB_TOKEN, GitHub allows 60 API requests/hour per server IP; set the optional token for a higher shared allowance. - Branch selection is limited to the first 30 branches plus any branch named in the URL.
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).