๐ Gittxt Streamlit Plugin¶
The Streamlit Plugin provides a clean visual interface for Gittxt. It allows users to scan GitHub repositories and download AI-ready textual outputs via a local or cloud-hosted web app.
๐ Launch the Web App¶
Locally via CLI¶
gittxt plugin run gittxt-streamlit
Or Manually¶
streamlit run src/plugins/gittxt_streamlit/main.py
App runs at: http://localhost:8501
โ๏ธ Hosted Version¶
Access the live app on Streamlit Cloud: ๐ gittxt.streamlit.app
This version mirrors the full CLI functionality with a polished UX.
๐ Features¶
๐ Scan GitHub Repos¶
- Input any public GitHub repository URL
 - Configure filters: 
include/exclude patterns, directory filters,.gittxtignoresupport - Set output options: 
.txt,.json,.md,--lite,--zip,--tree-depth - View summary metrics, skipped files, and non-textual assets
 - One-click downloads for all outputs (including ZIP bundle)
 
๐ง AI Repo Summary (Beta)¶
- Generate LLM-based repo summaries using OpenAI or Ollama
 - Choose Docs-Only vs Full-File mode for context
 - View token-aware context preview before analysis
 - Interact via multi-turn chat
 - Export chat history as 
.jsonor.md 
๐ Output Directory Structure¶
By default, outputs are written to:
/tmp/gittxt_streamlit_output/
โโโ txt/
โโโ json/
โโโ md/
โโโ zip/
These are cleared when the Restart button is clicked.
๐ Architecture Overview¶
The plugin is modular and mirrors the CLI tool:
src/plugins/gittxt_streamlit/
โโโ main.py                # UI router (Scan โ AI Summary)
โโโ requirements.txt
โโโ scan/                  # Scan interface
โ   โโโ app.py             # Scan UI
โ   โโโ pipeline.py        # CLI-equivalent scanner logic
โ   โโโ ui_components.py   # Filters, results, downloads
โโโ ai/                    # AI Summary interface
    โโโ ai_summary.py      # Full LLM UI
    โโโ llm_handler.py     # OpenAI / Ollama API calls
    โโโ context_builder.py # Context builder from scanned files
    โโโ chat_exporter.py   # Export markdown / json chat
โ๏ธ Plugin Management¶
You can use the plugin CLI system to install and run this plugin:
Install¶
gittxt plugin install gittxt-streamlit
Run¶
gittxt plugin run gittxt-streamlit
Dependencies in requirements.txt are auto-installed on first run.
โ ๏ธ Notes¶
- Scans call 
gittxt scanvia internal async logic, mirroring CLI behavior. - Only one scan can run per session. Restart clears prior output.
 - Chat summary is experimental โ LLM issues may occur (especially with token overflow).
 
๐ก Tips¶
- Use Docs-Only mode for faster LLM summaries
 - Toggle Advanced Filters to fine-tune file selection
 .gittxtignoreis supported with the Sync Ignore checkbox- Token counts and skipped file reasons are visible in the scan summary
 
Back: API Plugin