The Better Prompt Generator is a Chrome extension designed to enhance user-generated prompts using Azure AI's GPT-4o-mini model. This extension communicates with a server hosted on Render, which leverages Azure AI Inference SDK to refine and improve the prompts.
🚀 Check it out on the Chrome Web Store
- 📝 Accepts user input in the form of text prompts
- 🔄 Sends the input to an Azure AI-powered server for enhancement
- 💡 Displays the improved prompt directly in the extension interface
- 📋 Provides the option to copy the improved prompt to the clipboard
- User enters a prompt in the extension's popup
- Extension sends the prompt to a server hosted on Render
- Server processes the prompt using Azure AI's GPT-4o-mini model and returns an improved version
- Extension displays the refined prompt, which can be copied with a single click
- Chrome Extension: Built with HTML, CSS, and JavaScript
- Server: Node.js server with Express, hosted on Render
- Azure AI: Utilizes the GPT-4o-mini model via Azure AI Inference SDK
- Environment Variables: Uses dotenv for managing environment variables
- Clone this repository to your local machine:
git clone https://github.com/your-repo/better-prompt-generator.git
- Open Google Chrome and navigate to
chrome://extensions
- Enable "Developer Mode" in the top right corner
- Click on "Load unpacked" and select the folder where you cloned the repository
- Navigate to the
server
directory and install the necessary dependencies:cd server npm install
- Create a
.env
file in theserver
folder and add the following environment variables:GITHUB_TOKEN=your_azure_ai_key_here PORT=3000
- Run the server:
The server will be running on
npm start
http://localhost:3000
manifest.json
: Chrome extension configurationbackground.js
: Background script for the extensionpopup.html
: HTML structure for the extension popuppopup.js
: JavaScript for handling user interactions in the popupserver.js
: Node.js server script for handling prompt improvement requests
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
If you encounter any issues or have questions, please open an issue on our GitHub repository.