Skip to content

Uripeer3/oref-map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

131 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oref-map — מפת העורף

Live map of Israel showing Pikud HaOref (Home Front Command) alerts as colored area polygons per location.

Live: https://oref-map.org

Desktop
Desktop
Mobile
Mobile

Features

  • Colored Voronoi area polygons per location — adjacent same-colored areas merge into contiguous zones
  • Timeline slider to scrub through the last ~1–2 hours of alert history
  • Sound alerts — optional audio notifications for new alerts (muted by default, toggle via 🔇)
  • Click any area to see its alert history
  • About modal — click ⓘ or the title for info and disclaimer
Color Meaning
🔴 Red Rocket/missile fire
🟣 Purple Drone/aircraft infiltration
🟡 Yellow Early warning / preparedness — go near your shelter, sirens may follow
🟢 Green Event ended (fades out after 1 minute)

Development

./web-dev        # start dev server at http://localhost:8788

Requires Node.js and npx (comes with npm). Uses Wrangler to serve web/ and run the API proxy functions locally.

The polygon data file (locations_polygons.json) is not in the repo — ./web-dev downloads it automatically from the live site if missing.

Deploy

Deployed to Cloudflare Pages (static assets + TLV proxy):

./deploy

The fallback Worker (for non-TLV users) is deployed separately:

cd worker && npx wrangler deploy

Structure

web/
  index.html          # single-file map app (all JS/CSS inline)
  cities_geo.json     # location → [lat, lng] lookup
functions/
  api/
    alerts.js         # proxies live alerts API
    history.js        # proxies history API
    alarms-history.js # proxies extended history API
worker/
  src/index.js        # fallback proxy for non-TLV users (placement: azure:israelcentral)
  wrangler.toml       # Worker config with placement and /api2/* route

Contributing

Contributions are welcome! This is a civic project built for anyone in Israel who wants better situational awareness during alerts.

Ways to help:

  • Bug reports — open an issue if something looks wrong
  • Location data — if a polygon is missing or misplaced, open an issue with the location name
  • Features & fixes — PRs are welcome; for larger features, consider opening an issue first to discuss before investing the effort

To run locally, see the Development section above.

Data

Polls the Oref APIs:

  • Live alerts (/api/alerts) — every 1 second
  • History (/api/history) — every 10 seconds
  • Extended history (/api/alarms-history) — on demand (timeline slider)

About

Live map of Israel Home Front Command alerts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 87.9%
  • JavaScript 11.4%
  • Shell 0.7%