A Chrome extension that helps you quickly understand GitHub open-source projects by generating AI-powered project documentation.
GitHub Guide Tool is a Chrome browser extension that analyzes GitHub repositories and generates comprehensive project guides using AI. Instead of sending entire codebases to AI models, it extracts code skeletons and metadata to produce accurate analysis while saving tokens.
- π Instant Analysis - Analyze any public GitHub repository with one click
- π€ Multiple AI Providers - Support for Claude, OpenAI, SiliconFlow, and BigModel
- π§ Intelligent Chunking - Automatically split large codebases for models with smaller context limits
- π Smart Strategy - Adaptive analysis depth based on project size
- β‘ Streaming Output - Real-time AI response display
- πΎ Cache System - 24-hour result caching to avoid repeated API calls
- π Markdown Export - Export analysis results as Markdown files
- π Private Repos - Support for private repositories with GitHub token
GitHub Repository β Code Skeleton Extraction β AI Analysis β Formatted Guide
- Fetch Repository Info - Get file tree, README, and configuration files via GitHub API
- Extract Code Skeleton - Parse directory structure, function signatures, and exports
- AI Analysis - Send skeleton data to AI for comprehensive analysis
- Display Results - Show formatted Markdown guide with syntax highlighting
- Download the latest
github-guide-tool.zipfrom Releases - Unzip the file to get the
distfolder - Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (toggle in top-right corner)
- Click Load unpacked and select the
distfolder - Done! The extension icon will appear in your toolbar
# Clone the repository
git clone https://github.com/alexanderkinging/github-guide-tool.git
cd github-guide-tool
# Install dependencies
npm install
# Build the extension
npm run build
# The built extension will be in the dist/ folderThen follow steps 3-6 from Option 1.
Before using the extension, you need to configure API keys:
- Click the extension icon
- Go to Settings
- Configure the following:
- AI Provider: Choose from Claude, OpenAI, or SiliconFlow
- AI API Key: Your API key for the selected provider
- GitHub Token: Personal Access Token to increase API rate limit (from 60 to 5000 requests/hour)
- Claude API: Anthropic Console
- OpenAI API: OpenAI Platform
- SiliconFlow: SiliconFlow Console
- GitHub Token: GitHub Settings β Developer settings β Personal access tokens
- Visit any GitHub repository page (e.g.,
https://github.com/facebook/react) - Click the GitHub Guide Tool icon in your toolbar
- Click Analyze Repository
- Wait for the analysis to complete (streaming output will show progress)
- Review the generated guide
- Optionally:
- Click π to copy to clipboard
- Click πΎ to export as Markdown file
The extension automatically adjusts analysis depth based on project size:
| Project Size | File Count | Analysis Depth |
|---|---|---|
| Small | < 50 | Deep Analysis (Complete skeleton) |
| Medium | 50-200 | Standard Analysis (Core modules) |
| Large | > 200 | Quick Overview (Overview + core modules) |
- Language: TypeScript
- UI Framework: React 18
- Styling: Tailwind CSS
- Build Tool: Vite + CRXJS
- Chrome API: Manifest V3
- Markdown Rendering: react-markdown with syntax highlighting
github-guide-tool/
βββ src/
β βββ popup/ # Extension popup UI
β β βββ components/ # React components
β β βββ App.tsx
β βββ background/ # Service Worker
β β βββ index.ts
β βββ content/ # Content Script
β β βββ index.ts
β βββ lib/ # Shared modules
β β βββ github/ # GitHub API client
β β βββ analyzer/ # Code skeleton extraction
β β βββ ai/ # AI service adapters
β βββ types/ # TypeScript type definitions
βββ icons/ # Extension icons
βββ manifest.json # Chrome extension manifest
βββ docs/ # Documentation
# Install dependencies
npm install
# Start development server (with hot reload)
npm run dev
# Build for production
npm run build
# Type checking
npm run type-check
# Lint code
npm run lint- Intelligent chunked analysis for large codebases
- Token estimation and model context limits
- Multi-round analysis with structured summaries
- Progress display for chunked analysis
- Private repository support
- Multi-language code skeleton extraction (Go, Rust, Java, C++)
- Custom prompt templates
- BigModel (ζΊθ°±) AI provider support
- Basic Chrome extension framework
- GitHub API integration
- Code skeleton extraction (JS/TS/Python)
- AI analysis (Claude/OpenAI/SiliconFlow)
- Streaming output
- Markdown export
- Cache system
- Memory optimization
- Interactive Q&A mode
- Multi-language UI (i18n)
- Chrome Web Store publication
- Enhanced code navigation
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Anthropic - Claude API
- OpenAI - GPT API
- SiliconFlow - AI inference platform
- GitHub - Repository hosting and API
If you have any questions or suggestions, please open an issue on GitHub.
Note: This extension requires API keys from third-party AI services. Please ensure you comply with their respective terms of service and usage policies.