Skip to content
← Projects

moon-sighting

Crescent moon visibility predictions backed by the bundled JPL DE442S ephemeris.

TypeScriptnpm

About

moon-sighting predicts crescent moon visibility for any location and date, backed by the bundled JPL DE442S ephemeris. Zero runtime dependencies — the ephemeris ships with the package.

Install

npm install moon-sighting

Quick start

import { initKernels, getMoonSightingReport } from 'moon-sighting';

await initKernels();

const report = await getMoonSightingReport(new Date('2025-03-29'), {
  lat: 51.5074, lon: -0.1278, elevation: 10,
});

console.log(report.yallop.category); // 'A' — easily visible to the naked eye
console.log(report.odeh.zone);       // 'A' — visible with naked eye

Full API and options onGitHub and npm.