Comprehensive interpretation of 204 billion characters in astrological charts is now open-source: 675,000 Purple Star astrology charts and 56.6 GB of data are available for commercial use.

Comprehensive interpretation of 204 billion characters in astrological charts is now open-source: 675,000 Purple Star astrology charts and 56.6 GB of data are available for commercial use.

2 weeks ago
duguying
24 views
Source: GitHub

Ziwei Doushu Open-Source Charting Engine v4.0: Dataset Description – 674,976 Charts × 13 Dimensions, totaling approximately 8.77 million interpretations and around 2.04 billion characters, released under the CC BY 4.0 license for commercial use.

Related tags

#GitHub#Trending#开源数据#数据集

Summary: The “ziwei-doushu” open-source chart interpretation engine v4.0 has been released, containing 674,976 charts and 8,774,688 interpretations covering 13 dimensions, totaling approximately 204 billion characters. This dataset is available for commercial use under the CC BY 4.0 license. The project also includes 546 new stars added on October 6th.

A traditional astrology project has achieved a peak of 546 stars on GitHub Trending today. Renhuai123/ziwei-doushu is doing something quite simple: converting the rules for interpreting 紫微斗数 into code and generating all relevant texts based on Ni Hai Xia’s “Tianji” system, then releasing them openly.

What makes this repository stand out is the scale of the dataset. The v4.0 interpretation dataset was released on October 15, 2026: 674,976 charts, each with 13 analysis dimensions, totaling 8,774,688 interpretations and approximately 204 billion characters. After decompression, it occupies 56.6 GB, but compressed, it only takes up 161 MB – divided into 77 zstd files by year, you can simply download the data for that year without having to download the entire package. The charts cover every real date from January 1, 1950, to December 31, 2026, multiplied by 12 time periods and two genders (male/female), with an average of approximately 30,000 characters per chart.

Non-AI Generated Content

This data is particularly interesting because of its generation method: the chart interpretation engine combined with a dictionary of interpretations, generating results with certainty without relying on large language models. In an era where everything is being directed towards LLMs, this “reproducibility” has become a rare asset. You can use it as a benchmark for data, for retrieval, and for evaluation, without worrying about the answers changing each time.

The data is stored in JSON Lines format, with one chart per line. The fields are carefully designed: represents a key in the format “YYYY-MM-DD-时辰序号-性别”, while 、、 represent the Gregorian date (only including existing dates, such as February 30th is excluded), represents the hour number from 0 to 11, and indicates the main star in the ascendant palace (null if there is no main star in the ascendant palace), and contains the full interpretation of the 13 dimensions.

The 13 dimensions are: a general overview of the chart, personality traits, emotional characteristics, career prospects, financial luck, health status, sibling relationships, children’s fortunes, migration, interpersonal relationships, property, wealth, and parents.

How is the dictionary calibrated?

The core work of v4.0 compared to the previous version is not “multi-generation,” but “sentence-by-sentence verification.” The project has gone through the interpretation dictionary according to the text in “Tianji” and the original text in “紫微斗数全书”:

  • It marked out quotations that could not be found in Ni Shi or “全书”, replacing them with verbatim versions from “Tianji”第几集, 几分几秒;
  • Sentences related to four phases (such as 七杀化权, 紫微化忌) that would never occur were directly deleted and only completed conditions were added;
  • Sentences such as “when strength is strong… when it declines…” were changed to present only the one that is valid for a given chart;
  • For the health dimension, it followed Ni Shi’s approach: taking the palace with the most集 of killing stars, corresponding to the organ according to its支, without using star曜五行 to determine the organ;
  • The “ancient references” in the website knowledge base increased from 244 to 405, and each reference could be found verbatim in the original text of “紫微斗数全书”.

On October 20th, there is an additional note: The default brightness value for star曜 has been changed to match the standard in “斗数全书,” which is consistent with mainstream charting software. Previously, the default “modern correction v2” can still be switched in the flow setting. It also completes the brightness of 天姚、天刑、天喜、大耗、解神、截空、副截、旬空. The project used 5 gold standard charts to verify each palace, and star曜 and亮度 all match. This means that the data on October 15th was generated based on the old default settings, and there will be differences between the brightness words and a few interpretation sentences that change with brightness compared to the new default setting – this approach of explicitly stating the differences is more credible than simply claiming “absolute correctness.”

Engine Side: Tackling Difficulties Related to Calendars

The accuracy of charting relies heavily on calendar details. This part of the project is located in : true solar time correction (longitude difference plus average time difference), China’s summer time interval from 1986 to 1991, conversion between lunar and Gregorian calendars and boundary of leap month, twelve gods, context with 童限. The update on October also completes the longitude of provincial and municipal units in mainland China, as well as those in Xinjiang and the military district. When choosing these cities for birth, true solar time can only be used after the correction.

Two years ago, this repository had no tests, but now it has 5 charting regression tests that can run with a single command: , each push and PR is automatically executed on GitHub Actions.

Boundaries are Clearly Defined

The license is layered: MIT for chart code, CC BY 4.0 for the interpretation dataset (the only requirement is to retain the source), ancient texts are in the public domain, while interpretations that cite Ni Hai Xia’s original words follow a separate CC BY-NC-SA 4.0 license. The dictionary itself is not open source – only the engine, ancient data, and generated results are open.

In the context of Chinese open-source datasets, this project is forming a new model: to solidify expert knowledge in a specific vertical domain using deterministic programs plus full data, then release it completely. It does not pursue the novelty of “interpreting charts with AI,” but focuses on achieving accuracy, reproducibility, and commercial use. For people who do Chinese vertical datasets, this 56.6 GB sample is worth studying more than its stars.

Repository address: https://github.com/Renhuai123/ziwei-doushu

More News

Want to see more quality content?

Browse all news