VerifAI is a Chrome extension designed to combat misinformation by allowing users to fact-check claims against trusted source materials. Simply right-click on any text, select "Verify claim with a Source", and let AI analyze whether your uploaded documents or URLs support, contradict, or provide insufficient evidence for the claim.
- Upload PDF, DOC, DOCX, TXT files
- Extract text from images using OCR (Tesseract.js)
- Fetch and parse content from URLs
- Uses OpenAI GPT-4 to provide intelligent fact-checking
- Clean, intuitive UI for managing sources and reviewing results
- PDF.js – PDF text extraction
- Mammoth.js – Word document parsing
- Readability.js – Web page content extraction
- Tesseract.js – Image OCR support
- Google Chrome browser (or any Chromium-based browser)
- OpenAI API key (get one from OpenAI)
git clone https://github.com/yourusername/verifai-extension.git
cd verifai-extensionnpm installwindow.CONFIG = {
OPENAI_API_KEY: 'your-openai-api-key-here'
};- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (toggle in the top-right)
- Click Load unpacked
- Select the extension directory
# Install dependencies
npm install
# Start development server (optional)
npm run dev
# Validate extension
npm run validate
verifai-extension/
├── manifest.json # Extension configuration
├── background.js # Context menu setup
├── panel.js # Main logic and UI interactions
├── index.html # Side panel interface
├── config.js # API key configuration
├── readability.js # Web content extraction
└── libs/ # Third-party libraries
├── pdf.min.js # PDF parsing
├── mammoth.browser.min.js # Word document parsing
└── tesseract.min.js # OCR for images
Vanilla JavaScript, HTML5, CSS3
OpenAI GPT-4 API
- Context Menus
- Side Panel
- Storage
- API Keys: Never commit your config.js file (included in .gitignore)
- Data Privacy: All processing happens client-side; only claims and source text are sent to OpenAI
- No Data Storage: No personal data is stored on external servers