Renhuai123/ziwei-doushu
紫微斗数开源排盘引擎 — 基于倪海厦《天纪》体系,含完整排盘算法、四化系统、格局知识库、古籍原文数据
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the day
#1 Repository of the day
🔮 Zi Wei Dou Shu Open-Source Charting Engine
Open-source Purple Star Astrology engine. Full algorithm, 518K sample dataset, zero math required.
Zi Wei Dou Shu charting system. Based on Ni Haixia's "Tian Ji" curriculum. Complete algorithm, Sihua transformation system, pattern knowledge base, ancient texts, 518,400-sample dataset. TypeScript + Next.js 14. Build astrology apps without reimplementing chart calculation.
✨ Highlights
- Complete Charting Algorithm: Life palace placement, five elements determination, fourteen main stars, auxiliary stars, major periods. All in
lib/ziwei/. - Sihua System:禄权科忌 transformation tables across all heavenly stems. In
sihua.ts. - Pattern Knowledge Base: 1,100+ lines. Covers紫府同宫, 日月并明, 七杀朝斗, classic patterns. In
patterns.ts. - Ancient Texts:骨髓赋,紫微斗数全集,紫微斗数全书. Full-text search. In
lib/classics/. - 518,400 Sample Charts: 5.5 GB dataset. 13 interpretation topics per chart. Matches online platform output exactly.
- Next.js 14 Frontend: Chart workspace,合盘 analysis, ancient text reader, encyclopedia, dark/light theme, mobile-adapted.
- SEO Knowledge Graph: 14 main stars × 12 palaces. Structured data for content generation.
- Commercial Friendly: MIT code license. Dataset free with attribution. Ancient texts public domain.
💡 Why it matters
Removes math barrier. Traditional Zi Wei Dou Shu requires complex chart calculation — engine handles it all in open-source code. 518K sample dataset enables AI fine-tuning, RAG retrieval, research. Unlike closed-source alternatives, algorithm and knowledge base fully transparent.
Best for developers building astrology apps, AI researchers on divination models, learners studying Zi Wei Dou Shu systematically.
#ChineseAstrology #ZiWeiDouShu #OpenSource #NextJS #TypeScript #TiniX
Similar Projects
Discover other similar projects and AI models.
中华术数 MCP 排盘服务:八字・紫微斗数・六爻・梅花易数・大六壬・奇门遁甲|Deterministic Chinese-metaphysics chart calculator for AI agents (MCP). Facts only — interpretation is left to the AI.
Codex and Claude Code BaZi skill for 八字排盘, Zi Wei, true solar time, compatibility and auspicious timing
黑哥算命:可复现、可审计的八字与紫微排盘,梅花、六爻、奇门占测,新增手机号八星结构分析。脚本先计算,方法论再解释,支持 CLI、JSON 与脱敏 HTML 报告。 | Reproducible Chinese astrology and divination engines that compute first, then reason.
The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol
八字、紫微、星盘、六爻、梅花、奇门、大六壬、小六壬、塔罗、雷诺曼、灵签、择日一站式玄学算命占卜工具包,输出结构化提示词与数据。提供公开 API、MCP Server 与 skill。
🌟 人生K线 - 基于 AI 大模型 + 传统八字命理的人生运势可视化工具。将命运绘制成 K 线图,像看股票一样看人生!支持自托管部署。
Liki Skill — Professional Astrology Skill for AI assistants. BaZi, Zi Wei Dou Shu, Liu Yao, QiMen, Feng Shui, date selection and Chinese naming, powered by a deterministic engine with traceable, verifiable readings. Works in Claude, Codex, Cursor and any MCP host. Free, MIT.