An open API service indexing awesome lists of open source software.

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!

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.