How coding-for-it/jobshield works
JobShield is a job-scam risk assessment platform with a second, dataset-analysis workflow that evaluates its rule engine. In the main workflow, job seekers use the Streamlit interface to submit an email, job URL, or company website; the API dispatches verification, which gathers evidence, detects signals, calculates a risk score, and stores the result for history and reports. The ETL workflow cleans labelled postings, scores them with the rules, loads them into MySQL, and exposes analysis through the Analytics API and UI. Some route-to-service and analytics internals are documented but unsampled, so those links rely on README evidence.
Main entry points: verification_service.py Verification service · database.py MySQL database · api_client.py HTTP client · routes API routes
Components 18
User interface
- Streamlit app
streamlit_app/app.py - HTTP client
streamlit_app/api_client.py - Analytics pages
streamlit_app/pages/5_Analytics.py
API and services
- FastAPI app
app/main.py - API routes
app/api/routes - Verification service
app/services/verification_service.py - Feature services
app/services - MySQL database
app/database.py
Verification engine
- Analyzers
app/verification - Signal detector
app/verification/signal_detector.py - Risk engine
app/verification/risk_engine.py
Data analysis
- Posting cleaner
etl/clean.py - Posting analyzer
app/verification/posting_analyzer.py - Posting loader
etl/load_postings.py - Analytics queries
app/services/analytics_service.py - SQL analysis runner
etl/run_analysis.py
Other components
- Job seeker
- Labelled postings
Connections 19
- Job seeker → Streamlit app: uses
- Streamlit app → HTTP client: calls
streamlit_app/app.py - HTTP client → API routes: sends HTTP
streamlit_app/api_client.py - FastAPI app → API routes: mounts
app/main.py - API routes → Verification service: dispatches
- API routes → Feature services: dispatches
- Verification service → Analyzers: analyzes
app/services/verification_service.py - Verification service → Signal detector: detects signals
app/services/verification_service.py - Verification service → Risk engine: scores signals
app/services/verification_service.py - Verification service → MySQL database: stores results
app/services/verification_service.py - Feature services → MySQL database: queries
app/services/company_service.py - Labelled postings → Posting cleaner: provides rows
- Posting loader → Posting cleaner: cleans postings
etl/load_postings.py - Posting loader → Posting analyzer: scores postings
etl/load_postings.py - Posting loader → MySQL database: loads postings
etl/load_postings.py - SQL analysis runner → MySQL database: queries data
- HTTP client → Analytics queries: requests analytics
- Analytics pages → HTTP client: requests results
- Analytics queries → MySQL database: queries