How sfwebsolution/nexa works
Nexa is a browser-based messaging and social app, with account pages, a dashboard, live voice rooms, push notifications, and privileged administration. The likely user journey is account access followed by social activity in the dashboard; however, the README is empty and the sampled files do not show the page-level wiring, so that flow is represented by the components rather than inferred edges. The live-room module manages participant state and Firestore room records. The service worker handles push display and app caching, while the admin API performs privileged user operations and activity aggregation. Unsampled page capabilities are identified from filenames only.
Main entry points: firebase-messaging-sw.js Push and cache worker · firebase.js Firebase client · admin-api.js Admin API · nexa-voice-room.js Voice room manager
Components 18
Web app
- Landing page
index.html - Login
login.html - Sign up
signup.html - Social dashboard
dashboard.html - App logic
app-main.js - Firebase client
firebase.js
Live rooms
- Voice room manager
nexa-voice-room.js
Push and PWA
- Push and cache worker
firebase-messaging-sw.js - Worker bootstrap
sw.js - OneSignal worker
OneSignalSDKWorker.js
Administration
- Admin console
admin.html - Admin API
server/admin-api.js
Other components
- App visitor
- Cloud Firestore
- Firebase Authentication
- PeerJS / WebRTC
- Admin Firestore
- Firebase Admin Auth
Connections 13
- Firebase client → Cloud Firestore: initializes client
firebase.js - Firebase client → Firebase Authentication: initializes client
firebase.js - Firebase client → Push and cache worker: registers worker
firebase.js - Push and cache worker → Cloud Firestore
- Push and cache worker → App visitor: shows notifications
firebase-messaging-sw.js - Push and cache worker → Social dashboard: opens on click
firebase-messaging-sw.js - Worker bootstrap → Push and cache worker: imports
sw.js - OneSignal worker → App visitor: loads push SDK
OneSignalSDKWorker.js - Voice room manager → Cloud Firestore: reads and writes rooms
nexa-voice-room.js - Voice room manager → PeerJS / WebRTC: uses audio mesh
- Admin console → Admin API: calls admin endpoints
server/admin-api.js - Admin API → Admin Firestore: reads and updates
server/admin-api.js - Admin API → Firebase Admin Auth: updates accounts
server/admin-api.js