AI Shield is a production-ready, enterprise-grade full-stack platform designed to detect and verify deepfakes, AI-generated images, and manipulated digital media. The platform combines state-of-the-art vision-language models (SigLIP) with digital image forensics (Error Level Analysis (ELA), Grad-CAM Heatmaps, and Metadata Extraction) to provide explainable, high-confidence authenticity assessments.
DEMO_MODE=true) automatically seeds a demo admin account ([email protected] / demo) and provides graceful AI fallback inference if custom model weights are absent.AI Shield is structured into two autonomous, highly scalable components:
+-----------------------------------------------------------------------------------+
| FRONTEND CLIENT (Vite SPA) |
| React 19 | TypeScript | Tailwind CSS v4 | TanStack Router & Query | Zustand |
+-----------------------------------------------------------------------------------+
| (REST HTTP API - Axios + JWT Auth) ^ (Real-Time Progress Stream)
v | (WebSockets - Async)
+-----------------------------------------------------------------------------------+
| BACKEND SERVER (FastAPI Python) |
| +--------------------+ +--------------------+ +-----------------------------+ |
| | API Layer (v1) | | Service Layer | | Repository Layer (SQLAlchemy)| |
| +--------------------+ +--------------------+ +-----------------------------+ |
+-----------------------------------------------------------------------------------+
| (Async Tasks) | (Async ORM Access)
v v
+-----------------------------------------------------------------------------------+
| AI FORENSIC & INFERENCE ENGINE |
| SigLIP Detector (Hugging Face) | ELA Compression | Grad-CAM Overlay | EXIF Parser |
+-----------------------------------------------------------------------------------+
| (SQLAlchemy / Alembic)
v
+-------------------------+
| SQLite / PostgreSQL DB |
+-------------------------+
d:/Deepfake/
โโโ backend/ # Python FastAPI Backend API
โ โโโ alembic/ # Database Migrations (Alembic)
โ โโโ app/
โ โ โโโ api/v1/ # REST Endpoints (auth, users, analysis, dashboard, ws, etc.)
โ โ โโโ core/ # Infrastructure (config, db, security, logging, exceptions)
โ โ โโโ models/ # SQLAlchemy Async ORM Models
โ โ โโโ schemas/ # Pydantic v2 Validation Schemas
โ โ โโโ repositories/ # Data Access Layer (Repository Pattern)
โ โ โโโ services/ # Business Logic Layer
โ โ โโโ tasks/ # Asynchronous Background Processing
โ โโโ ai/ # AI Detection Modules
โ โ โโโ inference/ # SigLIP Detector & Fallback
โ โ โโโ forensics/ # ELA & Metadata Extraction
โ โ โโโ gradcam/ # Heatmap Generator
โ โ โโโ pipeline.py # Unified AI Orchestrator
โ โโโ uploads/ # Media Storage (Uploaded, ELA, GradCAM, Reports)
โ โโโ requirements.txt # Python Dependencies
โ โโโ seed.py # Database Demo Seeder
โโโ frontend/ # React 19 + TypeScript + Vite SPA
โ โโโ src/
โ โ โโโ components/ # Layout, Common & shadcn/ui Primitives
โ โ โโโ features/ # Feature Modules (auth, dashboard, upload, results, history, etc.)
โ โ โโโ hooks/ # Custom React Hooks (WebSockets, progress, mobile)
โ โ โโโ layouts/ # Layout Wrappers (Sidebar, Header, BackgroundGlow)
โ โ โโโ lib/ # Axios Client, Utility classes & Error Handling
โ โ โโโ routes/ # TanStack Type-Safe Route Definitions
โ โ โโโ services/ # REST API Service Connectors
โ โ โโโ stores/ # Zustand Client State Management
โ โโโ package.json
โ โโโ vite.config.ts
โโโ docs/ # Comprehensive Technical Documentation Suite
โ โโโ ARCHITECTURE.md # High-Level Architecture & Design Patterns
โ โโโ API_DOCUMENTATION.md # Exhaustive REST API Specification
โ โโโ DATABASE_SCHEMA.md # ER Diagram, Models & Migration Guide
โ โโโ AI_PIPELINE.md # SigLIP, ELA & Grad-CAM Specifications
โ โโโ UPLOAD_RESULT_FLOW.md # Ingestion to Report Sequence Diagrams
โ โโโ WEBSOCKET_EVENTS.md # Real-Time WebSocket Streaming Protocol
โ โโโ PROJECT_REPORT.md # Comprehensive Project Evaluation Report
โโโ .env.example # Centralized Environment Variables Example
โโโ docker-compose.yml # Multi-Container Deployment Configuration
โโโ README.md # Project Overview & Quickstart Guide
# Navigate to backend directory
cd backend
# Create virtual environment
python -m venv venv
# Activate virtual environment (Windows Powershell)
.\venv\Scripts\Activate.ps1
# Install dependencies
pip install -r requirements.txt
# Run database migrations
alembic upgrade head
# Seed demo user account ([email protected] / demo)
python seed.py
# Start FastAPI development server
uvicorn app.main:app --reload --port 8000
# Open a new terminal and navigate to frontend directory
cd frontend
# Install Node dependencies
npm install
# Start Vite development server
npm run dev
The application will be accessible at http://localhost:5173. Sign in with [email protected] and password demo.
Copy the .env.example file to .env in the backend/ directory to configure the application.
# Backend Environment Settings
PROJECT_NAME="AI Shield"
VERSION="1.0.0"
API_V1_STR="/api/v1"
CORS_ORIGINS=["http://localhost:5173", "http://127.0.0.1:5173"]
# Security
SECRET_KEY="your-super-secret-key-for-jwt-signing"
ACCESS_TOKEN_EXPIRE_MINUTES=1440
# Database
DATABASE_URL="sqlite+aiosqlite:///./aishield.db"
# AI Inference & Behavior
DEMO_MODE=True
MODEL_NAME="prithivMLmods/deepfake-detector-model-v1"
(Insert your hackathon presentation screenshots here)
To present AI Shield flawlessly during a demo:
[email protected] (pw: demo).tests/samples/) into the upload zone.Explore the /docs directory for deep technical specifications:
Built by the AI Shield Team for digital forensics, media integrity verification, and ethical AI research.
AI Shield is released under the MIT License.
Important Notice: The AI Shield platform integrates the prithivMLmods/deepfake-detector-model-v1 (SigLIP) model hosted on Hugging Face for demonstration and architectural validation purposes.
AI Shield is a production-ready, enterprise-grade full-stack platform designed to detect and verify deepfakes, AI-generated images, and manipulated digital media. The platform combines state-of-the-art vision-language models (SigLIP) with digital image forensics (Error Level Analysis (ELA), Grad-CAM Heatmaps, and Metadata Extraction) to provide explainable, high-confidence authenticity assessments.
DEMO_MODE=true) automatically seeds a demo admin account ([email protected] / demo) and provides graceful AI fallback inference if custom model weights are absent.AI Shield is structured into two autonomous, highly scalable components:
+-----------------------------------------------------------------------------------+
| FRONTEND CLIENT (Vite SPA) |
| React 19 | TypeScript | Tailwind CSS v4 | TanStack Router & Query | Zustand |
+-----------------------------------------------------------------------------------+
| (REST HTTP API - Axios + JWT Auth) ^ (Real-Time Progress Stream)
v | (WebSockets - Async)
+-----------------------------------------------------------------------------------+
| BACKEND SERVER (FastAPI Python) |
| +--------------------+ +--------------------+ +-----------------------------+ |
| | API Layer (v1) | | Service Layer | | Repository Layer (SQLAlchemy)| |
| +--------------------+ +--------------------+ +-----------------------------+ |
+-----------------------------------------------------------------------------------+
| (Async Tasks) | (Async ORM Access)
v v
+-----------------------------------------------------------------------------------+
| AI FORENSIC & INFERENCE ENGINE |
| SigLIP Detector (Hugging Face) | ELA Compression | Grad-CAM Overlay | EXIF Parser |
+-----------------------------------------------------------------------------------+
| (SQLAlchemy / Alembic)
v
+-------------------------+
| SQLite / PostgreSQL DB |
+-------------------------+
d:/Deepfake/
โโโ backend/ # Python FastAPI Backend API
โ โโโ alembic/ # Database Migrations (Alembic)
โ โโโ app/
โ โ โโโ api/v1/ # REST Endpoints (auth, users, analysis, dashboard, ws, etc.)
โ โ โโโ core/ # Infrastructure (config, db, security, logging, exceptions)
โ โ โโโ models/ # SQLAlchemy Async ORM Models
โ โ โโโ schemas/ # Pydantic v2 Validation Schemas
โ โ โโโ repositories/ # Data Access Layer (Repository Pattern)
โ โ โโโ services/ # Business Logic Layer
โ โ โโโ tasks/ # Asynchronous Background Processing
โ โโโ ai/ # AI Detection Modules
โ โ โโโ inference/ # SigLIP Detector & Fallback
โ โ โโโ forensics/ # ELA & Metadata Extraction
โ โ โโโ gradcam/ # Heatmap Generator
โ โ โโโ pipeline.py # Unified AI Orchestrator
โ โโโ uploads/ # Media Storage (Uploaded, ELA, GradCAM, Reports)
โ โโโ requirements.txt # Python Dependencies
โ โโโ seed.py # Database Demo Seeder
โโโ frontend/ # React 19 + TypeScript + Vite SPA
โ โโโ src/
โ โ โโโ components/ # Layout, Common & shadcn/ui Primitives
โ โ โโโ features/ # Feature Modules (auth, dashboard, upload, results, history, etc.)
โ โ โโโ hooks/ # Custom React Hooks (WebSockets, progress, mobile)
โ โ โโโ layouts/ # Layout Wrappers (Sidebar, Header, BackgroundGlow)
โ โ โโโ lib/ # Axios Client, Utility classes & Error Handling
โ โ โโโ routes/ # TanStack Type-Safe Route Definitions
โ โ โโโ services/ # REST API Service Connectors
โ โ โโโ stores/ # Zustand Client State Management
โ โโโ package.json
โ โโโ vite.config.ts
โโโ docs/ # Comprehensive Technical Documentation Suite
โ โโโ ARCHITECTURE.md # High-Level Architecture & Design Patterns
โ โโโ API_DOCUMENTATION.md # Exhaustive REST API Specification
โ โโโ DATABASE_SCHEMA.md # ER Diagram, Models & Migration Guide
โ โโโ AI_PIPELINE.md # SigLIP, ELA & Grad-CAM Specifications
โ โโโ UPLOAD_RESULT_FLOW.md # Ingestion to Report Sequence Diagrams
โ โโโ WEBSOCKET_EVENTS.md # Real-Time WebSocket Streaming Protocol
โ โโโ PROJECT_REPORT.md # Comprehensive Project Evaluation Report
โโโ .env.example # Centralized Environment Variables Example
โโโ docker-compose.yml # Multi-Container Deployment Configuration
โโโ README.md # Project Overview & Quickstart Guide
# Navigate to backend directory
cd backend
# Create virtual environment
python -m venv venv
# Activate virtual environment (Windows Powershell)
.\venv\Scripts\Activate.ps1
# Install dependencies
pip install -r requirements.txt
# Run database migrations
alembic upgrade head
# Seed demo user account ([email protected] / demo)
python seed.py
# Start FastAPI development server
uvicorn app.main:app --reload --port 8000
# Open a new terminal and navigate to frontend directory
cd frontend
# Install Node dependencies
npm install
# Start Vite development server
npm run dev
The application will be accessible at http://localhost:5173. Sign in with [email protected] and password demo.
Copy the .env.example file to .env in the backend/ directory to configure the application.
# Backend Environment Settings
PROJECT_NAME="AI Shield"
VERSION="1.0.0"
API_V1_STR="/api/v1"
CORS_ORIGINS=["http://localhost:5173", "http://127.0.0.1:5173"]
# Security
SECRET_KEY="your-super-secret-key-for-jwt-signing"
ACCESS_TOKEN_EXPIRE_MINUTES=1440
# Database
DATABASE_URL="sqlite+aiosqlite:///./aishield.db"
# AI Inference & Behavior
DEMO_MODE=True
MODEL_NAME="prithivMLmods/deepfake-detector-model-v1"
(Insert your hackathon presentation screenshots here)
To present AI Shield flawlessly during a demo:
[email protected] (pw: demo).tests/samples/) into the upload zone.Explore the /docs directory for deep technical specifications:
Built by the AI Shield Team for digital forensics, media integrity verification, and ethical AI research.
AI Shield is released under the MIT License.
Important Notice: The AI Shield platform integrates the prithivMLmods/deepfake-detector-model-v1 (SigLIP) model hosted on Hugging Face for demonstration and architectural validation purposes.