GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mblode/moon: See tonight's moon as it looks from where you are, then scrub through the lunar cycle

BranchesTags
Open more actions menu

Latest commit

 

History

66 Commits
66 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github/assets
.github/assets
 
 
.zed
.zed
 
 
app
app
 
 
components
components
 
 
lib
lib
 
 
public
public
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
components.json
components.json
 
 
lefthook.yml
lefthook.yml
 
 
next.config.ts
next.config.ts
 
 
oxfmt.config.ts
oxfmt.config.ts
 
 
oxlint.config.ts
oxlint.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 

Repository files navigation

Moon Phases

See tonight's moon as it looks from where you are, then scrub through the lunar cycle

Pick your city, read the phase and illumination, and watch the crescent lean the way it really leans at your latitude.

Tonight's waning crescent rendered in 3D, with the phase, distance and time scrubber below

Demo

A physically lit moon, mapped with NASA Lunar Reconnaissance Orbiter surface data.

Open the app

What you can do

  • Read the phase: phase name, lit fraction, and distance in kilometres for the moment you are looking at.
  • Find it in the sky: a compass bearing and altitude, or a note that it is below the horizon.
  • Travel in time: scrub forwards and back a whole day per step, and watch the terminator sweep across real craters.
  • Set where you are viewing from: a city list, or "Use my location" for your exact latitude.

How it is built

  • The phase is computed, never animated: sun direction, illumination, and orientation come from real Sun and Moon geometry via astronomy-engine.
  • The moon is tidally locked, as it is in life: the sphere holds still and the light moves around it.
  • The scene frame is zenith-up: so a crescent from Melbourne leans differently from one in London, which is the point of the page.
  • The maths is cross-checked: the lit fraction is verified against Illumination() and the bright-limb angle against a closed-form Meeus solution implemented independently.

Notes

  • Requires WebGL and a browser with JavaScript enabled.
  • Surface relief is a NASA LRO normal map (albedo, normal, and roughness, 2048x1024 WebP).
  • Your city is guessed from the browser timezone, so nothing is requested on load and no geolocation prompt appears until you ask for it.

License

MIT


Crafted by Matthew Blode

About

See tonight's moon as it looks from where you are, then scrub through the lunar cycle

blode.co/moon

Topics

astronomymoon-phasesnextjsreact-three-fiberthreejs

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.