VerifAI is a Chrome extension backed by a FastAPI service that helps users fact-check content without leaving the page. It turns highlighted text into structured claims, verifies them against grounded web results, and returns a clear verdict with explanations and source links.
- Fact-check highlighted text from any webpage
- Break results into individual claims with verdicts and sources
- Let users ask follow-up questions in the built-in chat view
- Include an experimental TikTok transcription and fact-checking flow that is still under development
- The user highlights text in the browser and runs VerifAI: Verify Text from the context menu.
- The extension sends the request to the local backend at
http://localhost:8000. - The backend cleans the text, uses Groq to extract checkable claims, and uses Gemini with Google Search grounding to verify them.
- The extension stores the response and shows it in the popup under Recent, History, and Chat.
For TikTok, the extension can also send captured video to the transcription pipeline before fact-checking the resulting transcript. That feature is still in development and should be treated as experimental.
- Python 3.10+
- Node.js 18+
- A Groq API key
- A Gemini API key
ffmpeginstalled and available on yourPATHif you want to use transcription features
All API keys go in server/.env. The extension does not need its own API keys for local development.
Create the file from the example:
cd server
cp .env.example .envExample server/.env:
GROQ_API_KEY=your_groq_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
ALLOWED_ORIGINS=*cd server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadOnce it is running, you can confirm the API at http://localhost:8000/health or open the docs at http://localhost:8000/docs.
cd extension
npm install
npm run devThen open chrome://extensions, enable Developer mode, click Load unpacked, and select extension/.output/chrome-mv3-dev/.
- Highlight text on a webpage
- Right-click and choose VerifAI: Verify Text
- Open the extension popup to review the latest result, past checks, and chat follow-ups
| Directory | Description |
|---|---|
extension/ |
Chrome extension built with WXT, React, and TypeScript |
server/ |
FastAPI backend for fact-checking, transcription, and chat |
