Skip to content
XiaoArnavPublic

Repository files navigation

๐ŸŒฟ WildTrail

Step outside. Discover more. Keep every wild encounter.

A privacy-first nature exploration PWA with on-device open AI and offline vector maps.

Live Demo Hacktoberfest 2026 MIT License Progressive Web App


๐ŸŒพ Built for the Hacktoberfest Open-Source AI Challenge: Week 1 ("Touch Grass")
Getting people off the screen and into the real world with open-weight computer vision, client-side vector cartography, and no analytics, accounts or tracking.

Your pocket-sized field station โ€” built for curious minds, muddy trails, and the little things worth noticing.


๐ŸŒฟ The Mission: The Wild is Closer Than You Think

Most modern applications are engineered to keep you staring down at glass screens. WildTrail does the exact opposite: it turns your walk through a neighborhood park, forest reserve, or mountain trail into an immersive botanical expedition.

Identify wildlife in real time using open neural models running directly inside your browser. Mint vintage, tactile 3D specimen stamps for every creature or wildflower you encounter. Watch the RPG-style fog-of-war lift as you physically hike outdoors. And navigate remote wilderness without cellular coverage using genuine, local PMTiles vector maps.

flowchart LR
    A["๐ŸŒฟ 1. Step Outdoors"] --> B["๐Ÿ“ท 2. Point Camera"]
    B --> C["๐Ÿง  3. On-Device AI"]
    C --> D["๐Ÿท๏ธ 4. Confirm Species"]
    D --> E["๐Ÿ“– 5. Mint 3D Stamp"]
    E --> F["๐Ÿ—บ๏ธ 6. Uncover Fog-of-War"]
    F --> A
Loading
๐Ÿ“ท Discover ๐Ÿ“š Collect ๐Ÿ—บ๏ธ Explore
Identify flora and fauna on-device with open neural vision models. Transform encounters into tactile, scalloped 3D specimen stamps. Track your trail and uncover map territory cell-by-cell as you hike.

๐Ÿ“ธ Visual Walkthrough

01 ยท On-Device Species Scanner

Point your camera at any bird, flower, insect, or animal. The vision pipeline runs directly inside your device's browser runtime using WebGPU and WebAssembly. No photos are ever uploaded to cloud servers.

WildTrail species scanner showing tiger identification

Instant species suggestions with confidence scoring, hardware lens switching, exact 1:1 framing parity, and a mechanical 35mm SLR shutter sound.


02 ยท Collectible Field Guide & 3D Stamps

Every confirmed observation is minted into a vintage postage stamp. Browse your personal herbarium across kingdoms (Animals, Birds, Plants, Insects), arrange finds by recency or name, and tilt cards to inspect scalloped edges and handwritten field notes.

WildTrail Field Journal showing collectible nature stamps

Interactive specimen archive featuring multi-axis 3D tilt physics, card flips, and explorer XP progression.

๐Ÿท๏ธ Specimen Stamp Gallery Sample

Tiger collectible stamp
๐Ÿ… Animals
Panthera tigris ยท 65 XP
Razorbill collectible stamp
๐Ÿง Birds
Alca torda ยท 55 XP
Penguin collectible stamp
โ„๏ธ Polar Fauna
Spheniscidae ยท 50 XP
Euphorbia milii collectible stamp
๐ŸŒธ Plants
Euphorbia milii ยท 30 XP

03 ยท Territory Fog-of-War & Offline Maps

Experience your neighborhood or backcountry trails like an RPG world map. Fog-of-war tiles conceal unexplored terrain until you physically hike through them in 20-meter cells. GPS pathfinding paints glowing trail breadcrumbs, calculates total distance walked, and places interactive discovery pins.

WildTrail Territory map with GPS tracking controls and exploration statistics

Dynamic fog-of-war, Google Maps-style dynamic flashlight vision cone, multi-touch rotation, and offline vector cartography.


04 ยท Vintage Herbarium Postcard Export

Export your wildlife discoveries as archival botanical collector postcards. Generated entirely on-device using HTML5 Canvas, each postcard combines high-resolution photography, scientific binomial taxonomy, discovery GPS coordinates, and vintage postmark cancellation stamps ready to share with friends.


๐Ÿ”’ Client-Side Local Architecture

WildTrail is engineered around a client-side architecture (the app has no backend servers):

flowchart TD
    subgraph Client["๐Ÿ“ฑ User Device (Client-Side, No Backend Servers)"]
        UI["๐ŸŒฟ WildTrail PWA Shell (Vanilla ES6+ / CSS3)"]
        Vision["๐Ÿง  Transformers.js ยท CLIP ViT-B/32 (ONNX / WebGPU)"]
        Audio["๐Ÿ”Š Web Audio API (Dual-Resonance SLR Mechanical Shutter)"]
        GIS["๐Ÿ—บ๏ธ MapLibre GL JS + PMTiles v3 (Vector Tile Engine)"]
        Storage[("๐Ÿ’พ IndexedDB: Finds ยท GPS Tracks ยท Offline Regions")]

        UI <--> Vision
        UI <--> Audio
        UI <--> GIS
        UI <--> Storage
    end

    subgraph Remote["๐ŸŒ Caches Once on Wi-Fi ยท Works Fully Offline Thereafter"]
        NoServer["โŒ No Backend Application Servers"]
        NoDB["โŒ No Cloud Databases"]
        NoTrack["โŒ No Analytics, Accounts, or Tracking"]
    end
Loading

Note

Privacy Guarantees:

  • On-Device Inference: After initial first-load caching, all AI vision, GPS tracking, and specimen operations run entirely on your device.
  • No Accounts or Logins: Start exploring immediately without entering an email, password, or third-party OAuth provider.
  • Private Coordinates: Your location is processed solely within local browser memory to unmask fog-of-war cells.
  • Data Ownership: Export your entire journal and trail history as a single JSON file, or wipe local storage with one click.

Privacy note: The default online basemap fetches map tiles from OpenFreeMap, which can see your IP address and the map area you view. Your photos, finds, GPS track and AI inference never leave your device. To avoid any map requests, import or download an offline PMTiles pack.


๐Ÿ—บ๏ธ Complete Offline Vector Maps System

For deep backcountry expeditions without cell signal, WildTrail provides an end-to-end offline cartography pipeline:

flowchart LR
    A["โญ Demo Pack\n(Taipei Botanical Reserve)"] --> B["โšก Chunked ReadableStream\n(Real-Time Progress)"]
    B --> C["๐Ÿ” PMTiles v3 Header Check\n(Bounds & Format Validation)"]
    C --> D["๐Ÿ’พ IndexedDB Persistence\n(Persistent Device Storage)"]
    D --> E["๐ŸŒฒ Offline MapLibre GL JS\n(Offline navigation with a downloaded pack)"]
Loading
  • Default Online Basemap (OpenFreeMap): Powered by MapLibre GL JS and OpenFreeMap Liberty style (https://tiles.openfreemap.org/styles/liberty), highlighting forests, nature reserves, green spaces, waterways, and walking trails without API keys or commercial dependencies.
  • 1-Click Wilderness Pack Downloader: Download self-contained wilderness maps (such as our demo pack: Taipei Botanical Reserve, ~300 m area, 6.7 MB โ€” Map data ยฉ OpenStreetMap contributors (ODbL)) directly inside the app with real-time streaming progress bars (ReadableStream), no manual hunting for files, and automatic IndexedDB persistence.
  • Dynamic Flashlight Vision Cone: Google Maps-style field of view beam that rotates smoothly in real-time with device compass orientation and GPS movement.
  • Two-Finger Touch Rotation: Rotate map orientation freely with multi-touch gestures, with an interactive HUD button to snap North-up.
  • Custom URL Downloader & Archive Inspector: Download any public, CORS-enabled .pmtiles archive by direct URL, or inspect geographic bounding boxes, zoom levels ($z0โ€“z21$), and vector layer schemas.
  • Offline Storage Management: Live storage quota meter calculates exact MB usage and available disk space (navigator.storage.estimate).

๐Ÿ—๏ธ Technology Stack

Layer Technology Purpose
Interface HTML5, CSS Variables, Vanilla ES6+ No bundler bloat, instant startup, responsive mobile design
Vision AI Transformers.js ยท CLIP clip-vit-base-patch32 On-device neural image classification via WebGPU/Wasm
Online Basemap MapLibre GL JS ยท OpenFreeMap GPU-accelerated vector street/topo map without API keys
Offline Mapping PMTiles ยท Protomaps Local .pmtiles archives persisted in IndexedDB for backcountry use
Local Persistence IndexedDB (finds, track, regions, meta) Structured private storage that survives reloads and restarts
Audio Engine Web Audio API + HTML5 Audio Dual PCM synthesis for vintage SLR mechanical shutter sound
PWA & Cache Service Worker (wildtrail-v51) ยท Web App Manifest Full offline shell caching and standalone home-screen experience
Deployment Vercel Edge hosting without server maintenance

๐Ÿš€ Quick Start & Installation

Try the Live Web App

๐Ÿ‘‰ Open WildTrail โ†’ https://wildtrail-chi.vercel.app

For the optimal outdoor experience, open the link in your mobile browser and install it to your home screen.


Install as a Progressive Web App (PWA)

  • iPhone / iPad: Open the site in Safari โ†’ tap Share (box with arrow) โ†’ tap "Add to Home Screen".
  • Android: Open the site in Chrome โ†’ tap Menu (โ‹ฎ) โ†’ tap "Install app" or "Add to Home screen".
  • Desktop: Click the install icon in the URL bar (Chrome / Edge / Brave).

Tip

Backcountry Preparation: Open WildTrail once while connected to Wi-Fi to cache the application shell, vector map engine, and AI model weights (~90 MB). Once cached, the entire application functions without an internet connection in the wilderness.


Run Locally

Camera and geolocation APIs require a secure origin (HTTPS or localhost):

# 1. Clone the repository
git clone https://github.com/XiaoArnav/wildtrail.git
cd wildtrail

# 2. Start a local static server
python3 -m http.server 8000

Open http://localhost:8000 in your browser.


๐Ÿ—บ๏ธ Roadmap & Milestones


๐Ÿค Contributing & Hacktoberfest 2026

Contributions, bug reports, and ideas are warmly welcomed! WildTrail is an active open-source project participating in Hacktoberfest 2026.

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feat/your-improvement
  3. Test your changes thoroughly across desktop and mobile browsers.
  4. Submit a clear pull request with descriptions and UI screenshots.

Hacktoberfest Quality Standards: In alignment with official Hacktoberfest rules, contributions must add genuine value (e.g. bug fixes, new species classifications, accessibility improvements, or offline optimizations). Automated copy-paste PRs or trivial whitespace edits will not be accepted.


๐Ÿ“œ Credits & Open Source Attribution

WildTrail is made possible by open-source libraries and open geographic data:


โš–๏ธ License

Distributed under the MIT License. ยฉ 2026 Arnav Patel.

Made for the curious. Inspired by the wild. ๐ŸŒฑ

Explore WildTrail ยท View Source Code