The chart has to match the master's by hand, not one day off: building a subscription BaZi astrology app

The client wanted to turn an astrology master's BaZi, divination, date selection, and feng shui into a subscription app. The hard part was not the screens. The chart results had to match the master's hand calculations exactly, and the rules had to be adjustable for different schools.

Client
天命指引 (Tianming Zhiyin) / 星辰八字 (Xingchen Bazi): Subscription BaZi Astrology App
Industry
Other
Service
Custom web & apps
The chart has to match the master's by hand, not one day off: building a subscription BaZi astrology app
Results

What we delivered.

Core
Orthodox Five Elements BaZi chart engine
Applications
6 core features
Oracle interpretations
64 hexagrams × 6 life areas = 384 texts, all from the master's original manuscripts
Platforms
iOS / Android / Web
Story

01The client didn't want an app. They wanted an engine that calculates correctly

The client wanted to turn an astrology master's years of BaZi, divination, date selection, and feng shui into a subscription app. What they handed us: eight source documents, about 50,000 characters of rules and explanations, plus 24 screen designs.

One thing made this harder than a normal app: the chart results had to match the master's hand calculations exactly. What the client cared about most: a day calculated as Jiazi must always be Jiazi. Not one day off.

02How we did it

1. Separate the calculation from the interpretation

First we built the calculation as a standalone engine. Same birth date, same birth hour, always the same Four Pillars, Ten Gods, Day Master strength, and ten-year and annual luck cycles. When the year changes at Lichun (Start of Spring), when the month changes by solar term, how the Zi hour (11 p.m.–1 a.m.) is handled: all hard-coded to the master's school. Every chart records which version of the rules it used, so when rules change later, we can go back and compare.

The interpretation text lives in a separate layer. The client can edit it in the admin panel without touching the calculation.

2. Six applications, one shared engine

  • BaZi chart: natal chart, ten-year luck, annual, monthly, and daily cycles, plus readings on personality, romance, marriage, wealth, and career.
  • 64 Guanyin oracle lots: pick a life area, draw a lot, read the interpretation, including moving-line and changed-hexagram notes.
  • Imperial date selection: find auspicious dates and hours by event (weddings, moving house, opening a business, etc.).
  • License plate number energy: check whether the numbers are auspicious when choosing a plate.
  • Eight Mansions feng shui: calculate the Nine Palaces Flying Stars from the house's facing direction, mark where the door should go, and how to counter a door in the wrong place.
  • Marriage compatibility: combined BaZi chart for two people.

3. 384 interpretations, all from the master's manuscripts

The first auto-generated version had content for only 8 of the 64 hexagrams. The rest was placeholder text. We took the 64 hexagrams × 6 life areas from the master's documents, 384 interpretations in total, and entered them into the system one by one. Every one was written by the master. None were generated by us.

4. Red-and-gold temple style, rebuilt from the designs

An astrology app can't look like a generic minimalist app. Working from the master's 24 designs, we reproduced the red-and-gold palette, oracle slips, lanterns, cranes, and landscape elements. All illustrations were redrawn as vectors so they stay sharp on a phone.

03Where it stands now

The app is built. We keep adjusting content as the client adds new rules (for example, new daily and annual cycle text, and the Nine Palaces Flying Stars for feng shui). It is being prepared for release on the App Store and Google Play.

04My take

When you build a system for a specialist field, what matters most is not whether we understand astrology. It is turning the rules in the master's head, one by one, into code that can be verified, and letting the master change them himself. That is the same job we do when we build systems for factories and clinics.

Meet Johnny Yang →

Your projectTalk for 30 minutes,then decide.
Free 30-minute diagnostic · pick a slot online · with Johnny himselfIf, after the call, we do not think we are the right fit, we will tell you honestly.Or ask on LINE →