Wardni is a real-time clinical night-shift triage workstation built on Node.js 18+ that combines Meta SAM 3.1 (spatial tracking) with Meta Muse Spark 1.3 (clinical urgency ranking: RED, YELLOW, routine). AI handles tracking and alerting, while nurses decide patient care.
5-Module Architecture (wardni-fullstack-v3.1)
1. Vision (
vision.html): Tracks.mp4/.movclips, webcams, or Room IR streams using Class + Visual Description cards, Spatial<0f>clicks/boxes, Exemplar crops, and Patient Reference Photos. Separates patients from staff via an Origin-Locked Bed Zone (>=40%start overlap), negative exclusions, and bedside staff suppression, plus a Privacy Wireframe mode.2. Voice (
voice.html): Transcribes live bedside speech (en-US,fr-FR,ar-DZ) or typed input and ranks voice urgency alone via Spark.3. Task Buttons (
tasks.html): Six-button bedside pad (Emergency Help,Bathroom,Water,Drink,Eat,Pain / Comfort). Emergency Help triggers immediate hardware-firstREDdispatch even if AI is offline.4. Master Dashboard (
index.html): Merges Vision, Voice, and Task outputs across all rooms (RED→YELLOW→routine) with a 1-click Spark shift summary.5. Nurse Escalation (
server.js): Invites on-duty nurses with a15s–120sstep timer, auto-rotates on timeout, and fires a continuous siren + globalREDbanner if unanswered.
Security & Setup Requirements
Hardened Backend: Zero-dependency
server.jskeepsMODEL_API_KEYserver-side, locks Meta URLs, gates/api/*behindWARDNI_PASSCODE+ login throttling, blocks SSRF/XSS, saves state/alarms across restarts (ward-state.json), and requires HTTP 200 handshakes for a greenLIVEstatus.What You Need: Node.js 18+, Chrome/Edge 126+, a funded
MODEL_API_KEYfromdev.meta.ai,.mp4test clips, a mic, and an HTTPS Node host for your domain ahead of the Nov 5 (03:00 WAT) deadline.