Skip to content

MjMoshiri/ai-in-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI at the TAB

Don't switch to ChatGPT (or alternative AI tabs) to do tasks related to other tabs, such as fixing grammar. With this Chrome extension, you can use AI and perform the necessary tasks in your current tab with a single click.

How to Run

To run the current version of the extension, you need a Hugging Face Pro account and an API key. If you don't have one, you can use the free version of the API, but you need to change the baseURL and model in the background.js file to a free model that supports chat.

  1. Clone the repo:

    git clone https://github.com/MjMoshiri/ai-in-browser
  2. install the dependencies:

    npm install
  3. Compile the project:

    ./compile.sh
  4. Load the extension in to Chrome using this guide

    There should be an item added to your context menu. For now, the model only has the "Correct Grammar" feature as it's my most common use case for the AI.

Code Sturcture

All files are located within the src directory:

  • background.js: Manages the context menu and communicates with the Hugging Face API.
  • content.js: Handles communication with the current tab.
  • options.js and options.html: Manage extension settings, accessible via the extension popup.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors