How coderamp-labs/gitingest-extension works
GitIngest Extension adds a repository-page action to GitHub that sends the repository to a GitIngest service for prompt-friendly codebase ingestion. Users can configure the service URL and whether the result opens in a new window; the content script keeps the action in sync with GitHub’s changing page. The README also describes the service’s extract format and file, size, and token statistics; service-side processing is outside this repository. Wiring is based on the sampled entrypoints, so unsampled service internals are not represented.
Main entry points: git-ingest-button.ts Ingest button · index.ts Content script · App.tsx Settings popup · page-observer.ts Page observer
Components 8
Extension settings
- Settings popup
entrypoints/popup/App.tsx - Sync settings storage
GitHub integration
- GitHub repository page
- Content script
entrypoints/content/index.ts - Page observer
entrypoints/content/page-observer.ts - Ingest button
entrypoints/content/git-ingest-button.ts
Ingest destination
- GitIngest service
Other components
- User
Connections 12
- User → Settings popup: opens
- Settings popup → Sync settings storage: reads settings
- Settings popup → Sync settings storage: saves settings
- User → GitHub repository page: visits repository
- GitHub repository page → Content script: runs on match
- Content script → Page observer: registers callback
- Page observer → Content script: notifies changes
- Content script → Ingest button: creates and inserts
- Ingest button → Sync settings storage: reads preferences
- Sync settings storage → Ingest button: notifies URL changes
- User → Ingest button: clicks link
- Ingest button → GitIngest service: navigates to repository ingest