Emergency intelligence ยท on-device first

if you are seeing this page, the agent is still running.

This is the public web surface for the service, with the current status, endpoint catalog, and curl/Postman examples for quick checks.

Single page service Render-ready container Test user UID 1 QR profile available

Endpoint list

These are the endpoints you can test with curl or Postman.

GET /

Landing page showing the running status, deployment notes, and endpoint catalog.

GET /health

Liveness check for the service.

GET /ready

Readiness check, including database/integration status.

POST /check-uid

Registers or validates the hardcoded test UID and returns the patient profile.

POST /emergency

Primary emergency submission endpoint for the VectorGo pipeline.

POST /bystander-report

Guest-mode emergency report generated from the lock screen or QR page.

GET /sync/:uid

Reconciles offline data for a given UID.

GET /qr/:uid

Responder page with the emergency profile for that UID.

POST /api/emergency

Legacy alias for the emergency pipeline.

POST /api/offline-sync

Legacy alias for offline emergency reconciliation.

Hardcoded test user

The same UID is used for the QR page and the demo login flow.

UID
1
Username
admin
Password
1234
Name
Arjun Mehta

The QR profile page includes name, date of birth, blood group, allergies, conditions, medications, emergency contact, medical history, insurance, and the QR path.

curl / Postman examples

Use these directly against the running Render URL or your local container.

Check the running page

curl http://localhost:3000/

Validate UID 1

curl -X POST http://localhost:3000/check-uid -H "Content-Type: application/json" -d '{"uid":"1"}'

Trigger emergency pipeline

curl -X POST http://localhost:3000/emergency -H "Content-Type: application/json" -d '{"location":{"lat":12.97,"lng":77.59},"patient":{"spo2":87,"heart_rate":138,"symptoms":["breathlessness"]}}'

Open the QR profile

curl http://localhost:3000/qr/1

What is deployed

A Node service with a , health endpoints, emergency endpoints, and a patient QR page.

Deployment notes
  • Runs on the PORT environment variable.
  • Falls back to in-memory storage when no database URL is provided.
  • Uses a single external web surface with JSON APIs for testing.
Primary URL behavior
  • / shows the running status page.
  • /qr/1 shows the patient profile page.
  • /ready shows service readiness.