Skip to content

A simple text rephraser similar to Grammarly that allows you to rephrase text using any (even self-hosted) models using any customer API urls.

Notifications You must be signed in to change notification settings

ADiEmme/GRephraser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows ChatGPT Rephraser Overlay

A Windows-only Python application that provides a Grammarly-like overlay for rephrasing selected text using ChatGPT.

Features

  • System tray icon for easy access
  • Settings window (with API Key, API URL, and Prompt fields)
  • General tab in Settings includes a checkbox to start the app automatically at Windows startup.
  • Detects selected text in any application
  • Overlay UI near cursor with rephrase button
  • Uses OpenAI's ChatGPT to rephrase text
  • Copy rephrased text to clipboard
  • Floating button appears for any selection of 100+ characters, even if the clipboard content is unchanged.
  • Suggestion window includes a subtle instruction at the bottom: (Click on the green area to copy the text in your clipboard and paste it later).

Setup

Download the archive from the Release section, extract and run it (Recommended)

Or in alternative:

  1. Install Python 3.8+
  2. Install dependencies:
    pip install -r requirements.txt
  3. Run the app:
    python main.py

Usage

  • The app runs in the system tray (bottom right of your Windows taskbar).
  • Right-click the tray icon to access the menu:
    • Settings: Opens a window with two tabs:
      • General: Contains a checkbox labeled 'Start this application automatically at Windows startup'.
      • Parameters: Set your OpenAI API Key, API URL, and the prompt used for rephrasing. These are saved to settings.json and used for all requests.
    • Exit: Closes the app.
  • Select text anywhere in Windows (minimum 100 characters).
  • Click the floating button or use the hotkey to rephrase.
  • The overlay appears with the rephrased text, which you can click anywhere in the green area to copy.
  • Instruction: At the bottom of the green window, you'll see: (Click on the green area to copy the text in your clipboard and paste it later).

Settings

  • Settings are stored in settings.json in the app directory.
  • You can change the API key, API URL, and prompt at any time via the Settings window.
  • The General tab includes a checkbox to enable or disable starting the app at Windows startup.
  • Changes take effect immediately after saving.

HTTP Debugging

If you want to see the full URL and details of API requests (for troubleshooting), HTTP debugging is enabled by default. You will see detailed request logs in your console output.

Known Limitations

  • Taskbar Icon: Due to Windows and PyQt5 limitations, the settings window may not always show your custom icon in the taskbar, even though the tray icon and window icon are set. This is a known issue for tray-only apps.

Troubleshooting

  • If you get a 404 or authentication error, double-check your API URL and API key in the settings window.
  • If you change settings and they do not take effect, restart the app.

Binary file creation:

python -m PyInstaller --onefile --noconsole --name grephraser --icon=icon.ico main.py

License

MIT

About

A simple text rephraser similar to Grammarly that allows you to rephrase text using any (even self-hosted) models using any customer API urls.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages