
Advanced AI-powered tool to detect fake news from Text, Social Media, and Images in real-time.
- π‘οΈ Truth Guardian AI - Fake News Detection
| Category | Description |
|---|---|
| π Text Checker | Detects manipulated or misleading text using NLP and ML |
| πΌοΈ Image Checker | Uses Gemini AI to analyze image authenticity |
| π§΅ Social Checker | Cross-verifies social media claims using real-time search engine results |
| π Browser Ext. | Chrome Extension to detect fake news directly on websites and posts |
| π Streamlit App | Lightweight Python-based app interface for simple testing and analysis |
| π Python API | FastAPI backend for serving fake news detection APIs (text/image/social) |
| π Realtime Data | Live AI scoring system with contextual feedback |
| βοΈ SEO Optimized | Auto-generated sitemap, robots.txt, meta description |
graph TD;
A[Input News] --> B{Choose Type};
B -->|Text| C[Analyze Text];
B -->|Image| D[Analyze Image with Gemini AI];
B -->|Social Link| E[Fetch Context & Analyze];
C --> F[Score + Verdict];
D --> F;
E --> F;
F --> G[Result with Sources];
| Layer | Technology |
|---|---|
| π» Frontend | React.js, Next.js, TailwindCSS |
| π Streamlit | Python Streamlit for UI + testing |
| βοΈ Backend | Next.js API Routes, FastAPI (Python) |
| π§ AI | Google Gemini API |
| π Extension | Chrome Extension (Manifest V3) |
| βοΈ Hosting | Vercel (Frontend), Render (Backend) |
git clone https://github.com/colddsam/Fake-News-Detection.git
cd Fake-News-Detection/website
npm install
npm run devVisit: http://localhost:3000
GEMINI_API_KEY=your_gemini_api_key
ALLOWED_EXTENSION_ORIGIN=chrome-extension://your-extension-id
NEXT_PUBLIC_BASE_URL=https://yourappdomain.comThe Streamlit app is a minimal interface built for testing and rapid prototyping. Located in the frontend/ directory.
cd Fake-News-Detection/frontend
pip install -r requirements.txt
streamlit run app.pyOpen in browser: http://localhost:8501
- Simple UI to test text, image, and social media inputs
- Sends requests to the FastAPI backend
- Displays AI-based scoring and verdicts
- Lightweight and easy to modify
cd Fake-News-Detection/backend
python3 -m venv venv
source venv/bin/activate # on Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reloadBackend will run at
http://localhost:8000
- Visit
chrome://extensions/ - Enable Developer Mode
- Click Load Unpacked
- Select the
extension/folder
Defined inside layout.tsx (Next.js):
export const metadata = {
title: "Truth Guardian AI - Fake News Detection",
description: "Advanced AI tool to detect fake news from text, social media, and images",
};Other SEO tools:
next-sitemapfor sitemap & robots- Optimized metadata & OG tags
Fake-News-Detection
βββ backend/ # FastAPI Backend
β βββ main.py
β βββ search.py
β βββ verify.py
β βββ utils.py
β βββ requirements.txt
βββ frontend/ # Streamlit App (New)
β βββ app.py
β βββ requirements.txt
βββ extension/ # Browser Extension
β βββ icons/
β βββ config.js
β βββ manifest.json
β βββ popup.css
β βββ popup.html
β βββ popup.js
βββ website/ # Next.js Frontend
β βββ app/
β β βββapi/
β βββ public/
β βββ styles/
β βββ next.config.mjs
β βββ package.json
β βββ ...
βββ LICENSE
βββ README.md
βββ content.png
βββ preview.png
We welcome contributions! To get started:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name - Commit your changes:
git commit -m "Added something cool" - Push to the branch:
git push origin feature/your-feature-name - Open a Pull Request
This project is licensed under the Apache License
