SunCalc v2 – a tiny JavaScript library for sun and moon calculations
open-sourceShare
AI Summary
SunCalc v2 is a lightweight JavaScript library that calculates sun and moon positions, phases, and times (like sunrise, sunset, and moonrise) for any location and date. It’s designed for developers building astronomy-aware apps, from photography tools to gardening planners, and is interesting because it revives a 15-year-old open-source project with modern AI-assisted updates, making precise celestial data accessible in just a few kilobytes.
Cross-platform signals
Y
ViewHacker News
—
points
—
comments
You might also like
More in open-source