A fast-loading, mobile-first emergency information page designed to be served via an NFC chip or QR code.
Trilingual (English / Deutsch / Français) — tap a language button to switch.
The page is two files:
index.html— the app shell (never needs editing)emergency-data.json— your personal data (the only file you edit, never committed)
On load, the HTML fetches the JSON and renders everything client-side. To update your info, edit the JSON and redeploy — the live page updates automatically via Cloudflare Pages.
- Fork this repository
- Copy
emergency-data.example.json→emergency-data.jsonand fill in your information - Deploy to Cloudflare Pages (see below) — upload
emergency-data.jsonas part of the deploy, not via git - Program your NFC chip with the deployed URL
Note:
emergency-data.jsonis listed in.gitignoreand will never be committed. Keep your real data out of version control.
{
"name": "Your Name",
"dob": "1985-03-15",
"blood_type": "A+",
"health_card": "Card number",
"organ_donor": true,
"allergies": false,
"medications": false,
"surgeries": false,
"phone": "+15141234567",
"address": ["Street", "City Province PostalCode", "Country"],
"contacts": [...],
"updated_at": "2026-04-28"
}| Field | Type | Notes |
|---|---|---|
name |
string | Full name |
dob |
string | Date of birth, ISO format YYYY-MM-DD |
blood_type |
string | e.g. A+, B−, O+ |
health_card |
string | Insurance card number |
organ_donor |
boolean | true or false |
allergies |
false or string |
false for none, or e.g. "Penicillin" |
medications |
false or string |
false for none, or e.g. "Aspirin 100mg" |
surgeries |
false or string |
false for none, or e.g. "Appendectomy 2019" |
phone |
string | E.164 format — auto-formatted for display |
address |
array of strings | One line per entry |
contacts |
array | See below |
updated_at |
string | ISO date YYYY-MM-DD |
Each contact requires name and role, plus at least one of phone or email:
{
"name": "Sam Morgan",
"role": { "en": "Partner", "de": "Partner", "fr": "Partenaire" },
"phone": "+15141234567",
"email": "sam@example.com"
}- Push your fork to GitHub
- Go to Cloudflare Pages → Create a project → Connect to Git
- Authorize GitHub and select this repository
- Build settings:
- Build command: (leave empty)
- Build output directory:
/
- Click Save and Deploy
- After the first deploy, upload your
emergency-data.jsondirectly via the Cloudflare Pages dashboard (Assets tab) or include it in a deploy via the Cloudflare CLI (wrangler pages deploy)
Your page goes live at https://your-project.pages.dev/.
Any git push to main triggers an automatic redeploy of the code — usually live within 30 seconds. Re-upload emergency-data.json whenever your personal info changes.
In Cloudflare Pages → your project → Custom domains, add your own domain.
Program the chip with the full URL to your deployed page:
https://your-project.pages.dev/
NFC writing apps: NFC Tools (Android/iOS) or NXP TagWriter.
MIT
