Visualize and explore the component architecture of any GitHub repository.
- 🔍 Analyze React/Next.js repositories from GitHub
- 📊 Interactive component dependency graph
- 📁 File explorer with component indicators
- 🔄 Real-time analysis with progressive updates
- 📝 Component details and code preview
- Clone the repository:
git clone https://github.com/yourusername/docai.git
cd docai- Install dependencies:
npm install- Create a
.env.localfile in the root directory and add your GitHub token:
GITHUB_TOKEN=your_github_personal_access_token_hereTo get a GitHub Personal Access Token:
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token" (classic)
- Select scopes:
repo(for private repos) orpublic_repo(for public repos only) - Copy the token and add it to your
.env.localfile
- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
- Enter a GitHub repository URL in the input field (e.g.,
https://github.com/admineral/OpenAI-Assistant-API-Chat) - Click "Analyze" or press Enter
- Watch as components are discovered and visualized in real-time
- Click on components to see their details, dependencies, and code
- Next.js 15
- React Flow for graph visualization
- TypeScript
- Tailwind CSS
- GitHub API for repository analysis
MIT