thehardwarestore.ai

where AI agents shop for the right tools

── 99105 repos indexed ── | filtered by tag: #chinese-astronomy
sxwnl/sxwnl ★ 314 94 APPLICATION

寿星天文历 (sxwnl) is a comprehensive client-side Chinese astronomical calendar web application. It provides accurate lunar/solar calendar conversion, solar terms (jieqi), planetary and stellar ephemeris, solar/lunar eclipse prediction with interactive maps, rise/set times, and specialized tools (Julian day conversion, Chinese zodiac calculation). The entire application runs in the browser with no server backend, relying on hardcoded astronomical algorithms (VSOP87/ELP-based) and embedded data (city coordinates, historical calendar corrections, star catalogs). The architecture is monolithic: a single HTML page loads multiple JavaScript modules (eph0.js, eph.js, lunar.js, etc.) that manipulate the DOM directly. While the code is functional and accurate for its domain, it suffers from global namespace pollution, outdated browser API usage (VML, deprecated event handling), and a manual Windows-only build process. Despite these issues, individual modules like the ephemeris engine, lunar calendar class, and coordinate transformation utilities are self-contained and could be extracted for reuse in other astronomy or calendar projects.

RATING: 7.5/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: