Inspiration
We've all been there: standing in a hallway five minutes before something important, with no idea which way to go. Google Maps and Apple Maps get you to the building. Once you're inside, the blue dot drifts and you're on your own.
It's worse for people who can't afford a wrong turn: first-years hunting for an exam room, visitors in a hospital, anyone who needs a step-free route. Indoor maps really only exist for airports and malls, floor plans are flat and out of date, and an "accessible" checkmark isn't a route. The people who actually know a place have no easy way to show it to others. So we built Not 404, because nobody should get "not found" in real life.
What it does
Not 404 turns a quick walk with an iPhone into a 3D map anyone can open, so you can see the turn before you get to it.
- Scan a place. Walk a hallway, building or trail with a LiDAR iPhone. Our app records it in 3D, with photos.
- Label it. Pin the places that matter on the 3D model (Room 204, the elevator, the info desk) so visitors know what's where.
- Share it your way. Every map is Public (listed in Community), Unlisted (anyone with the link) or Private (only people you add by email). Share it as a link or a QR code taped to the door.
- Events. Running a hackathon, an open house or a conference? Make an event, attach your maps and share one invite link or QR code. Everyone who joins gets exactly those maps.
- Open it anywhere. Scan the QR code and the map opens in your phone's browser. No app, and no account for public or unlisted maps.
- Get a route. Tap where you are and where you're going. Not 404 works out the floor you can actually walk on and draws the way there, through doorways, around walls and across floors. Flip on "Avoid stairs" for any trip.
- Walk inside. Drop into the scan at eye height and look around like Street View (WASD on a laptop, tap to glide on a phone), or fly over it like a map.
- Landmark directions. Gemini looks at the photos from each turn and suggests directions people actually get, like "Turn left at the purple mural." The map owner approves, edits or rejects every one, and visitors only ever see approved directions.
- Built for everyone. Larger text, reduced motion and Avoid stairs are one tap away, and the site works with a keyboard and a screen reader.
How we built it
A scan goes through five parts: an iPhone capture app, an API, a processing worker, a Gemini service and the website.
- Capture (iPhone app). A Swift/SwiftUI app uses ARKit on LiDAR iPhones. The depth sensor measures a distance for every pixel and the camera colours it in. ARKit stitches that into a mesh of triangles labelled floor, wall, door and so on. Each triangle is then painted with the photo that saw it most squarely. The app exports one versioned bundle: a manifest with SHA-256 checksums, the mesh as GLB, a coloured point cloud, and camera frames with their positions. Everything is in metres, +Y up.
- Upload (API). A Next.js + TypeScript API with Auth0 sign-in. App bundles are checked file by file against their checksums, and you can also drop a GLB straight onto the website (up to 400 MB). Metadata lives in Tiger Data PostgreSQL through Drizzle ORM, and the files stay private.
- Process (CPU worker). A queued worker runs our
process_lidar_capturetool. It writes a full-quality GLB, a lighter GLB for phones (about half the triangles), a point cloud, a preview and a report, saved as a revision that never changes. We also wrote a cleanup tool (Open3D) that removes floating junk, fills small holes and bakes soft shadows into corners. With compression, one two-storey hallway went from 36 MB to 3.9 MB. - Share and protect. Owners pick the visibility, add people by email, label places and build events. Every single request re-checks who's allowed to see the map, including the 3D files themselves. Original camera photos stay owner-only. Map files are cached in the browser, but the server still checks access every time, so a reopened map loads almost instantly (1.8 MB down to about 300 bytes) without loosening privacy.
- Landmark directions (Gemini). A Python service works out each turn on a route from its corner angles (left, right, slight, U-turn, stairs) and picks the best photos before, at and after the turn using the camera positions. It then asks Gemini 3.6 Flash for a landmark and a short cue as structured JSON. Gemini never decides the direction: if its answer contradicts the computed turn, we throw it out, and it's allowed to say "no clear landmark." Drafts go to the owner to review.
- Navigate. recast-navigation (Recast and Detour compiled to WebAssembly) builds a walkable navigation mesh from the scan right in the browser, including multi-storey buildings. Routes go through doorways and around walls. Avoid stairs simply forbids any step up.
- View (website). React 19, TypeScript, Vite and Tailwind v4, with three.js through React Three Fiber and drei. Walls are cut low so you can see into rooms like a floor plan. A BVH (three-mesh-bvh) makes clicking and walking instant even on a 2.25-million-triangle scan. We also open compressed GLBs and cap pixel density on phones. It all runs on a Vultr server at not404.vodka with HTTPS, and every push to
maindeploys itself within about 2 minutes, with automatic rollback if the health check fails.
The four of us built in parallel with Claude Code and Codex, using Entire checkpoints so one person's agent session could be picked up by someone else's.
Challenges we ran into
- One coordinate system across three languages. Swift, Python and TypeScript all had to agree on metres, +Y up and column-major matrices, or a left turn in the scan becomes a right turn on the map.
- Keeping Gemini honest. A made-up landmark is worse than no directions. Geometry decides the turn, Gemini only describes what's actually visible, and it's allowed to say nothing.
- Big 3D on a phone. Real scans are millions of triangles. We clean and compress them, ship a lighter copy for phones, cap pixel density, use a BVH for clicks, and cache files so reopening a map is basically free.
- Real buildings are messy. Our first multi-storey scan (48 × 45 m, two floors) was rejected by our own routing check before Recast even ran. Ceilings blocked the view, so we switched to cutting the walls low. Phone scans come with dust, reflections and bits of people walking by, so we wrote a tool to clean them out.
- Four parallel builds, one product. The app, API, Gemini service and website were built on separate branches at the same time, then merged with their contracts lined up overnight.
Accomplishments that we're proud of
- The whole thing works end to end: iPhone scan, checksummed upload, processing, labelled places, sharing (public, unlisted, private and events) and a link that opens in any phone browser with a real walking route.
- Directions that know when to stay quiet: Gemini found the right landmark in our test photos, returned nothing for a plain corridor, and every cue still needs the owner's OK.
- You can actually walk around inside a scan on a phone or laptop, and it's smooth on multi-million-triangle buildings.
- Accessible from day one: Atkinson Hyperlegible type, text size and motion settings, keyboard control of the 3D map, per-trip Avoid stairs, and no automated (axe) accessibility violations on our main pages when we checked.
- Live, branded and deploying itself: not404.vodka, built by four people in one weekend.
What we learned
Geometry and AI are good at different jobs. The scan knows exactly where a turn is, and Gemini is great at naming what you'll see there. Letting each do only its own job is what made the directions trustworthy. We also learned how much faster four people move once the shared stuff (file formats, coordinates, API shapes) is written down first. And always test on a real scan of a real building early, because synthetic test rooms are far too tidy.
What's next for Not 404
- Landmark directions on any route: matching approved cues to whatever start and destination a visitor picks, not just the routes the owner saved.
- Directions for website uploads too: right now Gemini cues need the app's photos, so plain 3D-file uploads don't get them yet.
- Merging scans: scanning takes a lot of processing power and can make your phone overheat, so a big building often has to be scanned in a few pieces. A scan combiner would stitch those pieces (or scans from different people) into one map, right in the app.
- Privacy by default: blurring faces and screens in captured photos before they're stored or sent to Gemini.
- Bigger places: joining scans from several people into one building, and saving trail maps for offline use.
- Upload straight from the app: today the app exports a bundle; next it sends it to your account in one tap.
Built With
- arkit
- auth0
- drei
- drizzle
- entire
- geminiapi
- lidar
- next.js
- postgresql
- swift
- testflight
- three.js
- tigerdata
- typescript
- vultr
- xcode

