Personal project
Saigon Ride
A browser game that rebuilds Ho Chi Minh City street by street from real map data, so you can ride a scooter through it at night with an AI friend on the back who talks with you by voice.
Open the project

What it is
Saigon Ride rebuilds Ho Chi Minh City street by street from real map data: the same one-way streets, roundabouts, alleys, bridges over the Saigon River, and the lit-up walking street on Nguyễn Huệ. You ride a scooter through traffic that stops at red lights and flows around you. Day turns into neon-lit night, the rain comes and goes, and a radio plays chill synthwave.
It isn’t a race and it has no score. It’s about the feeling of riding through Saigon at night with someone beside you.
You don’t ride alone
A friend sits on the back, like Linh, a 23-year-old design student who grew up in a District 3 alley. They talk with you by voice in Vietnamese or English, remember earlier rides, and react to where you are.
You can also explore on foot, ride a lift up to a rooftop, take photos, teleport across the city, or tap a spot on the map and let the bike take you there.
How it’s built
- 3D and engine. Three.js, TypeScript and Vite, with no game engine. The city is built at load time from real map data. It streams in chunks around you and uses instanced meshes and a bloom effect for the neon.
- City data. A build script turns OpenStreetMap and Overture Maps data into a compact city file. The whole-city map image is pre-drawn in headless Chrome at build time.
- Driving. The traffic, pedestrians and traffic lights are my own simulation. Auto-drive finds a route with A* search on the real road network, respects one-way streets and keeps to the right lane.
- AI friends. A large language model writes the replies (Gemini or OpenRouter, using the player’s own key). Speech recognition and voices run in the browser on ONNX Runtime Web and Transformers.js, using Whisper and PhoWhisper to listen and Kokoro and VieNeu-TTS to speak. Memory is stored on the player’s device in IndexedDB.
- Hosting. Cloudflare Workers with static assets.
Credits
- Three.js (MIT)
- Vite (MIT) and TypeScript (Apache-2.0)
- Transformers.js (Apache-2.0) and ONNX Runtime Web (MIT)
- hls.js (Apache-2.0) for radio streams
- Map data © OpenStreetMap contributors (ODbL) and Overture Maps Foundation
- AI models for listening: Whisper by OpenAI (MIT) and PhoWhisper by VinAI (BSD-3-Clause), through the ONNX conversion
- AI models for voices: Kokoro-Vietnamese-Lite (Apache-2.0) and VieNeu-TTS (Apache-2.0)
- MOSS Audio Tokenizer Nano (Apache-2.0), used by the VieNeu voice
- Radio: Nightride FM and FluxFM