A Streamlit web application that fetches the contents of a GitHub repository and generates a structured prompt for large language models (LLMs).
- View it live here
- Fetches repository contents using GitHub API.
- Generates a tree-like structure of the repository.
- Includes file contents in the prompt.
- User-friendly interface with sidebar for settings.
- Python 3.7 or higher
- Streamlit, requests libraries
- A GitHub Personal Access Token
- Clone the repository:
git clone https://github.com/rajofearth/github-repo-to-prompt.git
- Install dependencies:
pip install -r requirements.txt
- Obtain a GitHub Personal Access Token and save it in
api_key.txt
(Optional):your_token_here
- Add
api_key.txt
to.gitignore
to prevent it from being tracked.
- Run the app:
streamlit run app_streamlit.py
- Open a web browser and navigate to http://localhost:8501/.
- Enter a GitHub repository URL and submit to generate the prompt.
Contributions are welcome! Please open an issue or submit a pull request.
MIT License
For questions or feedback, contact [[email protected]] or visit [github.com/rajofearth].