How anuraviikhandelwal06/zevrith works
Zevrith is a web app for investigating claims: users submit a claim, the backend retrieves web evidence, Gemini assesses it, and the report is saved and displayed with source reasoning and limitations. Users can revisit, import, delete, or clear investigation history, and read the methodology. The graph follows sampled frontend and backend calls plus README-documented capabilities and endpoints; some frontend API and storage wiring is only partially sampled.
Main entry points: main.py FastAPI routes · History.tsx History page · useInvestigationSession.tsx Investigation session · App.tsx App routes
Components 23
Claim investigation UI
- App routes
frontend/src/App.tsx - Home page
frontend/src/pages/Home.tsx - Claim form
frontend/src/components/landing/ClaimForm.tsx - Results page
frontend/src/pages/Results.tsx - Evidence report
frontend/src/components/investigation/InvestigationResults.tsx - History page
frontend/src/pages/History.tsx - Methodology page
frontend/src/pages/Methodology.tsx
Frontend state and data
- Investigation session
frontend/src/hooks/useInvestigationSession.tsx - Browser history
frontend/src/lib/history.ts - Result validation
frontend/src/lib/validation.ts - Investigation API client
frontend/src/services/investigateApi.ts - History API client
frontend/src/lib/api.ts - Date formatting
frontend/src/lib/dates.ts - Investigation types
frontend/src/types/investigation.ts
Investigation services
- FastAPI routes
backend/main.py - Claim investigation
backend/services/investigation.py - Web search
backend/services/exa_search.py
Persistent history
- Investigation record
backend/models.py - Database sessions
backend/database.py
Other components
- User
- Exa search
- Gemini analysis
- PostgreSQL
Connections 31
- User → Home page: opens
- App routes → Home page: routes to
frontend/src/App.tsx - App routes → Results page: routes to
frontend/src/App.tsx - App routes → History page: routes to
frontend/src/App.tsx - App routes → Methodology page: routes to
frontend/src/App.tsx - Home page → Claim form: renders
frontend/src/pages/Home.tsx - Claim form → Investigation API client: submits claim
frontend/src/components/landing/ClaimForm.tsx - Claim form → Investigation session: updates
frontend/src/components/landing/ClaimForm.tsx - Investigation API client → FastAPI routes: POSTs claim
frontend/src/services/investigateApi.ts - FastAPI routes → Claim investigation: investigates
backend/main.py - Claim investigation → Web search: retrieves sources
backend/services/investigation.py - Web search → Exa search: searches web
README.md - Claim investigation → Gemini analysis: assesses evidence
README.md - FastAPI routes → Investigation record: creates records
backend/main.py - FastAPI routes → Database sessions: opens sessions
backend/main.py - Database sessions → PostgreSQL: connects
backend/database.py - Investigation record → PostgreSQL: persists reports
README.md - FastAPI routes → PostgreSQL: reads and manages history
backend/main.py - Investigation session → Browser history: stores current result
frontend/src/hooks/useInvestigationSession.tsx - Results page → Investigation session: loads result
frontend/src/pages/Results.tsx - Results page → Evidence report: renders
frontend/src/pages/Results.tsx - Evidence report → Date formatting: formats dates
frontend/src/components/investigation/InvestigationResults.tsx - History page → History API client: manages saved reports
frontend/src/pages/History.tsx - History page → Browser history: loads legacy entries
frontend/src/pages/History.tsx - History page → Investigation session: opens report
frontend/src/pages/History.tsx - History API client → FastAPI routes: calls history endpoints
README.md - Investigation API client → Result validation: validates response
frontend/src/services/investigateApi.ts - Browser history → Result validation: parses stored results
frontend/src/lib/history.ts - Evidence report → Investigation types: uses result types
frontend/src/components/investigation/InvestigationResults.tsx - History page → Date formatting: formats saved dates
frontend/src/pages/History.tsx - Investigation session → Investigation types: types session result
frontend/src/hooks/useInvestigationSession.tsx