Open source
The stack this site stands on
A reader asked why they should pay for a reading when the algorithm is on GitHub. This page answers it: what the open-source projects actually do, which one this site uses, what we tested it against, and the part of the job none of them takes on.
The libraries on this page are good. Two of them are better than anything we could write, and one of them does the part of this site's arithmetic that has to be exactly right.
So the honest version of "why not just run a GitHub library" is: you can, and you will get a correct chart. What you will not get is an explanation, a source for any sentence in it, or a document you could hand to someone who paid for it.
A calendar library: solar terms, the sexagenary cycle, lunar dates, and an eight-character chart with a choice of two day-boundary conventions. It is the reference implementation behind a large share of the Chinese apps that show a 八字.
In this buildWe generate the site's solar-term table (1900–2100, all 4,824 terms) with it, then store seconds as well as minutes because several terms fall within five minutes of midnight.
A binding of 许剑伟's astronomical calendar. Computes 节气 and lunar dates from an ephemeris rather than from a correction table, which is why it is popular where exactness matters.
Why it is hereNot used in this build. Listed because it is the other answer to the same problem, and because a reader who wants a second opinion on a 节气 should have a second implementation to compare against.
A 紫微斗数 charting library — the other great charting tradition, where the board is twelve palaces with a hundred-odd stars rather than four pillars.
Why it is hereNot used here. This site reads the four pillars and the compass schools; the purple star board is a different method with a different vocabulary, and mixing them without saying so is how English readers get confused.
The most serious project in this space that we have read: a 紫微 engine, appended texts of 骨髓賦 and 紫微斗數全書, a 1,100-line pattern library, and generated chart datasets released under CC BY 4.0 (674,976 charts × 13 dimensions in the 2026-10 release).
Why it is hereNot used here — different method — but it is the model we have followed on provenance: every interpretive sentence traceable to a named text or a named lecture, and quotations deleted when the source could not be found. That is the same rule this site applies in the classics section.
An umbrella repository that gathers several methods — 八字, 六爻, 奇門, 紫微 — behind one interface.
Why it is hereNot used. It is useful as a map of what the ecosystem contains rather than as a source of answers.
What none of them take on
01
They compute; they do not translate.
A library will hand you 己巳, 丁丑, 乙未 and a list of ten-god labels. It will not tell an English reader that 己 is yin earth, that the day master is the only character the rest of the chart is read against, or that the labels are relational positions rather than personality types. That translation is not a feature you can switch on; it is the whole product.
02
They do not record where a rule comes from.
Ask a library why 五黃 counts as obstruction and it has nowhere to point. Ask it which text says 山上龍神不下水 and most will answer with a placeholder. We spent a week finding out that two of our own passages were filed under the wrong book; the libraries have the same problem and no place to write the correction.
03
They do not decide what happens when schools disagree.
Eight-house and flying star can read the same room in opposite directions. A library returns whichever its author implemented. A reading has to say which method is speaking, and what the other one would have said.
04
They do not absorb the consequences.
If a chart is wrong, nobody notices. If a paid reading is wrong, the reader has spent $29 on it and will say so. Being answerable is not a feature of a library.
What we checked, and against what
The library above is the reference this site measures itself against. These are the numbers from our own build, and the scripts that produce them are in the repository beside the generator.
4,824
solar terms tabulated for 1900–2100, each with the second stored
73,414
days from 1900 to 2100 on which our closed-form day pillar was compared with the library: zero disagreements
1,575
birth moments re-cast against the library as a regression, including the 立春 boundary: zero disagreements
144
ordered pairs of branches in the compatibility tool, counted and checked against an independent implementation
If a number on this page later turns out to be wrong, the page changes and the correction is written down. That has already happened once, to two classical passages: see the classics section and the claims we will stand behind.
The paid reading, and what is in it → Try the free chart first