Free Saju (Four Pillars / BaZi) reader in 20 languages — open source, solar-term correct #2
hoonsikim
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone, sharing what Ive been building for the past month.
TL;DR: A free Korean Saju / Chinese BaZi / Japanese 四柱推命 reader that works in 20 languages, computes correctly (solar-term-aware), and ships as ~12KB of vanilla JS.
What it is
Four Pillars of Destiny (年/月/日/時柱) is an East Asian system that maps your birth moment to four heavenly-stem + earthly-branch pairs. From those, traditional masters infer day master, five elements balance, ten gods, hidden stems, 12 life stages, void branches, and 神煞 (auspicious stars).
Most online BaZi calculators silently get the month pillar wrong — they use solar months instead of the 24 solar terms (節氣). This one uses
lunar-javascriptand is tested against the 立春 (Lichun) boundary.Why I built it
Most "premium" BaZi services charge $30+, sit behind Mandarin/Korean-only UIs, and obscure their methodology. Computing four pillars is math — it should be free. Interpretation is where the art lives — thats the optional $7 paid tier with Claude Opus 4.8.
Stack
lunar-javascriptfor solar/lunar conversion + four pillars/promptendpoint)saju.thehueviz.com)What I would love feedback on
Happy to answer methodology / stack questions. PRs welcome.
All reactions