This uses Gemini Nano API available in the context of an origin trial in Chrome with Chrome Extensions to make an extension that interprets legal documents and contracts. It gives you a simple list of red flags before you agree to the terms and conditions.
- Clone this repository.
- Run
npm install
in the project directory. - Change the API key in the manifest.json to your own API key, you can use your trial token to get your API key at (https://developer.chrome.com/docs/web-platform/origin-trials#extensions).
- Run
npm run build
in the project directory to build the extension. - Load the newly created
dist
directory in Chrome as an [unpacked extension]. - Click the extension icon.
- Interact with the Legalese extension in the sidebar.