TextCraft is a Chrome extension that uses OpenAI's GPT-3 model to transform text in a more human-like style and correct grammatical errors. Users can select text while browsing, click on the TextCraft button, and the extension will provide a re-written version of the text.
- Text Generation: Utilizes OpenAI's GPT-3 model to rewrite selected text in a more human-like style, and corrects any grammatical errors.
- Context Menu: Provides an option to use TextCraft directly from the context menu (right-click menu).
- Replace Text: Replaces the selected text on the webpage with the generated text.
- Regenerate: Allows users to regenerate the text if they are not satisfied with the result.
- Clone this repository:
git clone https://github.com/yourusername/textcraft.git
- Navigate to
chrome://extensions
in your Chrome browser. - Enable "Developer mode" at the top-right.
- Click on "Load unpacked" and select the
dist
folder of this repository.
- Select some text on a webpage.
- Click on the TextCraft button that appears near the selected text.
- In the popup, you will see the generated text.
- You can click on "Replace" to replace the original text on the webpage with the generated text, or click on "Regenerate" to generate new text.
Users can configure the OpenAI API key and set a custom prompt for the text generation by clicking on the extension icon and selecting "Options". The settings are stored locally in the user's Chrome browser.
If you would like to contribute to this project, feel free to submit a pull request.
This project is licensed under the MIT License.