Categories
Self-hosted Chinese astrology Chart generator Horoscope Reference library Zi Wei Dou Shu Divination toolsStars
Forks
Watchers
Developer links
Ziwei Doushu
Ziwei Doushu casts a complete Zi Wei Dou Shu chart, the twelve-palace Purple Star astrology chart, from a birth date, birth double-hour, and gender, and shows you the whole board instead of a single fortune line. Enter the details and the engine places the fourteen major stars and supporting stars across the twelve palaces, marks each star's brightness on a seven-tier scale, and layers the Four Transformations for the natal chart, the current decade, and the current year, including flying-star self-transformations. Births near an hour boundary stay accurate because true solar time correction combines birthplace longitude with the equation of time, and the calendar edge cases are handled openly: China's 1986 to 1991 daylight-saving years, four selectable leap-month conventions, and the late Zi hour day change. Switch between natal, decade, and annual views to watch the same life read at three speeds, then look up what you are seeing. A star encyclopedia explains the fourteen major stars in each of the twelve palaces, a pattern library of more than 1,100 rules names the classic configurations on the board, and a classics library offers full-text search across public-domain source texts. Compatibility charting compares two people side by side, dark and light themes keep long study sessions comfortable, and the layout adapts to phones. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Complete Charts, Not Fragments
- Twelve palaces, fourteen major stars, seven-tier brightness, Twelve Gods, and natal, decade, and annual Four Transformations are generated together in one chart.
- Birth Time Handled Honestly
- True solar time uses longitude and the equation of time, with explicit handling for China daylight-saving years, leap-month choices, and the late Zi hour boundary.
- Study Material Built In
- A star encyclopedia, 1,100+ pattern rules, and searchable classical texts let you understand every placement on the board without leaving the application.
- Open Engine You Can Embed
- The MIT-licensed charting engine runs as a library or the bundled web demo, with released datasets covering hundreds of thousands of deterministic sample charts.
Features
- Twelve-Palace Chart Generation
- generateChart() takes a Gregorian date, hour-branch index, and gender, then places stars, brightness levels, and palace relationships into the full board.
- True Solar Time Correction
- Birth longitude and the equation of time adjust the double-hour, with China 1986 to 1991 DST detection and four configurable leap-month conventions.
- Four Transformations Layers
- Natal, decade, and annual transformations plus flying-star self-transformations are tracked separately, alongside the Twelve Gods for natal and annual layers.
- Pattern And Star Knowledge
- More than 1,100 pattern rules name classic configurations, while the encyclopedia explains fourteen major stars across each of the twelve palaces.
- Classics Library Search
- Public-domain Zi Wei Dou Shu classics are included with full-text search, and compatibility charting compares two natal boards in the web interface.