https://github.com/thatguysam/prefillprompt
Turn you AI Prompts into links!
https://github.com/thatguysam/prefillprompt
chatgpt chatgpt-app openai openai-api
Last synced: 3 months ago
JSON representation
Turn you AI Prompts into links!
- Host: GitHub
- URL: https://github.com/thatguysam/prefillprompt
- Owner: ThatGuySam
- Created: 2024-06-02T20:22:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-02T15:13:47.000Z (over 1 year ago)
- Last Synced: 2024-11-29T09:42:56.793Z (over 1 year ago)
- Topics: chatgpt, chatgpt-app, openai, openai-api
- Language: Vue
- Homepage: https://prefillprompt.com/
- Size: 756 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PrefillPrompt
PrefillPrompt is a web application that generates prompt links to prefill the first message of an LLM conversation. This tool is useful for streamlining and standardizing the initial user interaction with your LLM.
## Features
- ✨ **Generate Prompt Links**: Easily create URLs that prefill the initial message in a LLM conversation.
- 🤖 **Multiple LLM Support**: ChatGPT, Claude, and Perplexity
- 🔓 **Open Source**: Built with modern web technologies and open to contributions.
- 🚀 **Built with Nuxt 3 and pnpm**: Leveraging the power of Nuxt 3 for server-side rendering and pnpm for fast, disk space-efficient package management.
## Example
Here is an example URL generated by PrefillPrompt:
```
https://prefillprompt.com/api/prompt?q=Tell%20me%20the%20Tragedy%20of%20Darth%20Plagueis%20the%20Wise
```
When visited, this link will prefill the first message of a ChatGPT conversation.
[Try it](https://prefillprompt.com/api/prompt?q=Tell%20me%20the%20Tragedy%20of%20Darth%20Plagueis%20the%20Wise)
## Installation
To run PrefillPrompt locally, follow these steps:
1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/prefillprompt.git
cd prefillprompt
```
2. **Install dependencies:**
```bash
pnpm install
```
3. **Run the development server:**
```bash
pnpm dev
```
The application will be available at `http://localhost:3000`.
## Usage
```
https://prefillprompt.com/api/prompt?q=Tell%20me%20the%20Tragedy%20of%20Darth%20Plagueis%20the%20Wise
```
This will return a URL that can be shared or embedded, allowing users to start a ChatGPT conversation with the specified initial message.
### Customizing the Prompt
You can customize the prompt by changing the value of the `q` query parameter. For example, to generate a link that starts a conversation with the prompt "Explain the benefits of TypeScript", you would use:
```
https://prefillprompt.com/api/prompt?q=Explain%20the%20benefits%20of%20TypeScript
```
## Contributing
We welcome contributions! To contribute to PrefillPrompt, follow these steps:
1. **Fork the repository:**
Click the "Fork" button on the top right of the GitHub page and clone your fork locally.
2. **Create a new branch:**
```bash
git checkout -b my-new-feature
```
3. **Make your changes:**
Implement your feature or bug fix.
4. **Commit your changes:**
```bash
git commit -am 'Add some feature'
```
5. **Push to the branch:**
```bash
git push origin my-new-feature
```
6. **Create a new Pull Request:**
Submit your PR and describe your changes.