Developer releases zero-dependency TypeScript library for Vedic astronomy calculations
A developer has launched grahan v0.1.0, an MIT-licensed TypeScript library that computes Sun and Moon positions, sunrise/sunset times, moon phases, and Vedic panchang data including tithi, nakshatra, and Rahu Kaal. The library has no runtime dependencies and works across Node 18+, browsers, and edge runtimes. To avoid licensing conflicts with the industry-standard Swiss Ephemeris, which is AGPL-licensed, the developer implemented calculations from public-domain sources including Meeus's Astronomical Algorithms, VSOP87 planetary theory, and the ELP-2000 lunar series. Accuracy was validated against 120 Sun/Moon longitude samples spanning 1900–2100 and 150 sunrise/sunset events across five global sites, achieving results 8 to 13 times within the stated tolerance thresholds. The project is available on npm under the package name @grahan/vedic, with all formulas cited to source references for full auditability.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in