How aldoesp/heatmap works
This is a Wi-Fi heatmapping and survey application: users upload floor plans, mark access points or survey locations, collect Wi-Fi scans, then inspect history, analysis, and heatmaps. The frontend is a hash-routed React app backed by an Express API and SQLite. The sampled code shows scan normalization and persistence, plan management, and data access; the tree and source index identify additional survey, analysis, settings, and mapping capabilities. Some route wiring and unsampled feature internals are therefore shown only as unverified links.
Main entry points: App.tsx App and routing · api.ts API client · index.js API routing · surveys.service.js Survey service
Components 34
Frontend experience
- App and routing
frontend/src/App.tsx - API client
frontend/src/lib/api.ts
Plans and surveys
- Plan upload
frontend/src/components/upload/UploadPage.tsx - Survey library
frontend/src/components/surveys/SurveysLibraryPage.tsx - Survey capture
frontend/src/components/surveys/SurveysPage.tsx - Plan state
frontend/src/hooks/usePlanStore.ts - Survey data
frontend/src/hooks/useSurveysLibrary.ts - Plan operations
backend/src/controllers/plans.controller.js - Survey operations
backend/src/controllers/surveys.controller.js - Plan file service
backend/src/services/plans.service.js - Survey service
backend/src/services/surveys.service.js
Wi-Fi collection
- Scan workspace
frontend/src/components/scan/ScanPage.tsx - Scan state
frontend/src/hooks/useScanStore.ts - Scan operations
backend/src/controllers/scan.controller.js - Scan normalization
backend/src/services/scan.services.js - Device scan source
backend/src/services/termuxscaninfo.service.js - Connection details
backend/src/services/connection.service.js - Speed measurement
backend/src/services/iperf.service.js - Wi-Fi interpretation
backend/src/utils/wifi.utils.js
Analysis and settings
- Heatmap view
frontend/src/components/heatmap/HeatmapPage.tsx - Analysis view
frontend/src/components/analyse/AnalysePage.tsx - Settings view
frontend/src/components/settings/SettingsPage.tsx - Analysis operations
backend/src/controllers/analysis.controller.js - Settings operations
backend/src/controllers/settings.controller.js
API and persistence
- API routing
backend/src/api/index.js - Scan history
backend/src/repositories/scans.repository.js - Scan locations
backend/src/repositories/scanPoints.repository.js - BSSID rules
backend/src/repositories/bssidRules.repository.js - Plan records
backend/src/repositories/plans.repository.js - Survey records
backend/src/repositories/surveys.repository.js - SQLite database
backend/src/database/db.js
Other components
- Operator
- Android scan provider
- iperf3 server
Connections 46
- Operator → App and routing: uses
- App and routing → Plan upload: routes to
frontend/src/App.tsx - App and routing → Scan workspace: routes to
frontend/src/App.tsx - App and routing → Survey library: routes to
frontend/src/App.tsx - App and routing → Survey capture: routes to
frontend/src/App.tsx - App and routing → Heatmap view: routes to
frontend/src/App.tsx - App and routing → Analysis view: routes to
frontend/src/App.tsx - App and routing → Settings view: routes to
frontend/src/App.tsx - Plan upload → Plan state: manages
- Scan workspace → Scan state: manages
- Survey library → Survey data: loads
- Survey capture → Survey data: loads
- Plan state → API client: calls
frontend/src/hooks/usePlanStore.ts - Scan state → API client: calls
frontend/src/hooks/useScanStore.ts - Survey data → API client: calls
frontend/src/hooks/useSurveysLibrary.ts - Heatmap view → API client: requests data
frontend/src/components/heatmap/HeatmapPage.tsx - Settings view → API client: requests data
frontend/src/components/settings/SettingsPage.tsx - Analysis view → API client: requests data
- API client → API routing: sends HTTP
- API routing → Plan operations: dispatches
- API routing → Scan operations: dispatches
- API routing → Survey operations: dispatches
- API routing → Analysis operations: dispatches
- API routing → Settings operations: dispatches
- Plan operations → Plan file service: validates files
backend/src/controllers/plans.controller.js - Plan operations → Plan records: reads and writes
backend/src/controllers/plans.controller.js - Plan operations → Scan locations: deletes points
backend/src/controllers/plans.controller.js - Survey operations → Survey service: delegates
backend/src/controllers/surveys.controller.js - Scan operations → Scan normalization: normalizes scan
backend/src/controllers/scan.controller.js - Scan operations → Scan locations: finds location
backend/src/controllers/scan.controller.js - Scan operations → Scan history: saves and reads
backend/src/controllers/scan.controller.js - Scan operations → Speed measurement: measures speed
backend/src/controllers/scan.controller.js - Scan normalization → Device scan source: collects scan
backend/src/services/scan.services.js - Scan normalization → Connection details: collects connection
backend/src/services/scan.services.js - Scan normalization → BSSID rules: filters and names
backend/src/services/scan.services.js - Scan normalization → Wi-Fi interpretation: normalizes fields
backend/src/services/scan.services.js - Device scan source → Android scan provider: reads device scan
- Speed measurement → iperf3 server: tests throughput
- Survey service → Plan records: reads plans
backend/src/services/surveys.service.js - Survey service → Survey records: reads and writes
backend/src/services/surveys.service.js - Survey service → Scan locations: uses locations
backend/src/services/surveys.service.js - Survey service → Scan history: reads scans
backend/src/services/surveys.service.js - Scan history → SQLite database: queries
backend/src/repositories/scans.repository.js - Scan locations → SQLite database: queries
backend/src/repositories/scanPoints.repository.js - BSSID rules → SQLite database: queries
backend/src/repositories/bssidRules.repository.js - Plan records → SQLite database: queries
backend/src/repositories/plans.repository.js