How azeez11223/click-fraud-detection works
AdShield is a click-fraud detection platform with a Streamlit dashboard and FastAPI service. A user navigates the dashboard to submit click attributes or manage campaigns; page-specific API helpers send requests to the backend, which classifies clicks, records results, and exposes analytics. The product also supports model training, IP blocklists and bulk uploads, and Google/Facebook event monitoring. The source index and README establish the main module links; unsampled runtime details and some page-to-endpoint mappings are not inferred.
Main entry points: app.py Streamlit app · api.py API helpers · main.py FastAPI routes · charts.py Charts
Components 22
Dashboard
- Streamlit app
frontend/app.py - Click prediction
frontend/pages/predict.py - Campaign pages
frontend/pages/campaigns.py - Campaign detail
frontend/pages/campaign_detail.py - Dashboard analytics
frontend/pages/dashboard.py - Analytics
frontend/pages/analytics.py - Prediction history
frontend/pages/history.py - IP management
frontend/pages/ip_manager.py - Platform integrations
frontend/pages/platform_integrations.py - Realtime monitor
frontend/pages/realtime_monitor.py - Signup
frontend/pages/signup.py - Login
frontend/pages/login.py - About
frontend/pages/about.py - Charts
frontend/components/charts.py - UI styles
frontend/components/styles.py
Service API
- API helpers
frontend/components/api.py - FastAPI routes
backend/main.py - JWT authentication
backend/auth.py
Detection
- Fraud model
backend/model.py - Feature engineering
backend/preprocess.py
Persistence
- SQLite data
backend/database.py
Other components
- Dashboard user
Connections 34
- Dashboard user → Streamlit app: uses
README.md - Streamlit app → Signup: routes to
frontend/app.py - Streamlit app → Login: routes to
frontend/app.py - Streamlit app → Dashboard analytics: routes to
frontend/app.py - Streamlit app → Realtime monitor: routes to
frontend/app.py - Streamlit app → Campaign pages: routes to
frontend/app.py - Streamlit app → Campaign detail: routes to
frontend/app.py - Streamlit app → Platform integrations: routes to
frontend/app.py - Streamlit app → IP management: routes to
frontend/app.py - Streamlit app → Click prediction: routes to
frontend/app.py - Streamlit app → Analytics: routes to
frontend/app.py - Streamlit app → Prediction history: routes to
frontend/app.py - Streamlit app → About: routes to
frontend/app.py - Click prediction → API helpers: calls
frontend/pages/predict.py - Campaign pages → API helpers: calls
frontend/pages/campaigns.py - Campaign detail → API helpers: calls
frontend/pages/campaign_detail.py - Dashboard analytics → API helpers: calls
frontend/pages/dashboard.py - Analytics → API helpers: calls
frontend/pages/analytics.py - Prediction history → API helpers: calls
frontend/pages/history.py - IP management → API helpers: calls
frontend/pages/ip_manager.py - Platform integrations → API helpers: calls
frontend/pages/platform_integrations.py - Realtime monitor → API helpers: calls
frontend/pages/realtime_monitor.py - Signup → API helpers: calls
frontend/pages/signup.py - Login → API helpers: calls
frontend/pages/login.py - API helpers → FastAPI routes: HTTP requests
README.md - FastAPI routes → Fraud model: invokes
backend/main.py - FastAPI routes → SQLite data: reads and writes
backend/main.py - FastAPI routes → JWT authentication: uses
backend/main.py - Fraud model → Feature engineering: uses
backend/model.py - Dashboard analytics → Charts: uses
frontend/pages/dashboard.py - Analytics → Charts: uses
frontend/pages/analytics.py - Click prediction → Charts: uses
frontend/pages/predict.py - Charts → UI styles: applies theme
frontend/components/charts.py - Streamlit app → UI styles: applies styles
frontend/app.py