Hack #2: Cloudflare · Cloudflare
2 Apr, 15:52
What we built: A Cloudflare Workers app that turns scattered witness reports into consolidated incidents. Frontend uses MapLibre + Web Speech API; backend uses Durable Objects for per-incident state, KV for global index, and R2 for audio storage. Problem it solves: In emergencies, multiple witnesses report the same event from nearby locations. Currently these are separate. Our 150m proximity clustering automatically groups them—so responders see one incident with 3 reports instead of three isolated tips. ElevenLabs + Cloudflare: • ElevenLabs: TTS generates voice alerts when incidents reach 2+ reports. Audio stored in R2, streamed via /audio/ endpoint. • Cloudflare: Worker routes requests; Durable Objects maintain incident state with Haversine distance calc; KV provides fast incident listing; R2 stores MP3s. All serverless, global, sub-second latency.
