A comprehensive browser extension that detects and flags misinformation in real-time using 100% free, open-source AI models.
- Real-time Text Analysis: Automatically scans web pages and highlights suspicious claims
- Image Verification: Right-click context menu to verify images for manipulation
- Source Credibility: Automatic domain credibility scoring
- Cross-reference Verification: Links to existing fact-checks
- Privacy-first Design: No user tracking, all processing server-side
- Educational Insights: Tips and explanations to help users identify misinformation
- 100% Free: Zero-cost infrastructure using open-source AI
- Node.js 18+ and npm
- Chrome or Edge browser
- Free account on Render.com or Railway.app (for backend deployment)
The backend runs the AI models locally on your machine.
cd backend
npm install
npm startBackend is now running at http://localhost:3000
The extension is pre-configured to connect to your local backend.
cd extension
npm install
npm run build- Open
chrome://extensions - Turn on Developer mode (top right)
- Click Load unpacked
- Select the
truthguard-ai/extension/distfolder
That's it! Browsing a page will now trigger local analysis.
To share your extension with others, you can deploy the backend for free. See MIGRATION.md for instructions on deploying to Render.com or Railway.app.
truthguard-ai/
βββ backend/ # Node.js + Express backend
β βββ src/
β β βββ index.js # Express server
β β βββ handlers/ # API endpoints
β β βββ ml/ # AI/ML models
β β βββ data/ # JSON databases
β βββ README.md # Backend documentation
βββ extension/ # Browser extension
β βββ src/
β β βββ popup/ # Extension popup UI
β β βββ content/ # Content scripts
β β βββ background/ # Service worker
β β βββ sidepanel/ # Side panel
β β βββ utils/ # Utilities
β βββ public/ # Manifest and icons
βββ MIGRATION.md # Migration guide from Google Cloud
βββ README.md # This file
- Runtime: Node.js 18+ with Express
- AI Models: Hugging Face Transformers (@xenova/transformers)
- Credibility scoring:
facebook/bart-large-mnli - Semantic search:
Xenova/all-MiniLM-L6-v2
- Credibility scoring:
- Storage: Local JSON files (no database needed)
- Caching: In-memory with node-cache
- Hosting: Render.com / Railway.app (free tier)
- Framework: React 18 with TypeScript
- Build Tool: Vite
- UI: Tailwind CSS + Radix UI
- State: Zustand + TanStack Query
| Component | Service | Cost |
|---|---|---|
| Backend Hosting | Render.com Free Tier | $0/month |
| AI Inference | Self-hosted Transformers | $0/month |
| Storage | Local JSON files | $0/month |
| Total | $0/month |
Compare to Google Cloud setup: $50-200/month
TruthGuard AI is designed with privacy and ethics in mind:
- β No user tracking - No analytics or telemetry
- β No data persistence - Requests are not stored
- β Transparent AI - All outputs include confidence scores and explanations
- β Appropriate disclaimers - Probabilistic assessments clearly labeled
- β Open source - Full transparency in how decisions are made
- Cold start: 10-15s (model loading on first request)
- Warm requests: 2-5s (text analysis)
- Cache hits: <100ms
- Accuracy: 75-85% (vs. 90%+ with fine-tuned models)
cd backend
npm install
npm start
# Server runs on http://localhost:3000cd extension
npm install
npm run dev
# Note: Extensions require building and loading dist folder# Backend tests
cd backend
npm test
# Extension tests
cd extension
npm testSee backend/README.md for detailed API documentation.
# Analyze text
curl -X POST http://localhost:3000/analyze-text \
-H "Content-Type: application/json" \
-d '{"text": "Breaking: Scientists discover cure for all diseases!"}'
# Response
{
"score": 35,
"confidence": 0.78,
"classification": "misleading",
"explanation": "This text may contain misleading information...",
"evidence": ["Sensational language detected", "Lacks source citations"]
}- Deploy backend to Render/Railway (see MIGRATION.md)
- Update extension
.envwith production backend URL - Build extension:
npm run build - Package for Chrome Web Store:
cd extension/dist zip -r ../truthguard-extension.zip .
- Submit to Chrome Web Store
Free tier limits:
- Render.com: 750 hours/month, 512MB RAM
- Railway.app: $5 credit/month, 1GB RAM
For production scale (>100k requests/month), consider:
- Upgrading to paid tier ($7-20/month)
- Using CDN for static assets
- Implementing request rate limiting
Contributions welcome! Please read our contributing guidelines.
Edit backend/src/data/verified-claims.json:
{
"id": "claim-new",
"text": "Your verified claim",
"verdict": "true",
"sources": ["https://source.com"],
"category": "science"
}Edit backend/src/data/domain-reputation.json:
"newdomain.com": {
"score": 85,
"verified": true,
"factors": { ... }
}[Add your license here]
- Documentation: See MIGRATION.md and backend/README.md
- Issues: Open a GitHub issue
- Questions: Start a GitHub discussion
- Hugging Face for Transformers.js
- Xenova for browser-compatible ML models
- Render.com for free hosting
- Open-source community for making this possible
Note: This is a free-tier MVP suitable for hackathons, demos, and early pilots. For production use with high traffic, consider upgrading to paid hosting or implementing additional optimizations.