Skip to content

Repository files navigation

FAILSAFE 72

"When systems fail, community responds"

Crisis intervention engine powered by AI intelligence, persistent state tracking, and voice emergency alerts.

image image

Tech Stack

  • OpenRouter + Google Gemini - Real-time crisis intelligence
  • MongoDB Atlas - Crisis state persistence
  • ElevenLabs - Emergency voice alerts
  • Node.js + Express - API server

Quick Start

# Install dependencies
npm install

# Configure environment
cp .env.template .env
# Edit .env with your API keys

# Start server
npm run dev

API Endpoints

AI Intelligence

  • POST /api/crisis/update - Generate crisis update
  • POST /api/intervention/suggest - Get intervention suggestion

State Management

  • POST /api/state/save - Save crisis state
  • POST /api/intervention/log - Log community action
  • GET /api/session/:id - Get session history
  • GET /api/stats - Global statistics

Voice Alerts

  • POST /api/voice/alert - Generate voice alert

Info

  • GET /health - System health
  • GET /api/historical - Historical crisis data

Environment Variables

Required in .env:

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages