How 21prnv/satyacheck works
Project Type and Purpose
• SatyaCheck is a fact‑checking solution composed of two front‑end clients:
• A Next.js web application (“satyacheck‑web”) that provides a dashboard, login/auth flows, and displays historical analyses and user profiles.
• A Chrome browser extension (“satyacheck‑extension”) that runs directly in the user’s browser, scrapes the current page, submits content for verification, and shows results in a popup.
• Both clients rely on Supabase for data persistence (user accounts, audit logs, saved analyses) and on Google Gemini AI for real‑time content analysis.
File Structure
• Top level: two sibling directories, satyacheck‑web (Next.js) and satyacheck‑extension (Vite + React).
• satyacheck‑web:
• app/ directory with Next.js 13 route handlers, server‑side actions, auth callbacks, and page components.
• components/ UI & layout building blocks.
• utils/ wrappers for Supabase client (both server and browser), motion utils, middleware.
• next.config.ts, Tailwind & PostCSS configs, type configs, package.json.
• satyacheck‑extension:
• src/background.ts orchestrates extension lifecycle & messaging.
• src/content.ts injects into page context to scrape and send data.
• src/geminiClient.ts handles calls to Google Gemini AI.
• src/utils/supabaseClient.ts for writing/reading to Supabase.
• src/components/ React popup UI.
• Vite config, tsconfig files.
README for Insights
• The README explicitly calls out:
• Two main deliverables (web + extension).
• Feature list: Gemini AI integration, authenticity scoring, cross‑reference checks, author verification, Supabase storage.
• Environment variables for each client.
• This confirms a “JAMstack + serverless” architecture with no dedicated monolithic backend: Supabase provides auth, database, and edge functions; Gemini is an external AI service.