An AI-Powered Fact-Checking Application
TruthGuard is an advanced, AI-driven fact-checking platform designed to combat misinformation and deepfakes. It analyzes text, URLs, and uploaded files to provide instant, accurate predictions on content authenticity along with a confidence score.
- Text Analysis: Paste any text snippet or article to instantly fact-check its validity.
- URL Analysis: Enter a web link to analyze an entire webpage for potential misinformation.
- File Analysis: Upload documents (PDF, TXT, DOCX) up to 10MB for comprehensive content verification.
- Detailed Insights: Get visual feedback on whether content is "Real" or "Fake", complete with a percentage-based Confidence Score.
- Interactive Dashboard: Track your analysis history, content distribution statistics, and activity over time with beautiful, interactive charts.
- Secure Authentication: User accounts and secure login powered by Firebase Authentication.
- Modern UI/UX: A stunning, responsive interface built with Tailwind CSS and Radix UI primitives, featuring smooth animations and a dark mode toggle.
- Frontend Framework: React 18 & Vite
- Styling: Tailwind CSS, Radix UI Components
- Charts: Recharts
- Icons: Lucide React
- Authentication: Firebase Auth
- Routing: React Router DOM
-
Clone the repository
git clone https://github.com/yourusername/truthguard.git cd truthguard -
Install dependencies
npm install
-
Configure Firebase
- Create a project on Firebase.
- Enable Authentication (Email/Password).
- Update your web app's configuration in
src/firebaseConfig.ts.
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173to view the application.
src/
├── components/ # Page views (Dashboard, Analysis, Auth, etc.)
├── context/ # React Context providers (UserContext)
├── ui/ # Reusable UI primitives (Buttons, Cards, Inputs)
├── styles/ # Additional style definitions
├── firebaseConfig.ts # Firebase initialization and configuration
├── App.tsx # Main application component and routing logic
├── main.tsx # Application entry point
└── index.css # Global styles and Tailwind configuration
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License.