Canva Representation Link (click here)
AI-powered content verification platform — detect misinformation, manipulated media, and untrustworthy sources in seconds.
Built for the Menacraft Hackathon 2026 ("The Trust Crisis").
زعما صحيحة؟ — "Are these claims true?"
In today's digital age, anyone can create content that looks real, but isn't. Photos, videos, and documents can be subtly altered, AI-generated, or entirely fabricated — creating a critical gap between information and truth. Citizens, institutions, and businesses can no longer rely on what they see online.
This is not just a technical problem: it's a societal challenge. Misinformation spreads faster than fact-checking can respond. Even official documents and media reports are at risk of tampering. The result? Erosion of trust, confusion, and real-world harm.
| # | Failure mode |
|---|---|
| 1 | Manual checks are slow and labor-intensive — journalists and auditors cannot verify the flood of content in real time |
| 2 | Metadata can be forged or stripped — timestamps, location data, and device info can be manipulated to hide tampering |
| 3 | Centralized verification is limited — relying on a single authority creates bottlenecks and potential bias |
| 4 | Advanced AI-generated content bypasses simple heuristics — deepfakes and AI text/images evade basic detection |
Lumen directly addresses all four failure modes with a decentralized, parallel, multi-model AI pipeline that runs in seconds.
Lumen implements all three functional axes defined by the hackathon problem statement.
| Axis | Goal | Key signals |
|---|---|---|
| 🔬 Axis 1 — Content Authenticity | Detect whether content is real, manipulated, or AI-generated | Parallel ensemble of 6 AI services across images, videos, text, documents, and audio |
| 🧩 Axis 2 — Contextual Consistency | Detect whether content is being used in a misleading context | Caption/claim alignment, Google Fact Check lookup, LLM context analysis |
| 🏛️ Axis 3 — Source Credibility | Assess whether the source of the content can be trusted | Writing style analysis, RDAP domain age lookup, URL heuristic risk scoring |
Every result includes a verification status, a numeric confidence score (0–100%), and a plain-English explanation generated by Groq/Llama 3.
- 🖼️ Multi-format support — images (JPG/PNG/WebP), videos, plain text, documents (PDF/DOCX), and audio files
- ⚡ Parallel AI ensemble — up to 6 detection services run simultaneously; no single centralized authority
- 📊 Explainable results — every verdict shows status + confidence score + per-axis reasoning
- 🔍 Manipulation signal breakdown — specific inconsistencies and anomalies per axis
- 🏆 Community leaderboard & gamification — XP system, badges, trust score, activity calendar
- 📡 Live activity ticker — shows recent platform-wide verifications
- 🔐 Optional authentication — Supabase-backed user accounts to save verification history
- 🌍 Multilingual — English, French, and Arabic (with RTL support)
| Layer | Technology |
|---|---|
| Framework | Next.js 16.2.2 (App Router) |
| Language | TypeScript 5 |
| UI | React 19, Tailwind CSS v4, Framer Motion |
| Icons | Lucide React |
| Fonts | Space Grotesk (Latin), Cairo (Arabic) |
| Database & Auth | Supabase (PostgreSQL + GoTrue) |
| File Storage | Cloudflare R2 (S3-compatible) |
| Internationalization | next-intl (en, fr, ar) |
| Image/Video AI detection | AI or Not, Sightengine, Reality Defender |
| Audio AI detection | AI or Not, Resemble Detect, Reality Defender |
| Text AI detection | Sapling AI |
| LLM synthesis & analysis | Groq (Llama 3.3-70b) |
| Fact-checking | Google Fact Check API |
| Domain analysis | RDAP (public registry) |
| Deployment | Vercel (auto-deploy on push to main) |
| Criterion | Lumen's implementation |
|---|---|
| Clear & explainable AI output | Every result surfaces a verification status, a numeric confidence score, and a Groq/Llama 3-generated plain-English explanation |
| Intuitive & practical UX | Results page leads with a confidence ring and color-coded status; per-axis breakdowns require no expertise to interpret |
| AI-driven core | All verdicts come exclusively from AI/ML models — no manual rule lists or keyword heuristics |
| Transparency & trustworthiness | Weighted ensemble scoring is disclosed per content type; each contributing service's output is visible in the findings |
User submits content
│
▼
/axis/{authenticity|context|credibility} ← Next.js page (i18n-prefixed)
│ POST FormData
▼
/api/verify/{authenticity|context|credibility} ← Next.js API routes
│
▼
lib/{verification|context|credibility}-engine.ts ← Orchestrators
│
├── [image] AI or Not ──────┐ (parallel, Promise.allSettled)
├── [image] Sightengine ────┤
├── [image] Reality Defender┘
│
├── [video] Sightengine (native video) ──┐ (parallel)
├── [video] AI or Not (frame analysis) ──┤
├── [video] Reality Defender ────────────┘
│
├── [audio] Resemble Detect ─────┐ (parallel)
├── [audio] AI or Not ───────────┤
├── [audio] Reality Defender ────┘
├── [audio] Groq Whisper (transcription) → Sapling AI
│
├── [text/document] Sapling AI
│
└── Groq / Llama 3.3-70b ← synthesis (always)
│
▼
Weighted ensemble score → status verdict
│
▼
Cloudflare R2 (file storage) + Supabase (persist result)
│
▼
JSON response → client
| Content type | AI or Not | Sightengine | Reality Defender | Resemble Detect | Sapling | Groq |
|---|---|---|---|---|---|---|
| Image | 40% | 30% | 15% | — | — | 15% |
| Video | 25% | 40% | 20% | — | — | 15% |
| Text / Document | — | — | — | — | 65% | 35% |
| Audio | 20% | — | 20% | 40% | 10% | 10% |
Weight normalization: if an API call fails, its weight is dropped and the remaining weights are renormalized automatically so a result is always returned.
| Confidence | Verdict |
|---|---|
| < 30% | 🟢 Verified |
| 30 – 70% | 🟡 Suspicious |
| > 70% | 🔴 Fake |
| Route | Description |
|---|---|
/ |
Landing page — hero, live ticker, stats, features, how it works |
/axis/authenticity |
Axis 1 content submission form |
/axis/context |
Axis 2 content + claim submission form |
/axis/credibility |
Axis 3 source URL submission form |
/results/[id] |
Verification result detail with confidence ring and per-axis findings |
/leaderboard |
Community rankings and misinformation category stats |
/auth/login |
OAuth login via Supabase |
/dashboard |
Saved verification history (authenticated users) |
/profile |
User stats, XP, badges, activity calendar |
All routes are prefixed with a locale segment (/en/, /ar/; French is the default with no prefix).
Content-Type: multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
contentType |
"image" | "video" | "text" | "document" | "audio" |
Yes | Type of content |
file |
File |
One of three | Uploaded file |
url |
string |
One of three | Remote URL to fetch |
text |
string |
One of three | Raw text content |
File size limits: images 50 MB · videos 500 MB · documents 100 MB · text 1 MB · audio 100 MB
Same multipart fields as authenticity, plus:
| Field | Type | Required | Description |
|---|---|---|---|
claim |
string |
Yes | The claim or caption to check against the content |
| Field | Type | Required | Description |
|---|---|---|---|
url |
string |
One of two | Source URL to analyze |
text |
string |
One of two | Source text to analyze |
{
"success": true,
"data": {
"id": "uuid",
"status": "verified | suspicious | fake",
"confidence": 42.3,
"explanation": "string",
"findings": {
"authenticity": { "score": 80, "verdict": "string", "details": ["string"] },
"context": { "score": 65, "verdict": "string", "details": ["string"] },
"source": { "score": 50, "verdict": "string", "details": ["string"] }
},
"contentType": "image",
"contentUrl": null,
"fileName": "photo.jpg",
"createdAt": "2026-04-05T12:00:00.000Z"
}
}{
"success": false,
"error": "string",
"code": "MISSING_CONTENT | UNSUPPORTED_TYPE | API_ERROR | DB_ERROR"
}- Node.js 20+
- A Supabase project
- API keys (see environment variables below)
git clone https://github.com/khaledbaccour/lumen.git
cd lumen
npm installCreate .env.local in the project root:
# AI or Not (4 keys — rotated automatically on 429 rate-limit hits)
AIORNOT_API_KEY_1=
AIORNOT_API_KEY_2=
AIORNOT_API_KEY_3=
AIORNOT_API_KEY_4=
# Text AI detection
SAPLING_API_KEY=
# LLM synthesis, context analysis, credibility, audio transcription
GROQ_API_KEY=
# Image & video classification / deepfake detection
SIGHTENGINE_API_USER=
SIGHTENGINE_API_SECRET=
# Supabase
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# Cloudflare R2 file storage
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_PUBLIC_URL=
# Fact-checking (Axis 2)
GOOGLE_FACT_CHECK_API_KEY=
# Multi-modal deepfake detection (optional but recommended)
REALITY_DEFENDER_API_KEY=
# Audio deepfake detection (optional but recommended)
RESEMBLE_API_KEY=npm run dev # http://localhost:3000
npm run build
npm run startlumen/
├── app/
│ ├── api/verify/
│ │ ├── authenticity/route.ts ← Axis 1 API (main endpoint)
│ │ ├── context/route.ts ← Axis 2 API
│ │ └── credibility/route.ts ← Axis 3 API
│ └── [locale]/
│ ├── axis/{authenticity,context,credibility}/
│ ├── results/[id]/
│ ├── leaderboard/
│ ├── dashboard/
│ ├── profile/
│ └── page.tsx ← Landing page
├── components/ ← All React components
├── lib/
│ ├── verification-engine.ts ← Axis 1 orchestrator
│ ├── context-engine.ts ← Axis 2 orchestrator
│ ├── credibility-engine.ts ← Axis 3 orchestrator
│ └── services/ ← API wrappers (aiornot, sightengine, sapling,
│ groq, resemble-detect, reality-defender,
│ factcheck, rdap, url-analysis, supabase…)
├── types/verification.ts ← Shared TypeScript types
├── messages/{en,fr,ar}.json ← i18n translation files
└── public/images/ ← Static assets
MIT