Renhuai123/ziwei-doushu

紫微斗数开源排盘引擎(倪海厦《天纪》体系):完整排盘算法 + 四化系统 + 格局知识库 + 古籍原文数据 — a Zi Wei Dou Shu (Chinese astrology) charting engine with the classical texts as structured data.

Updated 2026-07-29 · Source https://github.com/Renhuai123/ziwei-doushu · 中文版

What is the idea?

Turns a folklore domain into machine-readable infrastructure: full charting algorithms, the four-transformations system, a pattern knowledge base, and original classical-text data that an AI product can query directly.

Who would use it, and what do they get?

Non-developer user: a person curious about their own chart who cannot read classical Chinese. Finished thing: a readable page about their chart with the source passage beside each line.

Why would anyone bother?

Choose this engine for its unparalleled dataset and open-source accessibility, which allows for extensive customization and integration into various applications without licensing fees.

What is missing today?

It hits a real pain but stops one layer short of the person: 3.3k stars and 736 forks — a fork-to-star ratio above a fifth, which on this board counts as behaviour evidence — say builders are standing up their own copies, but what exists is a charting engine, not something a person asks a question of. The reading, in plain language, is still missing.

What makes this one different?

Do not build another 测算 app; build the honest translation layer. Chart in, plain-language reading out, every claim footnoted to the classical passage it came from, and an explicit line that this is a cultural text and not advice. The asset nobody else has is the structured original text — lean on provenance, which is exactly what the free apps cannot show. Cold start (Chinese): 小红书 and 豆瓣 紫微斗数 groups, where people post a chart screenshot and ask what it means; Cold start (English): r/ChineseAstrology and r/asianastrology, where the same charts are posted with no reading available in English at all.

What is the sharpest thing about it?

The moat is the corpus, not the code: digitized classical sources plus a rules engine, where competitors ship vibes-based LLM prompts.

What could kill it?

The category is policy-fragile in the market that pays for it: Chinese app stores and payment channels restrict 测算 monetisation, so distribution is the whole problem and the algorithms are public classics any incumbent can re-derive. Two contributors is also thin for a knowledge base that has to be right. And there is a self-limit here — this is folklore, not advice; the moment it drifts into telling someone whether to take the job, it is a liability.

Who pays, and for what?

Chinese-language fortune-telling is a proven paying market (测算 apps, 知识付费, livestream readings). Sell it as the charting API / licensed backend for AI companion and 测算 products instead of going consumer.

What is the main risk?

Two contributors, and the category is policy-fragile: app stores and payment channels in China restrict fortune-telling monetization, and any large 测算 app can re-derive the algorithms from the same public classics.

How much work is it?

about two weeks of work

Where does the evidence come from?

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

GitHubWatchingTwo weeks of work

KunAgent/Kun  ·  Yap – OSS on-device voice dictation for macOS with no model to…