ChildResilience-Agent is an AI-powered incident reporting platform for child-focused climate resilience. It classifies hazards affecting children, tags severity, supports multilingual reporting, triggers alerts to authorities, and updates real-time dashboards β UNICEF-aligned and scalable for low-resource regions.
# ChildResilience-Agent Frontend
ChildResilience-Agent is a Progressive Web App (PWA) designed to empower children, caregivers, and community responders in crisis situations. It provides real-time incident reporting, shelter discovery, and offline-ready dashboards that integrate directly with the backend resilience engine.
This frontend is built with React + Vite + TailwindCSS, and enhanced with PWA support for field deployment in low-connectivity regions.
---
## π Features
π± Installable PWA β Works as a mobile app with offline support.
π Shelter Map & Directory β Locate nearby shelters with capacity, type, and contact info.
π¨ Incident Reporting β Submit child protection, safety, or climate-related incidents.
π Multi-channel Alerts β Integrates with backend for SMS, WhatsApp, and email notifications.
π Multilingual Ready β Supports English by default with future i18n support.
π JWT Auth Integration β Secure login and role-based access.
π Resilience Dashboard β Visualize incidents and response activity in real-time.
---
## ποΈ Tech Stack
Framework: React (Vite)
Styling: TailwindCSS + shadcn/ui components
State Management: React Query
PWA Support: vite-plugin-pwa
Maps: Leaflet + OpenStreetMap
Notifications: Integrated with backend (SNS, Twilio, Email)
Auth: JWT from FastAPI backend
---
## π Project Structure
frontend/
βββ public/ # Static assets (PWA icons, manifest)
βββ src/
β βββ api/ # Axios clients for backend APIs
β βββ components/ # Reusable UI components
β βββ features/
β β βββ shelters/ # Shelter listing & map
β β βββ incidents/ # Incident reporting UI
β β βββ auth/ # Login / Register flows
β βββ hooks/ # Custom React hooks
β βββ pages/ # App pages
β βββ App.jsx # Main app entry
β βββ main.jsx # PWA registration + React root
βββ vite.config.js # Vite + PWA setup
βββ tailwind.config.js # Tailwind set β¦