使用指南
How to Use This Reference

A practical guide to navigating this compendium.

About This Reference
This compendium is a bilingual reference tool for Chinese Metaphysics study and practice. It is based on the Ten Thousand Year Calendar by Joey Yap (Mastery Academy of Chinese Metaphysics). All data is organised for human reading and machine extraction.
How to Use the Calendar 如何使用萬年曆
STEP 1 — Find Your Year

Go to the Calendar page and locate your birth year. Note the Sexagenary Pillar (干支), Element, and Animal sign. Remember: the Chinese year begins at Lap Chun 立春 (approx. Feb 4–5), not at Chinese New Year.

STEP 2 — Find Your Month

Use the 24 Solar Terms page to find which Chinese month branch corresponds to your birth date. The month changes at each odd-numbered Solar Term 節, not at the calendar month boundary.

STEP 3 — Find Your Day

The Day Pillar requires a precise conversion table or software tool. Each day in the sexagenary cycle advances by one position. A reliable BaZi software or the printed Ten Thousand Year Calendar tables give the exact Day Pillar.

STEP 4 — Find Your Hour

Use the Five Rats Formula on the BaZi page. Find your Day Master stem and read across to the birth hour to get the Hour Pillar stem. The Hour Branch is simply the branch corresponding to the two-hour period of birth.

Data Structure & Machine Extraction
All reference data in this application is stored in data/index.js as structured JavaScript objects — arrays of plain objects with consistent field names. This means the data can be consumed programmatically without any HTML scraping.
API EndpointSectionKey Fields
/api/data/stems10 Heavenly Stemsindex, zh, pinyin, element, polarity, direction, colour, number
/api/data/branches12 Earthly Branchesindex, zh, pinyin, animal, element, polarity, month, direction, hiddenStems
/api/data/elementsFive Elementselement, zh, colour, direction, season, number, organ, produces, controls
/api/data/seasons24 Solar Termsindex, zh, pinyin, english, approxDate, element, season
/api/data/jiazi60 Jia Zi Cycleindex, stem, branch, zh, pinyin, element, nayinElement, nayinZh
/api/data/interactionsBranch InteractionssixCombinations, threeHarmonies, sixClashes, sixHarms, destructions, punishments
/api/data/bazi_gods10 Gods (BaZi)zh, name, english, relationship, polarity
/api/data/bazi_phases12 Growth Phasesphase, zh, stems (array per day master)
/api/data/calendarCalendar 1900–2050year, stem, branch, zh, pinyin, element, animal, flyingStarNum, loShu, facingDirection
/api/dataIndexLists all sections with item counts and URLs
To add more data: Open data/index.js and add a new key with an array or object value. The new endpoint /api/data/<yourkey> becomes immediately available. Update the corresponding view in views/pages/ to display it. All data is version-controlled in one file for easy maintenance.
Reference Codes Used in This Compendium
CodeSection
A.xFoundations — Yin/Yang, Five Elements, 24 Solar Terms
B.xStems, Branches, Interactions, BaZi
C.xZi Wei Dou Shu
D.xBa Gua & Yi Jing
E.xFeng Shui — Ba Zhai, Flying Stars, San He
Project Structure
wannianlii/
├── server.js          ← Express server, routes, page renderer
├── data/
│   └── index.js      ← All structured data (single source of truth)
├── views/
│   ├── partials/
│   │   └── layout.html  ← Shared HTML shell (nav, head, scripts)
│   └── pages/         ← One .html file per route
└── public/
    ├── css/style.css ← Responsive stylesheet
    └── js/page.js    ← Shared client scripts