Skip to content

Arsenic-23/truthguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ TruthGuard

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.

✨ Key Features

  • 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.

🚀 Tech Stack

  • Frontend Framework: React 18 & Vite
  • Styling: Tailwind CSS, Radix UI Components
  • Charts: Recharts
  • Icons: Lucide React
  • Authentication: Firebase Auth
  • Routing: React Router DOM

🛠️ Installation & Setup

  1. Clone the repository

    git clone https://github.com/yourusername/truthguard.git
    cd truthguard
  2. Install dependencies

    npm install
  3. Configure Firebase

    • Create a project on Firebase.
    • Enable Authentication (Email/Password).
    • Update your web app's configuration in src/firebaseConfig.ts.
  4. Start the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:5173 to view the application.

📂 Project Structure

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

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📜 License

Distributed under the MIT License.

About

An AI-powered fact-checking application that analyzes text, URLs, and documents to detect misinformation and deepfakes with instant confidence scoring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors