TruthLens AI

byNikhil

Build a modern SaaS web application called TruthLens AI. Purpose: Users upload images, videos, or audio files and receive AI-powered deepfake analysis. Requirements: 1. Beautiful landing page 2. Upload section 3. AI analysis dashboard 4. Trust score gauge 5. Deepfake indicators section 6. Fact-check panel 7. Evidence report generator 8. Responsive mobile-first design 9. Dark mode 10. Professional cybersecurity aesthetic Tech Stack: - Next.js 15 - TypeScript - Tailwind CSS - Shadcn UI - Supabase - Gemini API Pages: - Home - Dashboard - Upload - Analysis Results Output: Generate complete production-ready code with folder structure, components, API routes, and setup instructions.

Home
Home

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document

TruthLens AI System Requirements Document

Introduction

TruthLens AI is a modern SaaS web application designed to provide users with AI-powered deepfake analysis. Users can upload images, videos, or audio files and receive a comprehensive analysis, including a trust score and deepfake indicators. This document outlines the system requirements for TruthLens AI, ensuring a unique and distinctive user interface design.

System Overview

TruthLens AI aims to offer a seamless and intuitive experience for users seeking to verify the authenticity of digital media. The application will feature a beautiful landing page, an upload section for media files, an AI analysis dashboard, and various tools to assess and report on the authenticity of the content. The design will prioritize a responsive, mobile-first approach with a professional cybersecurity aesthetic.

Page 1 of 5

Functional Requirements

  • As a User, I should be able to upload images, videos, or audio files for analysis.
  • As a User, I should be able to view a beautiful landing page that introduces the service.
  • As a User, I should be able to access an AI analysis dashboard to view results.
  • As a User, I should be able to see a trust score gauge indicating the likelihood of deepfake content.
  • As a User, I should be able to view deepfake indicators that highlight suspicious elements.
  • As a User, I should be able to access a fact-check panel for additional verification.
  • As a User, I should be able to generate an evidence report based on the analysis.
  • As a User, I should be able to switch to a dark mode for a more comfortable viewing experience.
  • As a User, I should experience a responsive design that works well on mobile devices.

User Personas

  • General User: Individuals interested in verifying the authenticity of digital media.
  • Content Creator: Professionals who need to ensure their content is genuine and trustworthy.
  • Security Analyst: Experts who require detailed analysis and reporting on digital media authenticity.
Page 2 of 5

Core User Flows

  • User visits the landing page -> uploads media file -> AI processes the file -> User views analysis results on the dashboard.
  • User checks trust score -> reviews deepfake indicators -> accesses fact-check panel -> generates evidence report.
  • User toggles dark mode -> continues analysis in a comfortable viewing environment.

Visuals Colors and Theme

  • primary: #1A73E8 (Deep Blue)
  • primary_light: #4D90FE (Light Blue)
  • secondary: #FF6F61 (Coral)
  • accent: #FFD700 (Gold)
  • highlight: #FFA500 (Orange)
  • bg: #F5F5F5 (Light Gray)
  • surface: rgba(255, 255, 255, 0.9) (White)
  • text: #333333 (Dark Gray)
  • text_muted: #777777 (Muted Gray)
  • border: rgba(200, 200, 200, 0.5) (Light Gray)
Page 3 of 5

Signature Design Concept

The TruthLens AI homepage will feature an interactive 3D globe that users can rotate and explore. Each continent will represent a different section of the site, such as Upload, Dashboard, and Analysis Results. As users hover over a continent, it will highlight and provide a brief description of the section. Clicking on a continent will smoothly transition the user to the respective page. This concept will be implemented using @react-three/fiber and @react-three/drei for a dynamic and engaging experience.

Interaction Model & Motion Direction

  • Landing/Home Page: Parallax interaction model with layered depth via scroll. Decorative layers will translate at different speeds, creating a visually rich first impression.
  • Internal Pages: Animated interaction model with moderate scroll-triggered reveals and hover transitions for a polished user experience.

Non-Functional Requirements

  • The application must be highly responsive and optimized for mobile devices.
  • The system should ensure data privacy and security, adhering to industry standards.
  • The UI should maintain a professional and consistent cybersecurity aesthetic.
Page 4 of 5

Tech Stack

  • Frontend: Next.js 15, TypeScript, Tailwind CSS, Shadcn UI
  • Backend: Supabase
  • AI Models: Gemini API

Assumptions and Constraints

  • The application will be hosted on a cloud platform to ensure scalability.
  • The AI analysis will rely on the Gemini API for deepfake detection.
  • The design will prioritize a mobile-first approach to cater to a wide range of devices.

Glossary

  • Deepfake: A synthetic media in which a person in an existing image or video is replaced with someone else's likeness.
  • Trust Score: A numerical representation of the likelihood that a piece of media is genuine.
  • Fact-check Panel: A feature that provides additional verification and context for the analyzed media.
Page 5 of 5
Home design preview
Home: View Landing
Upload: Select Media
Upload: Submit Content
Dashboard: View Results
Dashboard: Check Trust Score
Dashboard: Review Indicators
Dashboard: Access Fact-Check
Dashboard: Generate Report
Dashboard: Download Evidence
Dashboard: Toggle Dark Mode
Home design preview
Home: View Landing
Upload: Select Media
Upload: Submit Content
Dashboard: View Results
Dashboard: Check Trust Score
Dashboard: Review Indicators
Dashboard: Access Fact-Check
Dashboard: Generate Report
Dashboard: Download Evidence
Dashboard: Toggle Dark Mode