Renhuai123/ziwei-doushu
紫微斗数开源排盘引擎 — 基于倪海厦《天纪》体系,含完整排盘算法、四化系统、格局知识库、古籍原文数据
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #22 of 525 repositories GStars tracks this week (top 4%).
This week's +2,209 stars is ahead of its 30-day pace of about +720 per week.
2 releases in the last 90 days, the latest 9 days ago, with 4 contributors on GitHub.
Peaked at #5 in the weekly ranking the week of Oct 18, its best in the past year.
Use Cases & Benefits
- Implements a TypeScript-based open-source Ziwei Doushu astrology charting engine with complete algorithms, four transformations system, pattern knowledge base, and classical text data.
- Provides a highly accurate, historically validated astrology engine with extensive 13-dimensional interpretive datasets aligned to Ni Haixia's Tianji system, enabling deterministic and reproducible readings.
- Use for integrating traditional Chinese Ziwei Doushu astrology chart generation and interpretation into web or mobile applications requiring precise birth time and location adjustments.
- Use for researchers or developers needing large-scale, open-source astrology datasets for AI training, data analysis, or building custom interpretive models.
- Use for educational platforms or enthusiasts aiming to study or teach the Ni Haixia Tianji system with access to original classical texts and a comprehensive rule-based knowledge base.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Contributing guide: present
- Code of conduct: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
中文 · English
基于倪海厦《天纪》教学体系的紫微斗数排盘系统,包含完整排盘算法、四化系统、格局知识库、古籍原文数据,以及一套完整开源的紫微斗数解读数据:v4.0 解读数据集——67.5 万张命盘 × 13 维 = 877 万段解读,正文约 204 亿字,解压后 56.6 GB(2026-10-15 发布)。
v3.0 每张盘解读字数按 2,160 张盘抽样估算,其余数字为全量统计;两版每张盘都是 13 维。
在线体验:metisziwei.com,排盘、AI 解读、命盘历史全部开放。
注:关于六亲判断
紫微斗数在六亲(父母、兄弟、子女等)判断上存在一定局限。倪师在《天纪》中指出:“斗数批六亲本来就比较差一点。”(2上 · 00:25:27)在传统术数中,铁板神数在核对六亲方面有其独特优势(2上 · 00:03:15);倪师仍以紫微斗数为核心,是因为它能结合地理、环境与人事进行综合判断,形成“上知天文、下知地理、中知人事”的完整体系(2上 · 00:25:43)。因此,与六亲相关的分析仅供参考;metisziwei.com 上父母、兄弟、子女三个维度也附有同样的说明。
本轮跟随网站 2026-10-15 发版(网站内容版本
ca268829f7a9):1. 发布 13 维解读数据集 v4.0 —— 674,976 张命盘(公历 1950–2026 年每一个真实日期 × 12 时辰 × 男女)× 13 维 = 8,774,688 段解读,正文约 204 亿字。解压后 56.6 GB(v3.0 为 33.1 GB,增加 71%),压缩后只有 161 MB,按年份分 77 个文件,可以只下需要的年份,也可以一次下全年份总包。下载见 Release v4.0-13d,规格和字段见第二·新章。发布前 77 个文件逐个解压,与原始数据逐字节比对一致。
2. 13 维断语按倪师原话与《全书》原文逐句校正(断语库仍不开源,校正结果体现在 v4.0 数据集里):
3. 排盘引擎同步(PR #39)——
dst-cn.ts新增chinaDSTSpan(year),查某年中国夏令时起止;cities.ts补全省直辖县级单位与新疆兵团各市的经度(神农架、海南各市县、阿拉尔等),出生地选这些城市时真太阳时校正可用。4. 许可 ——
DATASET-LICENSE适用范围加上 v4.0;写明解读里引用的倪师原话不在数据授权范围内,与第五章倪师原话的 CC BY-NC-SA 4.0 一致。v3.0 样本数据集及其条款不变。
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+2,026 stars over 5 days across 6 snapshot days; best day +919 on Oct 23.
Forks
1.5K+460
Open issues
8+3
Compared with peers in Web
Fastest-growing repositories GStars tracks in this cohort for the week of Oct 25, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| anomalyco/opencode | 221.1K | +6.9K | 75 | 2 days ago |
| hmjz100/LinkSwift | 27.6K | +3.4K | 75 | 248 days ago |
| LibreSpark/LibreTV | 21.6K | +2.5K | 75 | 1 day ago |
| Renhuai123/ziwei-doushu | 7.3K | +2.2K | 75 | 9 days ago |
| pingdotgg/t3code | 29.9K | +1.8K | 75 | today |
| cursor/plugins | 13.9K | +1.7K | 75 | — |
| Category median | 27.6K | +2.5K | 75 | — |
Discover Repositories
Search across tracked repositories by name or description