Inspiration

I wanted a guide that answers "what's that peak?", "where's Saturn tonight?" or "take me to a viewpoint" anywhere. It's that simple: something that lets you explore with real knowledge from your bedroom, or navigate unfamiliar terrain with AI on the spot. And the best places to explore are often where your phone has no signal, which is exactly where cloud-only AI stops working. So it should use Gemini Nano on the device when it can, and Gemini in the cloud when it can't. It starts as a web app in Chrome, and the goal is an app on the phone you carry (see What's next).

What it does

Farside puts the ground around you, the real sky over it, and 3D space into one view, with an AI guide that knows all three.

  • Where you stand: Google's photo-real 3D, with every peak, town and landmark named where it really is on your horizon (hidden when something nearer blocks it). Offline, it switches to an open-data world built from OpenStreetMap and terrain.
  • The real sky: 42,000 stars, the planets, the Moon and live satellites, computed for your place and time and checked against NASA JPL Horizons. Clouds come from the forecast.
  • Ask about anything you see: "Where is the Basilica di San Pietro?", "Who designed the dome?", "Where is Saturn?". The guide turns you to it, opens a card with live facts, and answers in the language you asked in.
  • A map that works offline: zoom out and you rise to a map of the place. Ask it "Is there a church nearby?" or "Show me a route to the nearest coast".
  • Walking navigation: Gemini picks the place, the route is worked out on the device from the saved streets and footpaths (with the climb), and Gemini explains it: "38 minutes, 15 m up, past Fort Imperial…". The route is drawn on the ground in 3D and followed by GPS.
  • Space: step off the Earth and fly to Saturn, out among the nearest stars, look back at the Sun, and see the Big Bang's glow.

How I built it, and how it uses Firebase AI Logic

  • Hybrid inference: every model is created with Firebase AI Logic in InferenceMode.PREFER_ON_DEVICE.
    • In Chrome with Gemini Nano, answers run on-device. They're private and free, and they work with the network cut; I tested this on a production build reloaded offline.
    • Elsewhere (other browsers, phones, Nano not yet downloaded), the same prompts run on Gemini in the cloud through Firebase AI Logic (Vertex AI backend), protected by App Check with reCAPTCHA Enterprise.
    • Each answer is labelled On-device or Cloud.
  • The AI doesn't make up facts. Code computes them, and Gemini puts them into words:
    • Understanding: structured JSON output (a schema-constrained action).
    • Facts: from the sky engine (Astronomy Engine), the map and a router (A* over OpenStreetMap footpaths with Tobler's hiking function).
    • Wording: streamed answers in the question's own language (English, Spanish, Japanese, German, French).
  • Checking every answer: a small model sometimes slips, so each answer is held to its facts. Every number must be one the facts contain, "nearest / furthest / highest" must be true, and the place must be the kind that was asked for. A wrong answer goes back once with the correction; if it fails again, the guide states the true fact itself, in the user's language.
  • Offline by design: a service worker keeps the app, and one tap on "Save offline" in the top bar (it then reads "Offline ready") keeps the terrain, streets, buildings, names and a week of weather. Google's 3D content is never cached, as its terms require.
  • Stack: TypeScript, three.js, Firebase AI Logic, App Check, Firebase Hosting, Google Maps Platform 3D Maps, OpenStreetMap / OpenFreeMap, Open-Meteo.
  • Android: the android-app branch wraps the web app in Capacitor. A native plugin runs Gemini Nano through ML Kit's GenAI Prompt API (AICore) and presents it to Firebase AI Logic's on-device path.

Challenges I ran into

  • Putting the real sky behind Google's photo-real 3D: Farside reads Google's rendered frame pixel by pixel to tell its sky from its buildings, so the sky disappears naturally behind every tower.
  • Keeping a small on-device model accurate: see the answer checks above. Early versions called the nearest viewpoint "the furthest", and answered German questions in English.
  • Routing offline from map tiles: simplified tiles drop the points where streets meet, so the router splits lines where they cross; without that, a walk took a 6 km detour.
  • Chrome's on-device availability check can go silent offline, which held up the cloud fallback. It's capped, and the last known state is used.

Accomplishments that I'm proud of

  • A German question about a viewpoint, asked with the network cut, gets a walking route worked out on the device and explained by Gemini Nano in German, with every number checked. This was more tricky to achieve than it sounds.
  • One coherent product experience across the ground, the sky and space, rather than three demos.

What I learned

Hybrid AI works best when the model words facts that code has computed and checked, not when it's asked to know things. That keeps the on-device answers as trustworthy as the cloud's.

What's next for Farside

  • From web app to phone app. Farside is a web app for this hackathon, and that's the right place to prove the idea: Gemini Nano in Chrome, with nothing to install. But navigation belongs on the phone in your pocket. The places Farside is made for are a trail, a dark-sky site, or a coast abroad without roaming, and there it should be an installed app that works with no signal. The groundwork is done: the android-app branch already wraps Farside in a native app that runs Gemini Nano through Android's AICore on supported phones. So far it has been built and run in the emulator; the on-device path still needs testing on a supported phone. Next:
    • Firebase AI Logic's native Android SDK, for hybrid inference on Android itself;
    • iOS, with Apple's Foundation Models through Firebase AI Logic;
    • walks followed by GPS with the screen off;
    • larger saved regions for hikes that last several days.
  • Light pollution and moonlight in star visibility.
  • Shared saved regions for hikers and astronomy clubs.

Built during the submission period

Farside was started on 20 November 2026. On the first day it took over the 3D universe from my earlier WebXR project Parallax: the sky and space renderer, deep time, time-lapse, models, sound and voice, and the phone camera view.

Everything else was built during the competition:

  • the hybrid AI guide with Firebase AI Logic and App Check, and its answer checks;
  • the sky engine;
  • Land anywhere from space: click a point on the globe and drop straight down to it in photo-real 3D;
  • the whole Earth layer: Google's photo-real 3D composited with the sky, the offline open-data world, weather and clouds, offline saving;
  • the app, cards and phone layout;
  • the map and offline walking navigation;
  • the Android app.

Built With

Share this project:

Updates

Submission history