View app in AI Studio: https://ai.studio/apps/drive/1aH5ohH0-C_BCPN5VBbyM_D5lXCTzJlXn
An intelligent, AI-powered tool designed to automate the migration of legacy codebases to modern frameworks (specifically Next.js + TypeScript). Built for the Gemini 3 Hackathon.
- Deep Repository Analysis: Scans GitHub repositories to understand structure, dependencies, and architecture.
- Architecture Visualization: Generates visual diagrams of legacy system architecture using Gemini 2.0 Flash.
- Automated Migration: Converts legacy code (PHP, Vue, old React, etc.) into modern Next.js 16 (App Router) + TypeScript components.
- Project Scaffolding: Automatically generates a full project structure including configuration files.
- Detailed Reports: Provides a migration summary with modernization scores, test coverage estimates, and key improvements.
- Zip Download: Download the fully migrated project as a zip file, ready to run.
- Frontend: React 19, Vite, Tailwind CSS
- AI Models: Google Gemini 2.0 Flash (Analysis & Code Gen)
- Visualization: Mermaid.js (via Gemini)
- State Management: React Context / Hooks
- Node.js (v18 or higher)
- A Google Gemini API Key (Get one here)
-
Clone the repository:
git clone https://github.com/lassestilvang/code-migration-autopilot.git cd code-migration-autopilot -
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.localfile in the root directory and add your API key:GEMINI_API_KEY=your_api_key_here
-
Run the development server:
npm run dev
The app will be available at http://localhost:5173.
- Enter the GitHub URL of the repository you want to migrate.
- Click "Analyze Repo" to start the scanning process.
- Review the generated architecture diagram and analysis summary.
- Click "Build Next.js App" to start the code generation.
- Watch as files are generated in real-time in the file explorer.
- Once complete, click "Download Project" to get your migrated codebase.
We welcome contributions! Please see our Contributing Guidelines for more details.
This project is licensed under the MIT License - see the LICENSE file for details.


