How jbmedalla02/jobguard works
JobGuard accepts job-posting text or a URL, analyzes text and embedded links, combines those signals into a verdict and risk score, and stores each submission. Flagged postings also receive a SHA-256 evidence fingerprint in a tamper-evident local chain. Users can review results and history or verify the chain. The Next.js frontend calls the FastAPI backend server-side. Source excerpts show the analysis, persistence, and ledger interactions; some frontend and API connections are supported by the README rather than sampled implementation excerpts.
Main entry points: analyze.py Analysis endpoint · api.ts Backend client · main.py FastAPI app · history.py History endpoints
Components 19
Frontend experience
- Submission form
frontend/components/SubmitForm.tsx - Server actions
frontend/app/actions.ts - Backend client
frontend/lib/api.ts - Result view
frontend/app/result/[id]/page.tsx - History view
frontend/app/history/page.tsx - Audit view
frontend/app/audit/page.tsx
API and workflows
- FastAPI app
backend/main.py - Fetch endpoint
backend/routers/fetch_url.py - Posting scraper
backend/scraping/fetcher.py - Analysis endpoint
backend/routers/analyze.py - History endpoints
backend/routers/history.py - Chain endpoints
backend/routers/verify.py
Risk analysis
- Text classifier
backend/ml/classifier.py - URL scanner
backend/url_analysis/scanner.py - Verdict aggregator
backend/aggregator.py
Records and audit
- Submission records
backend/db/models.py - Database sessions
backend/db/database.py - Evidence hash chain
backend/blockchain/ledger.py
Other components
- Job seeker
Connections 26
- Job seeker → Submission form: enters posting
README.md - Submission form → Server actions: submits data
README.md - Server actions → Backend client: calls API
README.md - Backend client → FastAPI app: sends requests
README.md - FastAPI app → Analysis endpoint: routes requests
backend/main.py - FastAPI app → Fetch endpoint: routes requests
backend/main.py - FastAPI app → History endpoints: routes requests
backend/main.py - FastAPI app → Chain endpoints: routes requests
backend/main.py - Fetch endpoint → Posting scraper: fetches posting
- Analysis endpoint → Text classifier: classifies text
backend/routers/analyze.py - Analysis endpoint → URL scanner: scans links
backend/routers/analyze.py - Analysis endpoint → Verdict aggregator: combines signals
backend/routers/analyze.py - Verdict aggregator → Text classifier: uses confidence
backend/aggregator.py - Verdict aggregator → URL scanner: uses URL scores
backend/aggregator.py - Analysis endpoint → Database sessions: opens session
backend/routers/analyze.py - Analysis endpoint → Submission records: saves submission
backend/routers/analyze.py - Analysis endpoint → Evidence hash chain: records flagged evidence
backend/routers/analyze.py - History endpoints → Database sessions: queries records
backend/routers/history.py - History endpoints → Submission records: reads submissions
backend/routers/history.py - Chain endpoints → Evidence hash chain: checks chain
backend/routers/verify.py - Backend client → Result view: provides result data
README.md - Backend client → History view: provides history data
README.md - Backend client → Audit view: provides audit data
README.md - Result view → Job seeker: shows verdict
README.md - History view → Job seeker: shows submissions
README.md - Audit view → Job seeker: shows chain status
README.md