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.
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:
- 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 selectingExtensions
.
- The Extension Management page can also be opened by clicking on the Chrome
menu, hovering over
- Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the
Load unpacked
button and select the extension directory.
- https://googlechromeai.devpost.com/resources
- https://developer.chrome.com/docs/extensions/develop/ui/context-menu
- https://developer.chrome.com/docs/extensions/ai/prompt-api
- https://developer.chrome.com/docs/ai/built-in
Developed during the Google Chrome Built-in AI Challenge by @EthanThatOneKid