RepositoryTypeScript
Renhuai123

Renhuai123/ziwei-doushu

紫微斗数开源排盘引擎 — 基于倪海厦《天纪》体系,含完整排盘算法、四化系统、格局知识库、古籍原文数据

20.7kstars
4.0kforks
1issues
42views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: bazi

#1 Repository of the week

1
TINIX TRENDING·Topic: ziwei-doushu

#1 Repository of the day

1
TINIX TRENDING·Topic: divination

#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.

RepositoryTypeScript
ChesterRa/mingpan

中华术数 MCP 排盘服务:八字・紫微斗数・六爻・梅花易数・大六壬・奇门遁甲|Deterministic Chinese-metaphysics chart calculator for AI agents (MCP). Facts only — interpretation is left to the AI.

143
Nov 22, 2026
RepositoryPython
xuemian168/bazi-skill

Codex and Claude Code BaZi skill for 八字排盘, Zi Wei, true solar time, compatibility and auspicious timing

82
Nov 12, 2026
RepositoryPython
HeiGeAi/HeiGe-SuanMing

黑哥算命:可复现、可审计的八字与紫微排盘,梅花、六爻、奇门占测,新增手机号八星结构分析。脚本先计算,方法论再解释,支持 CLI、JSON 与脱敏 HTML 报告。 | Reproducible Chinese astrology and divination engines that compute first, then reason.

80
Sep 23, 2026
RepositoryTypeScript
calcom/cal.diy

Scheduling infrastructure for absolutely everyone.

50.5k
Nov 13, 2026
RepositoryTypeScript
gitroomhq/postiz-app

📨 The ultimate agentic social media scheduling tool 🤖

42.9k
Dec 2, 2026
RepositoryTypeScript
CopilotKit/CopilotKit

The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol

39.1k
Dec 1, 2026
RepositoryTypeScript
Brhiza/mingyu

八字、紫微、星盘、六爻、梅花、奇门、大六壬、小六壬、塔罗、雷诺曼、灵签、择日一站式玄学算命占卜工具包,输出结构化提示词与数据。提供公开 API、MCP Server 与 skill。

610
Nov 30, 2026
RepositoryTypeScript
miounet11/life-kline

🌟 人生K线 - 基于 AI 大模型 + 传统八字命理的人生运势可视化工具。将命运绘制成 K 线图,像看股票一样看人生!支持自托管部署。

485
Dec 22, 2025
RepositoryPython
ml8s/liki

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.

108
Nov 19, 2026