Skip to content

vishaltelangre/AiText

Repository files navigation

AiText

AiText Banner

A browser extension that allows you to use AI to do anything with the selected text.

Download

Install in Chrome Install in Firefox

Or, manually download and install from the ZIP files in the latest release.

Screenshots

AiText Screenshot 1

AiText Screenshot 2

AiText Screenshot 3

AiText Screenshot 4

AiText Screenshot 5

AiText Screenshot 6

AiText Screenshot 7

Features

  • Select any text and right click to get a list of AI actions to perform with the selected text
  • Sensible and useful default context menu actions
  • Easily add custom context menu actions as needed
  • Re-generate the result differently if you don't like it
  • Ability to configure an AI provider, model, and API key
  • Support for Gemini, OpenAI, Anthropic, and DeepSeek
  • Markdown formatting for responses
  • Beautiful and simple UI
  • Cross-browser support (Firefox and Chrome)

Development Setup

Prerequisites

Development Commands

Install the dependencies:

pnpm install

To build the extension for both browsers:

pnpm build

To watch for changes and rebuild on changes for both browsers:

pnpm watch

Loading the add-on in Firefox

  1. Build the extension:
pnpm build
  1. Open Firefox and navigate to about:debugging.

  2. Click on "This Firefox" in the left sidebar.

  3. Click "Load Temporary Add-on".

  4. Select the dist-firefox/manifest.json file.

  5. The add-on should now be loaded and visible in the browser toolbar.

Loading the extension in Chrome

  1. Build the extension:
pnpm build
  1. Open Chrome and navigate to chrome://extensions.

  2. Enable "Developer mode" in the top right.

  3. Click "Load unpacked".

  4. Select the dist-chrome folder.

  5. The extension should now be loaded and visible in the browser toolbar.

Development Workflow

  1. Run the watch command to automatically rebuild on changes:

    pnpm watch
  2. After making changes and the build completes:

    • For Firefox: Go to about:debugging, find AiText and click "Reload"
    • For Chrome: Go to chrome://extensions, find AiText and click the refresh icon

Note: Temporary add-ons/extensions are removed when the browser is closed and will need to be loaded again the next time you open the browser.

Packaging

To package the extension for distribution:

pnpm package

This will:

  1. Prompt for a new version (or keep the current one)
  2. Update version in manifest.json and package.json
  3. Build the extension for both Firefox and Chrome
  4. Create the following files in the archives directory:
    • ai-text-firefox-<version>.zip - Firefox distribution package
    • ai-text-chrome-<version>.zip - Chrome distribution package
    • ai-text-source-<version>.zip - Source code package for Mozilla review

Upload the appropriate zip file to:

License

This project is licensed under the MIT License. See the LICENSE file for details.

Privacy Policy

See the privacy.md file for details.