A cross-platform LLM-powered browser extension that uses Firefunction-v2 to automatically analyze website ToS agreements / privacy policies and present them in an easily understandable manner, based off of ToS;DR.
- Make sure the backend with the vector database is running
- Go to a website you want to analyze
- Use the "Store current document" button to add the current page to the vector DB (privacy policy, cookie policy, terms of service agreement, Digital Services Act, etc.)
- Choose the categories that the LLM will use to analyze the documents (legal rights, data storage and retention policies, tracking and data collection, account policies, etc.)
- Select the target platform from the "Analyze a service" menu
- Install Docker from this link
- Open a terminal and do
git clone https://github.com/mad-cat-lon/tosleuth
cd tosleuth
- Go to Fireworks.ai and obtain an API key
- Put
FIREWORKS_API_KEY = YOUR_API_KEY
and put it in.env
under/core/
docker compose build
to build the server imagedocker compose up
to start the server, CTRL+C to stop the running server- If you have made changes and want to see them in the running server, do
docker compose up --build
- To stop the container run
docker compose down
Alternatively, you can try the following at your own risk:
cd core
pip install -r requirements.txt
uvicorn server:app
cd extension
npm install
- Build instructions:
- For Firefox Manifest v2, do
npm run build:firefox
- For Chrome Manifest v3, do
npm run build:chrome
- For Firefox Manifest v2, do
If you don't want to build it locally, you can download the latest releases
- Go to
chrome://extensions/
- Click "Load unpacked"
- Navigate to the build folder (under
/extension/build
) - Select the folder
You should see the side panel open and the extension loaded.
- Go to
about:debugging#/runtime/this-firefox
- Click "Load temporary addon"
- Navigate to the extension build folder (under
/extension/build
) - Click
manifest.json
The extension should be loaded until the browser is restarted
-
Move to Manifest v3 -
Cross-platform compatibility - Auto-analysis mode, where the extension will automatically find and scrape all relevant documents when the user visits a site (50% done, improvements pending)
- Improved configurability and UX (let users set API key, etc. from UI)
- Make UI less cluttered
- Simplify architecture (run vectorDB in extension itself)