Work · Case file 06 · Hackathon build, live · 2025
GuideMeSG
3 min readJump to proofJump to limits
At a glance
- Result
- Live and submitted to HackRift 2025: a browser AR arrow guides the traveller, and the caregiver is alerted the moment the traveller is more than 50 m off route.
- Problem
- Mainstream transit apps are too complex for persons with intellectual disabilities or early-onset dementia, and give caregivers no visibility.
- My role
- Lead developer in a team of five.Team: Olivia Lam, Tay Wei Lin, Genisa Lee, Tan Chun Yuan and Zulfaqar Hafez. My part is as on my résumé. Devpost records me as the person who started the submission; the README does not split the work by person.
- Stack
- Next.js · Supabase Realtime · React Leaflet · DeviceOrientation API
Proof
The problem
Mainstream transit apps are too complex and stressful for persons with intellectual disabilities or early-onset dementia, and they give caregivers no visibility. Travellers need a simpler interface with immediate help, and caregivers need to know where the traveller is and when something goes wrong.
The idea. Replace the map with one large AR arrow driven by the phone compass, limit the traveller's choices to saved destinations and an I'm Lost button, and stream their position to a paired caregiver who is alerted on route deviation.
Fig. 01 · Traveller, route, caregiver
- Caregiver pairs by code
- Route from OneMapOSRM fallback, LTA DataMall bus data
- Traveller follows step by steplarge, plain prompts
- Off route by 50 m?caregiver alerted
- Location every 3 sSupabase realtime
- "I’m lost" buttonroutes to the nearest Dementia Go-To Point
See the live app

First screen, desktop, live app, 11 Nov 2026 
Traveler setup, empty, live app, 11 Nov 2026 
First screen, phone, live app, 11 Nov 2026
How it works
Pairing
The traveller creates an account and receives a 6-digit pairing code. The caregiver enters it and the two are linked in Supabase (caregivers and patients tables).
Route
The traveller taps a saved destination. /api/multi-modal-route builds a walking plus bus or MRT route from OneMap, with OSRM as the fallback router, and the LTA DataMall API supplies bus and MRT arrivals with crowd levels.
AR guidance
The arrow over the camera feed rotates by (bearing minus deviceHeading + 360) mod 360 from the DeviceOrientation API. A stabilisation layer smooths noisy compass data, and the Speech Synthesis API reads each step aloud.
Live location
The traveller's position is pushed every 3 seconds through Supabase Realtime. The caregiver's map subscribes to postgres_changes on the patients table and redraws on each update.
Deviation check
A Haversine distance from the current location to the nearest route point runs on each update. Beyond 50 m, an alert goes to the caregiver and the event is logged in route_deviations and caregiver_notifications.
Emergency
The I'm Lost button calls /api/find-safe-point for the nearest Dementia Go-To Point and starts navigation there; a Call Guardian button dials the caregiver directly.
What was hard
Making a browser AR arrow feel stable. Mobile browsers expose noisy orientation data, so the team added smoothing and threshold logic before the arrow is allowed to move; the trade-off is a slightly slower response in exchange for an arrow that does not jitter. Keeping two roles in sync for live location and deviations also forced careful schema design and subscription management in Supabase.
Limits. Built during a hackathon. The caregiver camera feed is marked prototype, the main-branch README still describes the earlier ReRouteLah bus validator and asks for an LTA key to be pasted into a source file, and the full documentation lives on the lovefrontend branch.
Evidence
- Live deployment
- https://guide-me-sg-r22y.vercel.app returned HTTP 200 on 2026-10-13Caller-verified check; Devpost 'Try it out' link; repository homepage field
- Location update interval
- Every 3 seconds via Supabase real-timeGuideMeSG README (lovefrontend), How It Works
- Deviation threshold
- More than 50 m off-route triggers a caregiver alertGuideMeSG README (lovefrontend), Safety Features
- Pairing code
- 6 digitsGuideMeSG README (lovefrontend), Onboarding
- API routes and tables
- 15 API route handlers in the code, 5 of them documented in the README (multi-modal-route, lta/bus-arrival, lta/train-arrival, find-safe-point, navigation); 5 Supabase tables (caregivers, patients, saved_destinations, route_deviations, caregiver_notifications)GuideMeSG README (lovefrontend)
- Accessibility targets
- High-contrast palette described as WCAG AAA; touch targets at least 48 by 48 pxGuideMeSG README (lovefrontend), Design Philosophy
- Hackathon
- Submitted to HackRift 2025; project started 10 Dec 2025; 33 likes on Devposthttps://devpost.com/software/guidemesg
- Repository
- 20 commits; default branch lovefrontend; created 2025-12-08github.com/ZulfaqarHafez/GuideMeSG (metadata)
Stack
- Next.js (App Router)
- TypeScript
- Tailwind CSS
- shadcn/ui
- React Leaflet
- Supabase (PostgreSQL and Realtime)
- LTA DataMall API
- OneMap API
- OSRM
- DeviceOrientation and Geolocation APIs
- Speech Synthesis API
- Vercel