TrustLens is a browser extension that uses community collaboration to empower citizens against misinformation in real time. News websites are rated from 1-10 on reliability by the community.
- Real-time Website Rating: Rate news websites on a 1-10 scale
- Community-Driven: Crowdsourced ratings from users
- Visual Indicators: Clear visual feedback on website reliability
- Chrome Extension: Seamless integration with your browsing experience
- REST API: Backend API for data management
TrustLens/
├── backend/
│ ├── server.js # Express.js backend server
│ ├── package.json # Node.js dependencies
│ └── env.example # Environment variables template
├── extension/
│ ├── manifest.json # Chrome extension manifest
│ ├── popup.html # Extension popup interface
│ ├── popup.css # Popup styling
│ ├── popup.js # Popup functionality
│ ├── background.js # Background service worker
│ ├── content.js # Content script for page analysis
│ └── content.css # Content script styles
└── README.md
- Install Node.js dependencies:
npm install- Copy environment file:
cp env.example .env- Start the backend server:
npm startThe API will be available at http://localhost:3000
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
extension/folder - The TrustLens extension will be installed and ready to use
GET /api/rating/:domain- Get rating for a domainPOST /api/rating- Submit a rating for a domainGET /api/domains/top- Get top-rated domainsGET /api/domains/lowest- Get lowest-rated domainsGET /health- Health check endpoint
- Website Detection: The extension automatically detects when you visit news websites
- Community Ratings: Users can rate websites on a 1-10 scale
- Visual Feedback: Clear indicators show website reliability
- Real-time Updates: Ratings are updated in real-time as users vote
- 9-10: Highly Reliable
- 7-8: Mostly Reliable
- 5-6: Mixed Reliability
- 3-4: Questionable
- 1-2: Unreliable
This project was created for the HomeHack Hackathon. Feel free to contribute improvements!
MIT License