BrowserGPT uses LLMs APIs to control your browser and perform repetitive actions on your behalf, via a chat interface. It's a Chrome extension.
- Ensure you have Node.js >= 16.
- Clone this repository
- Run
npm install
to install the dependencies - Run
npm run build
to build the package - Load your extension on Chrome by doing the following:
- Navigate to chrome://extensions/
- Toggle Developer mode
- Click on Load unpacked extension
- Select the build folder that
npm run build
generated
- Open a web page
- Open the extension
- Click on "Print HTML"
- From the DevTools, copy the result in the log to
visibleNodes.json
- Run
npm run html_to_summary <HTML file at ./dev/testresources/>
Chrome DevTools: Go to chrome://extensions
, enable "Developer mode", and click "Inspect views background page" under the extension. This opens a dedicated DevTools window for the background script.