https://github.com/lifeart/code2prompt
Code to Prompt generator
https://github.com/lifeart/code2prompt
code-prompting code2prompt llm prompt-engineering prompt-toolkit
Last synced: 2 months ago
JSON representation
Code to Prompt generator
- Host: GitHub
- URL: https://github.com/lifeart/code2prompt
- Owner: lifeart
- License: mit
- Created: 2024-05-16T07:58:24.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T13:05:38.000Z (almost 2 years ago)
- Last Synced: 2024-10-02T12:21:10.374Z (over 1 year ago)
- Topics: code-prompting, code2prompt, llm, prompt-engineering, prompt-toolkit
- Language: TypeScript
- Homepage: https://lifeart.github.io/code2prompt/
- Size: 227 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code2Prompt
This is a simple web application that allows you to generate a prompt for a large language model (LLM) based on the contents of a GitHub repository.
## Usage
1. Enter your GitHub personal access token. This is required to access private repositories.
2. Enter the URL of the GitHub repository you want to use.
The application will then fetch the contents of the repository and generate a prompt that you can use with an LLM.
## Example
**Input:**
* GitHub URL: https://github.com/lifeart/glimmerx-workshop/tree/master
**Output:**
```
I have a GitHub repository with the following file structure:
```
```html
readme.md
[public/]
favicon.ico
[src/]
App.gts
```
```
Here are the contents of each file:
```
```hbs
Code2Prompt
```
## Development
### Prerequisites
* Node.js
* pnpm
### Installation
```
pnpm install
```
### Development Server
```
pnpm dev
```
### Building
```
pnpm build
```
### Testing
```
pnpm test
```
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.
## License
MIT