Files
turboquant/edge/crisis_resources.json
Alexander Payne 96b7183d70
All checks were successful
Smoke Test / smoke (pull_request) Successful in 8s
test(edge): add hardware validation for edge crisis detector (closes #116)
Implements #116 — hardware validation testing for edge crisis detector
on Raspberry Pi 4 and other edge devices.

Adds edge detector (keyword + optional Ollama model), crisis_resources.json,
deployment docs, and two test files:
- test_edge_detector.py: unit tests for keyword logic
- test_edge_detector_hardware.py: hardware validation suite

Hardware validation measures keyword detection (<1ms), model inference (<5s
on Pi 4), offline operation, and provides reproducible benchmark via
`python3 edge/detector.py --benchmark`.

Re-implements the functionality from closed PR #111 with expanded tests.
2026-04-26 00:51:31 -04:00

63 lines
1.6 KiB
JSON

{
"version": "1.0.0",
"last_updated": "2026-04-15",
"national": [
{
"name": "988 Suicide & Crisis Lifeline",
"phone": "988",
"sms": "988",
"description": "Call or text 988 for free, confidential support 24/7",
"available": "24/7"
},
{
"name": "Crisis Text Line",
"sms": "741741",
"keyword": "HELLO",
"description": "Text HOME to 741741 for crisis counseling",
"available": "24/7"
},
{
"name": "SAMHSA National Helpline",
"phone": "1-800-662-4357",
"description": "Free referral service for substance abuse and mental health",
"available": "24/7"
},
{
"name": "Veterans Crisis Line",
"phone": "988",
"sms": "838255",
"description": "Press 1 after dialing 988 for Veterans-specific support",
"available": "24/7"
}
],
"international": [
{
"name": "International Association for Suicide Prevention",
"url": "https://www.iasp.info/resources/Crisis_Centres/",
"description": "Directory of crisis centers worldwide"
}
],
"self_help": [
{
"name": "Grounding Technique (5-4-3-2-1)",
"steps": [
"Name 5 things you can SEE",
"Name 4 things you can TOUCH",
"Name 3 things you can HEAR",
"Name 2 things you can SMELL",
"Name 1 thing you can TASTE"
]
},
{
"name": "Box Breathing",
"steps": [
"Breathe IN for 4 seconds",
"HOLD for 4 seconds",
"Breathe OUT for 4 seconds",
"HOLD for 4 seconds",
"Repeat 4 times"
]
}
]
}