Skip to content

robbype/PromptBuddy-Chrome-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 PromptBuddy — Chrome Extension

PromptBuddy is a Chrome Extension that helps you write better prompts on ChatGPT.
It automatically analyzes what you type and provides instant feedback and contextual hints, right above ChatGPT’s input box.


✨ Features

  • 🔍 Real-time Prompt Analysis — detects potential improvements as you type.
  • 💬 Smart Feedback Popup — shows actionable suggestions directly in ChatGPT.
  • 💡 Contextual Hint Button (ℹ️) — explains why the feedback appears.
  • 🧠 AI-powered — connected to a backend powered by FastAPI and Sentence Transformers.
  • 🎨 Non-intrusive UI — dark, minimal, and blends naturally with ChatGPT’s interface.

🧩 How It Works

  1. As you type a message in ChatGPT, the extension automatically sends your text to the backend API.
  2. The backend analyzes your prompt using a trained classifier model.
  3. If potential improvements are found, a popup appears above the input box with feedback.
  4. Clicking the ℹ️ button shows a short hint explaining the reasoning behind that feedback.

🚀 Installation (Manual / Developer Mode)

1. Clone this repository:

git clone https://github.com/robbype/PromptBuddy-Chrome-Extension.git

2. Change Backend Endpoint

By default, the extension connects to the backend API through a local FastAPI server at:

const res = await fetch("http://localhost:8000/analyze", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ text })
});

If your backend is deployed elsewhere (for example, on Render, Vercel, or via Ngrok), you need to replace the endpoint URL with your own API address inside content.js.

Example:

const res = await fetch("https://your-backend-domain.com/analyze", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ text })
});

3. Open Google Chrome, then go to:

chrome://extensions/

4. Enable Developer mode (top right corner).

5. Click “Load unpacked” and select the folder you cloned.

6. Visit chat.openai.com or chatgpt.com

The extension will automatically activate when you start typing!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published