How salveci2022/aurora_mulher_segura works
Aurora Mulher Segura is a Flask-based safety app. Its main workflow is a user holding the SOS button, optionally sharing GPS, and sending an alert for trusted contacts to view. Other documented capabilities include AI support, emergency guidance, safety planning, alert history/PDF export, administration, and offline PWA behavior. The excerpts show the SOS request and some Flask routes; several other feature links are based on README descriptions rather than inspected implementation.
Main entry points: app.py Flask routes · panic.js SOS and GPS · sw.js Offline worker · panel_admin.html Admin panel
Components 23
SOS Alerts
- SOS page
templates/panic_button.html - SOS and GPS
static/js/panic.js - Alert endpoint
app.py - Alert history
templates/historico.html - Alert records
app.py - PDF report
app.py
Accounts & Monitoring
- Trusted login
templates/login_trusted.html - Trusted panel
templates/panel_trusted.html - Admin login
templates/login_admin.html - Admin panel
templates/panel_admin.html - User records
app.py
Safety Support
- Aurora AI chat
templates/aurora_ia.html - Anthropic API
- Emergency guidance
templates/ajuda.html - Safety plan
templates/plano_seguranca.html - Quick exit
templates/saida_rapida.html
Web Platform
- Flask routes
app.py - Offline worker
static/js/sw.js - Offline page
templates/offline.html - PWA manifest
static/manifest.json
Other components
- Person at risk
- Trusted contact
- Administrator
Connections 26
- Person at risk → SOS page: opens
README.md - SOS page → SOS and GPS: loads script
- SOS and GPS → Alert endpoint: posts alert
static/js/panic.js - SOS and GPS → Person at risk: requests GPS
static/js/panic.js - Alert endpoint → Alert records: records alerts
app.py - Flask routes → Alert endpoint: handles route
app.py - Flask routes → Alert history: renders page
app.py - Flask routes → Trusted login: renders login
- Flask routes → Trusted panel: renders panel
app.py - Trusted contact → Trusted login: signs in
README.md - Trusted contact → Trusted panel: views alerts
README.md - Administrator → Admin login: signs in
README.md - Flask routes → Admin login: renders login
app.py - Flask routes → Admin panel: serves panel
- Flask routes → User records: reads users
app.py - Flask routes → Alert records: reads history
app.py - Administrator → Admin panel: manages contacts
README.md - Admin panel → PDF report: exports report
- Person at risk → Aurora AI chat: requests support
README.md - Aurora AI chat → Anthropic API: queries Claude
README.md - Person at risk → Emergency guidance: views guidance
README.md - Person at risk → Safety plan: plans safety
README.md - Person at risk → Quick exit: uses disguise
README.md - Offline worker → Offline page: falls back
static/js/sw.js - Offline worker → PWA manifest: supports install
- Flask routes → Offline worker: serves app assets