Skip to content

EthanThatOneKid/google-chrome-built-in-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In-Chrome AI

Google Chrome Built-in AI demo GIF

A Google Chrome Extension that provides AI-powered suggestions for text input using Gemini Nano, Google's language model in the browser.

This project is only one of the many possible applications of Chrome's built-in AI capabilities. The extension is built using Deno and TypeScript. Read more on our Devpost submission.

Development

Install Deno: https://docs.deno.com/runtime/

Format the source code:

deno fmt

Run the linter:

deno lint

Generate trial token for trial, Trial for Prompt API for Chrome Extensions.

Update the .env file with the generated token:

TRIAL_TOKEN_PROMPT_API_FOR_CHROME_EXTENSIONS=""

Generate Gemini API key (acts as a fallback solution when Gemini Nano is not available):

Update the .env file with the generated token:

GEMINI_API_KEY=""

Run the build command to bundle extension files in the unpacked directory:

deno task build

Load the unpacked extension in Google Chrome:

  1. Open the Extension Management page by navigating to chrome://extensions.
    • The Extension Management page can also be opened by clicking on the Chrome menu, hovering over More Tools then selecting Extensions.
  2. Enable Developer Mode by clicking the toggle switch next to Developer mode.
  3. Click the Load unpacked button and select the extension directory.

References


Developed during the Google Chrome Built-in AI Challenge by @EthanThatOneKid

About

✨ Google Chrome Extension that provides AI-powered suggestions for text input using Gemini Nano.

Topics

Resources

Stars

Watchers

Forks