How hruday578/threat-intelligence-saas works
This appears to be an AlertEm emergency and risk-monitoring dashboard, though the README is only a React/Vite template and does not document product capabilities. The visible workflow is user authentication into a dashboard that presents maps and risk, earthquake-response, employee, and system-log views; the large App component also uses geographic lookup. The API server and proxy files are substantial runtime components, but their internal behavior and connections to the UI are not established by the excerpts, so those relationships are left unclaimed.
Main entry points: App.jsx Dashboard App · AuthContext.jsx Auth and Membership · AuthPage.jsx Sign-in UI · index.js API Server
Components 22
Dashboard
- Dashboard App
src/App.jsx - Navigation
src/Sidebar.jsx - Radius Lookup
src/services/geoRadius.js - Country Data
src/data/countries.js - Region Data
src/data/regions.js - City Data
src/data/cities.js - Category Data
src/data/categories.js - Concept Data
src/data/concepts.js - Source Data
src/data/sources.js
Response Views
- Threat Map
src/MapsPage.jsx - Risk Assessment
src/RiskAssessmentPage.jsx - Earthquake Response
src/EarthquakeResponsePage.jsx - Employees
src/EmployeesPage.jsx - System Logs
src/SystemLogsPage.jsx
Identity and Data
- Sign-in UI
src/pages/AuthPage.jsx - Auth and Membership
src/contexts/AuthContext.jsx - Supabase Client
src/lib/supabase.js
API Services
- API Server
api/index.js - AI Proxy
api/ai-proxy.js - News Proxy
api/news-proxy.js
Other components
- User
- OpenStreetMap APIs
Connections 21
- User → Sign-in UI: submits credentials
src/pages/AuthPage.jsx - Dashboard App → Sign-in UI: renders when signed out
src/App.jsx - Sign-in UI → Auth and Membership: requests sign-in
src/pages/AuthPage.jsx - Auth and Membership → Supabase Client: auth and membership queries
src/contexts/AuthContext.jsx - Auth and Membership → Dashboard App: provides session context
src/main.jsx - Dashboard App → Navigation: renders navigation
src/App.jsx - Dashboard App → Threat Map: renders view
src/App.jsx - Dashboard App → Risk Assessment: renders view
src/App.jsx - Dashboard App → Earthquake Response: renders view
src/App.jsx - Dashboard App → Employees: renders view
src/App.jsx - Dashboard App → System Logs: renders view
src/App.jsx - Dashboard App → Country Data: uses location data
src/App.jsx - Dashboard App → Region Data: uses location data
src/App.jsx - Dashboard App → City Data: uses location data
src/App.jsx - Dashboard App → Category Data: uses category data
src/App.jsx - Dashboard App → Concept Data: uses concept data
src/App.jsx - Dashboard App → Source Data: uses source data
src/App.jsx - Dashboard App → Radius Lookup: requests radius expansion
src/App.jsx - Radius Lookup → OpenStreetMap APIs: geocodes and searches nearby
src/services/geoRadius.js - API Server → AI Proxy
- API Server → News Proxy