Skip to content
This repository was archived by the owner on Jul 12, 2026. It is now read-only.

Repository files navigation

Trustify

AI-powered misinformation detection platform that analyzes content, verifies sources, and provides credibility scores to help users identify false information in real-time.

Next.js TypeScript Supabase Tailwind CSS

🎯 Overview

Trustify is a comprehensive misinformation detection platform that leverages AI to help users distinguish between factual and false information. Built with modern web technologies, it provides real-time analysis of content from URLs or text input, cross-referencing with credible sources and fact-checking organizations.

Developed during Intellithon 2025 on October 10th, 2025

✨ Features

Core Functionality

  • AI-Powered Analysis: Uses Perplexity AI models for intelligent content analysis
  • Real-time Fact-Checking: Instant verification of claims and statements
  • Source Verification: Cross-references with 60+ credible sources and fact-checkers
  • Credibility Scoring: Quantitative assessment of content reliability
  • URL & Text Analysis: Supports both web articles and direct text input
  • Chrome Extension: Browser extension for seamless web page analysis

User Experience

  • Modern UI: Clean, responsive interface built with Tailwind CSS
  • Authentication: Secure user accounts with email verification
  • Analysis History: Track and review past fact-checking results
  • Dashboard: Comprehensive overview of analysis results and statistics
  • Settings: Customizable user preferences and profile management

Technical Features

  • Streaming Responses: Real-time AI analysis with streaming updates
  • Database Integration: Supabase for user data and analysis storage
  • Email System: Automated verification and notification emails
  • Token Management: Secure authentication with automatic cleanup
  • Error Handling: Robust error management and retry mechanisms

πŸ› οΈ Tech Stack

  • Frontend: Next.js 15, React 19, TypeScript
  • Styling: Tailwind CSS 4, Radix UI components
  • Backend: Next.js API routes, Supabase
  • AI: Perplexity AI models (sonar-pro)
  • Database: PostgreSQL (via Supabase)
  • Authentication: Supabase Auth
  • Email: Resend
  • State Management: Zustand
  • Forms: React Hook Form with Zod validation

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Supabase account
  • Perplexity AI API key
  • Resend API key (for emails)

Installation

  1. Clone the repository

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

    npm install
  3. Set up environment variables

    cp .env.example .env.local

    Fill in the following variables:

    # Supabase
    NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
    SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
    
    # AI
    AI_GATEWAY_API_KEY=your_ai_gateway_key
    
    # Email
    RESEND_API_KEY=your_resend_key
  4. Set up Supabase

    npx supabase start
    npx supabase db reset
  5. Run the development server

    npm run dev
  6. Open your browser Navigate to http://localhost:3000

πŸ“– Usage

Web Application

  1. Sign up for a new account or sign in to existing account
  2. Navigate to the dashboard
  3. Enter content to analyze:
    • Paste a URL to analyze a web article
    • Type or paste text content directly
  4. Click Analyze to start the AI fact-checking process
  5. Review results including:
    • Verdict (Verified/Not Verified)
    • Credibility score
    • Source citations
    • Detailed analysis

Chrome Extension

  1. Install the extension from Chrome Web Store or load unpacked
  2. Browse any website and click the Trustify extension icon
  3. Choose analysis method:
    • Analyze current page
    • Analyze selected text
    • Paste content manually
  4. View results in overlay or full analysis page
  5. Use keyboard shortcut (Ctrl+Shift+T) for quick analysis

Advanced Features

  • Analysis History: View all past analyses in the history section
  • Settings: Customize your profile and preferences
  • Export Results: Save analysis results for future reference
  • Context Menu: Right-click integration for seamless analysis
  • Real-time Overlay: Non-intrusive results on web pages

πŸ—οΈ Project Structure

trustify/
β”œβ”€β”€ app/                    # Next.js app directory
β”‚   β”œβ”€β”€ (auth)/            # Authentication pages
β”‚   β”œβ”€β”€ (protected)/       # Protected dashboard pages
β”‚   └── api/               # API routes
β”œβ”€β”€ chrome-extension/      # Chrome browser extension
β”‚   β”œβ”€β”€ manifest.json      # Extension configuration
β”‚   β”œβ”€β”€ popup.html         # Extension popup interface
β”‚   β”œβ”€β”€ background.js      # Background service worker
β”‚   β”œβ”€β”€ content.js         # Content script for web pages
β”‚   └── icons/             # Extension icons
β”œβ”€β”€ components/            # Reusable UI components
β”‚   β”œβ”€β”€ ai-elements/       # AI-specific components
β”‚   └── ui/                # Base UI components
β”œβ”€β”€ features/              # Feature-based modules
β”‚   β”œβ”€β”€ analysis/          # Analysis functionality
β”‚   β”œβ”€β”€ auth/              # Authentication
β”‚   └── profile/           # User profile
β”œβ”€β”€ lib/                   # Utility libraries
β”‚   β”œβ”€β”€ services/          # External service integrations
β”‚   └── supabase/          # Supabase configuration
β”œβ”€β”€ hooks/                 # Custom React hooks
β”œβ”€β”€ types/                 # TypeScript type definitions
└── supabase/              # Database migrations and functions

πŸ”§ Configuration

AI Models

The application uses Perplexity's sonar-pro model by default, optimized for news verification and fact-checking.

Credible Sources

The platform maintains a database of 60+ credible sources including:

  • International news agencies (Reuters, AP, AFP)
  • Fact-checking organizations (Snopes, PolitiFact, FactCheck.org)
  • Government sources (WHO, CDC, NASA)
  • Academic sources (PubMed, Google Scholar)

Database Schema

  • profiles: User account information
  • analyses: Fact-checking results and history
  • verification_tokens: Email verification and password reset tokens

🀝 Contributing

This is a personal project, but suggestions and feedback are welcome! If you'd like to contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE.md file for details.

πŸ™ Acknowledgments

  • Team Members:

    • Beny Dishon K - Application Architecture, AI Development & Team Leader
    • Thamileelan M - Application Frontend, Tech Stack Research
    • Aravindhakshan R - Backend & DevOps Development
    • Rajarajeswari V - UI/UX Design
    • Abdul Rahman M - Chrome Extension & Research
  • Technologies: Built with Next.js, Supabase, Perplexity AI, and Tailwind CSS

  • Inspiration: Addressing the growing challenge of misinformation in digital media

πŸ“ž Contact

For questions or feedback, please open an issue on GitHub or contact the development team.


Built with ❀️ by Git Push Force

About

Trustify - AI powered misinformation detection platform that analyzes content, verifies sources, and provides credibility scores to help users identify false information in real-time.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages