How cbarkinozer/repo-context works
This is a Streamlit suite and CLI for turning GitHub repositories or DeepWiki documentation into LLM-ready context, plus a repository health comparison tool. The main workflow accepts a repository URL and options, obtains and analyzes repository contents, then presents or saves the generated snapshot. A separate workflow gathers GitHub metrics and compares GPQS scores. DeepWiki scraping is another independent context-generation path. The core implementation excerpt is partial, so its documented filtering, tagging, metadata, and output stages are grouped rather than mapped to uncertain internal calls.
Main entry points: core.py Repository context engine · repo_comparison.py Comparison UI · deep_wiki_generator.py DeepWiki scraper UI · repo_context_generator.py Context web UI
Components 14
User interfaces
- Tool landing page
app.py - Context web UI
pages/repo_context_generator.py - Context CLI
src/repo_context/cli.py
Context generation
- Repository context engine
src/repo_context/core.py - Repository snapshot
src/repo_context/core.py
Repository comparison
- Comparison UI
pages/repo_comparison.py - GPQS analysis and scoring
src/repo_context/gpqs_calculator.py - Scores and metrics
pages/repo_comparison.py
DeepWiki context
- DeepWiki scraper UI
pages/deep_wiki_generator.py - Wiki context text
pages/deep_wiki_generator.py
Other components
- User
- GitHub repository
- GitHub API
- DeepWiki site
Connections 21
- User → Tool landing page: opens tools
- User → Context web UI: configures
- User → Context CLI: runs command
- User → Comparison UI: submits repositories
- User → DeepWiki scraper UI: submits URL
- Context web UI → Repository context engine: requests generation
- Context CLI → Repository context engine: requests generation
- Repository context engine → GitHub repository: clones or fetches
- Repository context engine → Repository snapshot: builds snapshot
- Repository context engine → Context web UI: returns snapshot
- Context web UI → User: previews or downloads
- Repository context engine → Context CLI: returns snapshot
- Context CLI → User: prints or writes
- Comparison UI → GPQS analysis and scoring: analyzes each URL
- GPQS analysis and scoring → GitHub API: requests repository metrics
- GPQS analysis and scoring → Comparison UI: returns scores and data
- Comparison UI → Scores and metrics: stores and formats
- Comparison UI → User: displays comparison
- DeepWiki scraper UI → DeepWiki site: fetches pages
- DeepWiki scraper UI → Wiki context text: compiles page content
- DeepWiki scraper UI → User: previews or downloads