How icancodefyi/sniffer-ahmedabad works
Sniffer Forensics is a media-authenticity analysis application: users upload image, video, or PDF evidence, the backend runs forensic checks and returns a scored, explainable report, and the frontend presents that result. The main request and analysis flow is documented in the README and supported by the sampled API and pipeline excerpts. The pipeline excerpt is partial, so internal signal wiring beyond the visible orchestration is represented at subsystem level. The tree does not show a persistent result store; no storage component is inferred.
Main entry points: pipeline.py Pipeline orchestration · main.py Analyze endpoint · page.tsx Upload interface · analyze.ts Analysis client
Components 18
Web application
- Upload interface
src/app/analyze/page.tsx - Media selection
components/dropzone.tsx - Analysis client
lib/analyze.ts - Product introduction
src/app/page.tsx
Analysis API
- Analyze endpoint
services/analysis/main.py
Forensic analysis
- Pipeline orchestration
services/analysis/pipeline.py - Media validation
services/analysis/util.py - Video sampling
services/analysis/video.py - Forensic signals
services/analysis/signals - C2PA provenance
services/analysis/signals/c2pa.py - Score and verdict
services/analysis/score.py
Results and guidance
- Result view
src/app/result/[id]/page.tsx - Evidence report
components/report.tsx - Signal breakdown
components/signal-table.tsx - Confidence display
components/confidence-gauge.tsx - Method explanation
src/app/method/page.tsx - Platform directory
src/app/supported-platforms/SupportedPlatformsClient.tsx
Other components
- Investigator
Connections 18
- Investigator → Upload interface: submits media
- Upload interface → Media selection: selects files
- Upload interface → Analysis client: requests analysis
- Analysis client → Analyze endpoint: sends multipart
- Analyze endpoint → Media validation: validates media
- Analyze endpoint → Pipeline orchestration: passes bytes
- Pipeline orchestration → Video sampling: samples frames
- Pipeline orchestration → Forensic signals: runs checks
- Pipeline orchestration → C2PA provenance: checks credentials
- Pipeline orchestration → Score and verdict: fuses signals
- Pipeline orchestration → Analyze endpoint: returns analysis
- Analysis client → Result view: provides result
- Result view → Evidence report: renders evidence
- Evidence report → Signal breakdown: shows signals
- Evidence report → Confidence display: shows confidence
- Investigator → Product introduction: explores product
- Investigator → Method explanation: reads methodology
- Investigator → Platform directory: checks platforms