Bazi (Eight Characters) calculator / 八字排盘工具 / 八字排盤工具/ 四柱八字源码/周易源码
Input birth year, month, day, hour → Generate Bazi chart, four pillars, heavenly stems & earthly branches, luck pillars / 输入出生年月日时 → 生成八字排盘、四柱、天干地支、大运 / 輸入出生年月日時 → 產生八字排盤、四柱、天干地支、大運.
📱 Telegram:@fox_lovemyself
📧 Email:[email protected]
👉 联系我获取演示视频 + 详细报价
Input / 输入 / 輸入: Birth: 1990-05-15 14:00
Output / 输出 / 輸出: 八字: 庚午 辛巳 壬辰 丁未 四柱: 年柱庚午 月柱辛巳 日柱壬辰 时柱丁未 大运: 壬午 癸未 甲申 乙酉... 纳音: 路旁土 白蜡金 长流水 天河水
# 1. Clone repository
git clone https://github.com/deepseek7878/bazi-calculator.git
cd bazi-calculator
# 2. Install dependencies
npm install # Node.js
# 或
pip install -r requirements.txt # Python
# 3. Run the calculator
npm start # Node.js
# 或
python main.py # PythonOpen http://localhost:3000 in your browser / 在浏览器打开 http://localhost:3000 / 在瀏覽器開啟 http://localhost:3000.
- ✅ Solar → Lunar calendar conversion / 阳历转农历 / 陽曆轉農曆
- ✅ Heavenly stems & earthly branches calculation / 天干地支计算 / 天干地支計算
- ✅ Four pillars generation (年月日时柱) / 四柱生成 / 四柱產生
- ✅ Bazi chart visualization / 八字图表展示 / 八字圖表展示
- ✅ Luck pillars (大运) calculation / 大运计算 / 大運計算
- ✅ Traditional 子时算法 (early/late) / 子时早晚算法 / 子時早晚演算法
- ✅ 节气校准 / Solar terms calibration / 節氣校準
- ✅ 纳音五行 / Nayin five elements / 納音五行
bazi-calculator/ ├── src/ # Core calculation logic / 核心计算逻辑 / 核心計算邏輯 │ ├── calendar.js # Calendar conversion / 历法转换 / 曆法轉換 │ ├── stems.js # Heavenly stems / 天干 / 天干 │ ├── branches.js # Earthly branches / 地支 / 地支 │ └── bazi.js # Bazi calculation / 八字计算 / 八字計算 ├── charts/ # Chart generation / 图表生成 / 圖表產生 ├── examples/ # Sample data / 示例数据 / 範例數據 ├── public/ # Static assets / 静态资源 / 靜態資源 └── docs/ # Documentation / 文档说明 / 文件說明
This project can be extended for:
- AI-based Bazi interpretation
- Decision-making systems
- Personality modeling
👉 Bridging traditional metaphysics with modern AI
git clone ... cd project npm install npm run start A symbolic decision-making system based on Bazi (Four Pillars of Destiny).
- 🎉 Personal Bazi chart generation / 个人八字排盘 / 個人八字排盤
- 📚 Learning Chinese astrology / 学习中国命理学 / 學習中國命理學
- 🔗 Integration into websites/apps / 集成到网站或应用 / 整合到網站或應用
- 💼 Professional astrology tools / 专业命理工具 / 專業命理工具
- Four Pillars calculation engine
- Five Elements modeling
- Rule-based inference system
- Symbolic relationship mapping
Q: 子时怎么处理? / Q: 子时如何处理? / Q: 子時如何處理?
A: 支持早子时(23:00-23:59为前一天)和晚子时(0:00-0:59为当天)/ 支持传统早晚子时算法 / 支援傳統早晚子時演算法
Q: 准确性如何? / Q: 准确性如何? / Q: 準確性如何?
A: 基于传统算法计算,建议结合专业命理师解读 / 基于传统算法,专业解读为准 / 基於傳統演算法,專業解讀為準
Q: 支持农历输入吗? / Q: 支持农历输入吗? / Q: 支援農曆輸入嗎?
A: 当前支持阳历输入,自动转换为农历计算 / 当前仅支持阳历输入 / 目前僅支援陽曆輸入
Q: 可以商用吗? / Q: 可以商用吗? / Q: 可以商用嗎?
A: MIT License,允许商业使用,请遵守许可证条款 / MIT许可,允许商用 / MIT授權,允許商用
✅ Basic Bazi calculation
✅ Four pillars generation
✅ Solar terms calibration
✅ 子时早晚算法
✅ Chart visualization
Download: Latest Release
- 🔄 Lunar calendar input support
- 🔄 大运流年详细分析
- 🔄 Web demo
- 🔄 More chart styles
- Four Pillars calculation engine
- Five Elements modeling
- Ten Gods relationship system
- Rule-based inference logic
Input: 1990-05-15 12:00
Output:
- Year Pillar: Geng Wu
- Day Master: Fire
- Five Elements: Balanced
- AI-based Bazi interpretation
- Personality modeling
- Decision-support systems
Bridging traditional metaphysics with modern AI
git clone ... cd project npm install npm start
- Fork the repository / Fork仓库 / Fork倉庫
- Create feature branch (
git checkout -b feature/AmazingFeature) / 创建特性分支 - Commit changes (
git commit -m 'Add some AmazingFeature') / 提交修改 - Push to branch (
git push origin feature/AmazingFeature) / 推送 - Open Pull Request / 发起PR / 發起PR
This project is MIT licensed / 本项目采用 MIT 许可证 / 本專案採用 MIT 授權
MIT License
Copyright (c) 2026 deepseek7878
Permission is hereby granted, free of charge...
See LICENSE for complete details / 查看 LICENSE 获取详情 / 查看 LICENSE 獲取詳情
#bazi #八字 #chinese-astrology #命理 #zhouyi #周易 #fortune-telling #numerology
⭐ Star this repository if it helps you! / 如果帮助到你请点亮小⭐ / 如果幫助到你請點亮小⭐