ThruHike
Saved hiking plans, custom daily mileage, and topographic maps.
In development with a working local planning app. Saved trips, custom pacing, calendars, notes, and online topographic maps are implemented. The latest map improvements are in review; no public download is available yet.
Overview.
ThruHike is a mobile planning app for long-distance hikes. The current development build creates and saves a day-by-day mileage plan from a mapped John Muir Trail section. You can set your dates, choose equal or custom daily distances, copy a trip to compare schedules, and return to the plan later.
The saved-trip workspace now includes a calendar, daily notes and checklists, a field companion, plan backups, and an interactive topographic map. The map combines the saved route with USGS imagery, selected-day highlights, mileage inspection, and distance labels in miles or kilometres.
I’m building the broader itinerary engine around sourced geography and deterministic calculations. The current local planner covers a 14.03-mile JMT section; full-trail coverage, optimized campsite and resupply planning, cloud sync, and public distribution remain in development.
Screens & workflows.
Application screens and development prototypes. Select a capture for a closer look.
Build and save a trip
- Choose the included JMT section, direction, and start date.
- Set the number of hiking days or review a finish-date range.
- Use equal daily distances, enter custom targets, or balance the remaining days.
- Save the plan and reopen its exact route, dates, and daily mileage.
Explore the route
- Open a saved day or the complete route on the USGS topographic map.
- Zoom, pan, and switch between imagery and the route trace.
- Tap the route or enter a mileage to inspect its position and planned day.
- Show or hide distance labels and switch miles or kilometres without changing the saved plan.
Keep the day together
- Move between Overview, Days, and Tools in the saved trip.
- Open the calendar and select a scheduled hiking day.
- Add a private note or checklist and return to that day’s overview.
- Reopen the saved records later on the same device.
Refine a plan
- Edit the name, dates, direction, or daily targets.
- Make a separate copy to compare an alternative schedule.
- Review changes before saving; cancelling leaves the original intact.
- Use the local backup and preview-before-share tools when you want to keep or share a copy.
Inside the build.
Explore the components, their boundaries, and the decisions behind them.
The active app combines local trip planning, durable on-device records, and a map presentation layer. Shared TypeScript models preserve exact route and schedule snapshots. A separate C# itinerary engine and governed data pipeline are being integrated for the broader trail-planning product.
Connected planning interface
Create, edit, copy, and browse saved trips through the normal application routes.
- The current path connects trip home, creation, saved detail, calendar, route explorer, and day tools.
- Equal and custom pacing share one validated model; finish-date and balancing helpers require an explicit apply and save.
- A saved-trip workspace keeps Overview, Days, and Tools together while preserving the selected day.
Design decisions & tradeoffs.
Keep the saved route authoritative
A plan carries its original source snapshot and exact day boundaries. Editing dates or display units does not silently substitute new geometry or rounded distances.
The tradeoffVersioned validation and compatibility rules take more work, but older plans remain understandable and reproducible.
Save locally before expanding cloud features
The current planning workflow saves directly to the device, with explicit commit, conflict, and recovery behavior. Cloud sync is a separate integration.
The tradeoffTrips do not automatically appear on another device, but saving a usable plan does not depend on an account or service connection.
Treat maps as a view of the plan
USGS imagery, pan and zoom, labels, and inspection sit above the existing route model. They cannot alter a trip’s mileage or schedule.
The tradeoffOnline imagery still needs connectivity; a loaded map is not a claim of offline coverage or current trail conditions.
Keep AI outside geographic authority
The broader design uses AI to interpret preferences and explain tradeoffs. Source data and deterministic code own coordinates, distances, constraints, and calculations.
The tradeoffMore domain code and curation are needed, but generated prose cannot silently become a trail fact.
Technical stack.
Mobile application
- React Native 0.86
- Expo SDK 57
- Expo Router
- React 19
- TypeScript
- React Native Web
Shared mobile interface with real native and browser development builds.
State and validation
- Zustand
- React Hook Form
- Zod
- Versioned TypeScript contracts
Validated input, explicit save boundaries, immutable route snapshots, and guarded navigation.
Local persistence
- SQLite
- OP-SQLite
- SQLCipher
- Web Locks
- Expo SecureStore
Transactional native storage and a separate browser adapter; private records remain local in the current planner.
Current mapping
- USGS topo imagery
- React Native SVG
- Web Mercator
- React Native Image
Online terrain imagery, route/day overlays, pan and zoom, mileage inspection, and distance references. Mapbox is also installed for the separate mapping integration.
Backend and trail infrastructure
- C#
- .NET 10
- ASP.NET Core
- GeographicLib.NET
- Supabase
- PostgreSQL
- PostGIS
- Cloudflare R2
- PowerSync
Deterministic computation, governed trail data, and cloud foundations are developed separately from the current local planning workflow.
Verification
- Jest
- React Native Testing Library
- xUnit
- SQLite integration tests
- GitHub Actions
- Docker
Model, interaction, persistence, and export checks accompany development. Native acceptance and physical-device testing remain separate from browser and model tests.