How shrisha398/origincheck works
OriginCheck is presented as a media-verification application for journalists and fact-checkers. Users enter through a landing page, register or sign in, then use a dashboard to upload media, view verification results, and consult verification history. The repository also contains a Flask backend, AI detector assets, PDF-generation and image-resizing code, plus a separate Express/MySQL authentication service. The supplied excerpts show the frontend structure and some HTTP endpoints, but not the Flask request-handling internals or the upload request, so those connections are left unasserted.
Main entry points: App.jsx View coordinator · Dashboard.jsx Dashboard shell · SignIn.jsx Sign-in form · UserDashboard.jsx Verification metrics
Components 17
Frontend experience
- View coordinator
src/App.jsx - Landing page
src/OriginCheckLanding.jsx - Sign-in form
src/SignIn.jsx - Registration form
src/Register.jsx - Dashboard shell
src/Dashboard.jsx - Verification metrics
src/UserDashboard.jsx - Upload and results
src/UploadAndVerify.jsx - Verification history
src/VerificationHistory.jsx
Authentication service
- Auth API
auth-system-mysql/server.js - MySQL connection pool
auth-system-mysql/db.js - MySQL database
Verification backend
- Flask API
backend/app.py - AI prediction
backend/predict.py - Detector model
backend/model/ai_detector.h5
Media and reports
- PDF reports
backend/pdf_generator.py - Image resizing
src/resize.py
Other components
- Visitor or user
Connections 15
- Visitor or user → View coordinator: opens application
- View coordinator → Landing page: renders
src/App.jsx - View coordinator → Sign-in form: renders
src/App.jsx - View coordinator → Registration form: renders
src/App.jsx - View coordinator → Dashboard shell: renders
src/App.jsx - View coordinator → Upload and results: renders
src/App.jsx - Visitor or user → Landing page: browses
src/OriginCheckLanding.jsx - Sign-in form → Auth API: posts login
src/SignIn.jsx - Auth API → MySQL connection pool: queries pool
auth-system-mysql/server.js - MySQL connection pool → MySQL database: connects
auth-system-mysql/db.js - Dashboard shell → Verification metrics: renders
src/Dashboard.jsx - Dashboard shell → Upload and results: renders
src/Dashboard.jsx - Dashboard shell → Verification history: renders
src/Dashboard.jsx - Verification metrics → Flask API: fetches dashboard stats
src/UserDashboard.jsx - Verification history → Flask API: fetches history
src/VerificationHistory.jsx