This is the largest thing I’ve built: a consumer mapping app for outdoor recreation and public-land navigation, shipped as two native clients over one backend, with the spatial data layer assembled from scratch.
It’s in external beta. I built all of it solo over about three months of active development, 836 commits, while working full time.
The interesting parts weren’t the screens. They were the data assembly, the security model, and the cost of maintaining two native codebases honestly. So that’s what this is about.
The problem
The natural-language planner answering a plain-English request with places pulled from the database.
The app answers a location question that sounds simple and isn’t: given where you are, what’s nearby, what are the conditions, and are you actually allowed to be there.
Four structural reasons that’s hard:
- The source data is federated by nature. The relevant records live across BLM, the Forest Service, the Park Service, the Army Corps, Recreation.gov, state agencies, private operators, and OpenStreetMap. There is no single authority to query, and each source has a different schema, a different license, and a different definition of what constitutes a “site.”
- Status is a separate dataset from location. Knowing a place exists tells you nothing about who manages the ground under it or what the rules there are. That answer lives in federal land-management boundaries, which is an entirely different dataset with an entirely different shape, and joining them is a spatial problem rather than a key lookup.
- Routing engines assume a passenger car. Consumer routing APIs have no concept of vehicle height, length, or weight, so they’ll route a vehicle down something it physically cannot clear.
- Structured filters can’t express real intent. “Somewhere quiet about four hours west, off pavement, no snow” is a completely reasonable request and no filter UI handles it.
Architecture
A forecast temperature layer with a scrubbable timeline, rebuilt every few hours by the scheduled pipelines.
- Two native clients, nothing shared. SwiftUI + SwiftData on iOS (154 files, ~20k lines), Jetpack Compose + Room on Android (97 files, ~11.6k lines). One repo, two toolchains that never read each other’s directories.
- One Postgres + PostGIS backend with row-level security, 25 reviewed migrations, and spatial indexes on the query paths that matter.
- Five Deno edge functions for the LLM planner, access gating, incident queries, coverage lookup, and account deletion.
- A Python ingest layer that normalizes, deduplicates, classifies, and spatially joins the ten upstream sources, with idempotent upserts on
(source, source_id).
- Five scheduled GitHub Actions pipelines that fetch NOAA and EPA forecast data every few hours, reproject it, ramp it to RGBA, and publish versioned rasters plus a manifest to Cloudflare R2 for the clients to fetch at runtime.
- Clients read through the anon key and RLS. The ingest layer writes with the service role. Those two paths never cross.
The data layer
Per-carrier cell coverage, modeled from FCC filings and stored as H3 hexagons.
Live counts from production:
- ~99,000 points of interest, normalized from ten sources
- ~294,000 land parcels with management classification, which is the layer that answers the legal question
- 19,073 airports and heliports from FAA data
- 474 federal land units from the Park Service API
- Per-carrier coverage modeled from FCC Broadband Data Collection filings, stored as H3 hexes
Sources: Recreation.gov/RIDB, the Park Service API, FAA, OpenStreetMap/Overpass, PAD-US, FCC BDC, NIFC, NOAA (HRRR-Smoke, GFS, HMS, NAQFC), AirNow, and Open-Meteo.
None of it is proprietary, which I think is worth saying plainly. The work isn’t access, it’s assembly. Ten sources with ten schemas, ten licenses, and ten opinions about what a record represents, spatially joined against boundary polygons and deduplicated into something you can actually query in a map viewport.
The part I’m most willing to defend is a number I deliberately made worse. One subcategory dropped from 6,441 rows to 2,800 when I re-derived it against stricter legitimacy filters. Losing 57 percent of a headline figure felt terrible and was obviously correct: in this domain a confidently wrong record sends someone somewhere they shouldn’t be, and precision matters more than coverage. Every record carries its source and its confidence, and the UI marks unverified entries as unverified.
Security and privacy
The point forecast for a single location.
This is the part I’d most want to talk through in an interview, because I got it wrong twice before I got it right.
What’s implemented:
- Row-level security on 20 tables, with owner-scoped write policies and read policies that filter to live, non-tombstoned rows. The client ships an anon key, so RLS is the actual boundary, not an optimization.
- Deliberate function grant posture.
execute is revoked from public and granted explicitly to anon and authenticated only on the RPCs meant to be callable. Postgres defaults to granting execute to public, which is the kind of default that quietly becomes a vulnerability.
- Per-user quota metering on the LLM endpoint, logged one row per call with real token counts from the API response, so cost per active user is measured rather than estimated. The usage table has RLS on and no client policies at all. Only the edge function writes to it with the service role. A client that could insert rows could also decline to insert them, and a client that could delete rows could reset its own quota.
- Server-side access gating. Invite codes are validated by an edge function holding the service role, so codes never reach the client and can be revoked by flipping a boolean.
- Encrypted off-platform backups of the only data that can’t be regenerated, sealed with a libsodium SealedBox (PyNaCl) using a public key committed to the repo. The CI job that writes the backup cannot read it back; the private key lives offline. The script asserts the ciphertext differs from the plaintext and refuses to write an unencrypted dump at all.
- Per-job credential scoping. The daily report watcher uses a read-only role limited to two tables. A job whose output is a GitHub issue has no business holding access to a table containing email addresses.
- Crash reporting with PII off on both platforms, with an event filter in front of the transport.
The two holes I found, both worth publishing:
The LLM endpoint was open. The platform verifies the JWT on edge function calls, which felt like enough. It wasn’t: the anon key ships inside the app binary and is itself a valid JWT, so anyone who extracted it from the build had unlimited model calls billed to me. I verified it against the live endpoint before fixing it, and a single one-word query burned 822 input, 255 output, and 8,828 cached tokens, because the system prompt and tool schemas are large. Cheap junk queries are not cheap. The fix was to read the JWT subject, require a real signed-in user, and meter per user per day.
A backup containing five user email addresses was publicly fetchable for about eight minutes. I’d reused an upload helper from a pipeline that publishes deliberately public map rasters to a CDN bucket. I checked the credential scope carefully. I never checked the destination. I confirmed the exposure with an anonymous HTTP 200, deleted it, and rewrote the rule I’d been operating under: the question is never “is my credential scoped,” it’s “who can fetch this URL.” Those are different questions and only the second one mattered. User data now gets encrypted before it leaves Postgres, so a destination mistake is a non-event instead of a breach.
I’d rather publish both than imply I got it right the first time. For a consumer app whose whole value depends on people trusting it with location history, a privacy failure isn’t a bug you patch.
A wildfire smoke forecast layer, one of the rasters the scheduled pipelines publish.
Shipping the same product twice natively is not 2x the work. It’s 2x the surface area for silent drift, which is worse.
Nothing is shared at the client level. A single database column change becomes two model changes, two decoders, and two local migrations, and nothing fails to compile when you forget one. The divergence shows up as a runtime decode failure for half your users, in a build you already shipped.
So I wrote the rule down as a hard constraint: any user-facing change lands on both platforms, or it gets logged as a known gap in the same batch. There’s no third option, because an undocumented gap is how two apps quietly stop being the same product.
Three divergences are deliberate: each platform gets its own interaction conventions (system back gesture, platform sheet behavior, platform permission flows), search providers differ because the first-party geocoder on one platform doesn’t exist on the other, and federated sign-in is a native control on one and a web flow on the other. Visual identity stays identical.
The stack
A route with its elevation profile, so a steep final climb shows up before you commit to it.
- Swift, SwiftUI, SwiftData — iOS client, iOS 18 minimum
- Kotlin, Jetpack Compose, Room, DataStore — Android client
- Mapbox Maps SDK — rendering on both platforms, with custom styles, plus Directions and Matrix for routing and drive-time windows
- Supabase — Postgres, PostGIS, row-level security, auth, edge functions
- Deno + TypeScript — edge functions
- Anthropic Claude API — the natural-language planner, built on tool use so the model queries the live database, geocodes, and pulls forecasts instead of improvising
- Python 3.12 — ingest and pipelines: geopandas, GeoAlchemy2, SQLAlchemy, rasterio, h3, numpy, PyNaCl
- GitHub Actions — five scheduled pipelines, plus watchers that open issues on new crashes and new user reports so solo triage can’t silently lapse
- Cloudflare R2 + Workers — raster CDN and web hosting
- Sentry — crash reporting on both platforms with symbolication
- Astro 5 — marketing site, with copy-guard tests that fail the build when the site starts claiming behavior the app doesn’t have
- 79 test files across Swift, Kotlin, and Python, concentrated on pure logic: the offline-sync reconcile engine, dimension fit, unit formatting, EPA breakpoint transforms, raster colormaps, and brand-color guards
Lessons
Verify against the system, never against the documentation. My own docs drifted within weeks. Status markers I wrote myself were wrong. If a decision depends on what the code or the database actually does, go read the code or query the database. I eventually wrote that into the repo’s working rules, because reasoning from a stale doc is how you ship a regression confidently.
Trace blast radius before editing, not after. One migration named a table that collided with an existing one, and the drop-cascade used to force it through deleted the real table. Now any change to a shared surface (migrations, RLS policies, client data models, preference keys, edge functions, build config) gets its impact stated before the edit lands.
Ask who can read the thing you just wrote. See above. It’s the single most useful question I added to my own process this year.
AI assistance didn’t make me faster, it made me stop cutting scope. I built this with Claude Code. I defined the product, made the architecture calls, and reviewed what landed. The test coverage, the five data pipelines, the accessibility passes, all the things a solo build with a day job quietly drops, actually got built. Depth was the gain, not speed. It does not review blast radius for you, and it will not ask who can fetch the URL you just uploaded to. That part is still the job.
To learn more about the app, visit vroam.io.