RSSAmplifier

Sailing through Code · Mar 14, 2026

Celestial Navigation in the Browser

0
Sign in to vote or save

Luke · Sailing through Code

Intercept started as a personal tool. I wanted a way to check my sextant sights against GPS.

The result is a progressive web app that runs entirely in the browser. You enter your observed altitude, the time of the sight, and your GPS position. Intercept computes the calculated altitude and azimuth using spherical trigonometry, applies all the standard corrections (dip, refraction, semi-diameter, index error), and draws your line of position on a Leaflet map.

The app lives as sailorslog.io/intercept/.

The entire astronomical calculation runs client-side; the only network request is loading the map tiles (which cache aggressively).

The stack

  • Astro for the static shell and routing
  • TypeScript for all sight reduction logic
  • Leaflet for map rendering
  • astronomy-engine for solar position calculations

Read the original on code.sailorslog.io

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.