How tarafk1972-abcd/wjw works
Warga Jaga Warga is a mobile-first, multilingual community-safety PWA with a server API. Its documented primary workflow is a resident raising an emergency, the server routing it within the same community and recording its lifecycle, and an authorized responder updating the incident until resolution. The graph also preserves membership administration, community operations, and subscription capabilities. Some server subsystems are represented by their exact tree paths but were not sampled; their links are included only where the README or server entry-point references support them.
Main entry points: App.tsx App routing · api.ts HTTP API client · index.ts API routes · sync.ts State synchronization
Components 24
Resident app
- App routing
src/App.tsx
Safety operations
- Emergency reporting
src/pages/Panic.tsx - Emergency profile
src/pages/EmergencyProfile.tsx - Incident reports
src/pages/Reports.tsx - Patrol and checkpoints
src/pages/Patrol.tsx - Visitor records
src/pages/Guests.tsx - Broadcast and safety checks
src/pages/Broadcast.tsx - Incident handling
server/incidents.ts
Community services
- Community management
src/pages/Community.tsx - Membership administration
src/pages/Admin.tsx - Community dues
src/pages/Dues.tsx - Subscriptions and billing
src/pages/Billing.tsx - AI assistance
src/pages/Assistant.tsx - Support and console
src/pages/Support.tsx - Community hub
server/community-hub.ts - Member and population data
server/population.ts
API and state
- App state
src/lib/store.tsx - Local cache
src/lib/db.ts - State synchronization
src/lib/sync.ts - HTTP API client
src/lib/api.ts - API routes
server/index.ts - Server database
server/db.ts - Realtime events
server/events.ts
Other components
- Resident
Connections 33
- Resident → App routing: uses
- App routing → Emergency reporting: routes to
src/App.tsx - App routing → Emergency profile: routes to
src/App.tsx - App routing → Incident reports: routes to
src/App.tsx - App routing → Patrol and checkpoints: routes to
src/App.tsx - App routing → Visitor records: routes to
src/App.tsx - App routing → Broadcast and safety checks: routes to
src/App.tsx - App routing → Membership administration: routes to
src/App.tsx - App routing → Community management: routes to
src/App.tsx - App routing → Community dues: routes to
src/App.tsx - App routing → Subscriptions and billing: routes to
src/App.tsx - App routing → AI assistance: routes to
src/App.tsx - App routing → Support and console: routes to
src/App.tsx - Emergency reporting → HTTP API client: submits alert
- HTTP API client → API routes: requests
src/lib/api.ts - API routes → Incident handling: dispatches incidents
server/index.ts - API routes → Community hub: dispatches hub routes
server/index.ts - API routes → Member and population data: dispatches population routes
server/index.ts - Incident handling → Server database: persists incident
- API routes → Realtime events: signals updates
server/index.ts - API routes → Server database: uses database
server/index.ts - App state → State synchronization: synchronizes state
src/lib/store.tsx - State synchronization → HTTP API client: fetches state
src/lib/sync.ts - State synchronization → Realtime events: starts realtime
src/lib/sync.ts - State synchronization → Local cache: refreshes cache
src/lib/sync.ts - Incident reports → HTTP API client: uses API
src/pages/Reports.tsx - Membership administration → HTTP API client: uses API
src/pages/Admin.tsx - Community dues → HTTP API client: uses API
src/pages/Dues.tsx - Subscriptions and billing → HTTP API client: uses API
src/lib/api.ts - Community management → HTTP API client: uses API
src/pages/Community.tsx - AI assistance → HTTP API client: uses API
- Support and console → HTTP API client: uses API
- Incident reports → Resident: shows incident status