How honeypie3301/gitdigest works
GitDigest turns a GitHub repository, local directory, or archive into a filtered, formatted digest and file tree for LLM use. The main browser workflow collects ingestion options, routes work through the ingestion service to a server or GitHub-backed path, and presents results for export. Separate runtime branches provide Python server ingestion and Windows desktop processing; desktop Java decompilation and stored presets are additional capabilities. Relationships are limited to excerpted calls, SOURCE INDEX references, and README statements; unsampled details are not inferred.
Main entry points: App.tsx App workflow · query_processor.py Query processor · services/ingest.ts Ingestion service · api/ingest.ts Ingest endpoint
Components 25
Browser experience
- App workflow
src/App.tsx - Ingestion form
src/components/GitForm.tsx - Digest results
src/components/ResultSection.tsx
Web ingestion
- Ingestion service
src/services/ingest.ts - GitHub API client
src/services/githubApi.ts - Ingest endpoint
api/ingest.ts - Archive ingestion
worker/archive.ts - Worker server
worker/server.ts - Artifact storage
worker/storage.ts
Python engine
- Python API
src/server/routers/ingest.py - Query processor
src/server/query_processor.py - Repository parser
src/gitingest/query_parser.py - Git clone
src/gitingest/clone.py - File ingestion
src/gitingest/ingestion.py - Digest formatter
src/gitingest/output_formatter.py
Desktop runtime
- Windows desktop
desktop/rust/src/main.rs - Local engine
desktop/rust/src/local.rs - Desktop API
desktop/rust/src/api.rs
Supporting capabilities
- Java decompiler
src/services/decompiler/cfr.ts - Ingestion presets
src/components/IngestionPresets.tsx - Preset storage
src/services/ingestionPresets.ts - Digest exports
src/services/digestExport.ts - Ingestion history
src/services/ingestionHistory.ts
Other components
- Repository user
- GitHub
Connections 23
- Repository user → App workflow: starts session
- App workflow → Ingestion form: shows form
src/App.tsx - Ingestion form → Ingestion service: submits options
- App workflow → Ingestion service: starts ingestion
src/App.tsx - Ingestion service → GitHub API client: uses API fallback
src/services/ingest.ts - Ingestion service → Ingest endpoint: posts request
api/ingest.ts - Ingest endpoint → GitHub: fetches repository
api/ingest.ts - Ingest endpoint → Archive ingestion: downloads and ingests
api/ingest.ts - Worker server → Archive ingestion: dispatches ingestion
worker/server.ts - Worker server → Artifact storage: stores artifacts
worker/server.ts - Archive ingestion → Java decompiler: decompiles classes
worker/archive.ts - App workflow → Digest results: renders result
src/App.tsx - Digest results → Digest exports: exports digest
- App workflow → Ingestion presets: shows presets
- Ingestion presets → Preset storage: loads presets
src/components/IngestionPresets.tsx - App workflow → Ingestion history: tracks history
src/App.tsx - Python API → Query processor: delegates query
- Query processor → Repository parser: parses repository
src/server/query_processor.py - Query processor → Git clone: clones repository
src/server/query_processor.py - Query processor → File ingestion: processes files
src/server/query_processor.py - File ingestion → Digest formatter: formats output
src/gitingest/ingestion.py - Windows desktop → Local engine: runs local inputs
desktop/rust/src/main.rs - Windows desktop → Desktop API: dispatches API work
desktop/rust/src/main.rs