How to build a Korean Saju (Four Pillars) calculator website
Open a working English Four Pillars calculator, customize its branding in one file and export eight static runtime files. Covers solar-term calculation conventions, UTC offsets and limits.
KitForAI ·

Start with an offline Four Pillars calculator
Building an English Korean Saju (Four Pillars of Destiny) website from scratch usually stalls on solar-term calendar math and time-zone rules. This walkthrough uses the actual files in the KitForAI Saju Website Kit, which pairs an offline calendar engine (lunar-javascript 1.7.7 under the MIT license) with an editable HTML, CSS and JavaScript interface.
Extract the ZIP, open START.html and launch index.html in your browser. Everything runs locally in the browser with no server, database or API key. You can also test the live demo first to inspect the example chart and birth-date form.
- Supports Gregorian birth dates from 1901 to 2099.
- Computes the Year, Month, Day and Hour pillars, hidden stems, English relationship labels and eight-symbol five-element counts.
- Birth details remain in browser memory and are never uploaded or saved.
Understand the solar-term and UTC offset conventions
Saju schools differ around solar-term and midnight boundaries, so the kit states its calculation rules explicitly on the page. The year changes at Li Chun and months change at the twelve Jie solar terms, compared as exact instants against the solar-term table.
Days and hours use local standard clock time with midnight day rollover (lunar-javascript sect 2 and its late Zi-hour convention). Visitors enter their birth time in local standard time and select the historical standard UTC offset for their birthplace. If daylight saving time was in effect, that adjustment (usually one hour) must be subtracted first.
- No automatic city geocoding, historical time-zone lookup or daylight-saving correction.
- No true solar-time longitude correction, lunar-date input or ten-year luck cycles.
- Five-element counts tally one per visible stem and branch (eight symbols total) without weighting hidden stems or seasonal strength.
Rebrand the site in brand-config.js
Open brand-config.js in a text editor to change the site name, tagline and extra entertainment disclaimer. Pine & Pillar Saju below is an illustrative example. Keep the quotation marks and structure intact, then refresh index.html to verify the header, footer and browser tab title.
If you want to adjust colors, typography or spacing, edit styles.css and source.js. You can also hand the extracted folder to an AI coding assistant and ask it to follow START.md.
window.KITFORAI_BRAND_CONFIG = {
siteName: "Pine & Pillar Saju",
tagline: "Four pillars. A quiet moment to reflect.",
disclaimer: "For entertainment and reflection only. Not medical, legal or financial advice."
};Export the eight public files and publish
With Python 3 installed, run the publishing helper below from the kit folder. It copies the eight public runtime files—including index.html, calculator.js, lunar.js, source.js, app.js, brand-config.js, styles.css and LUNAR-LICENSE.txt—into a clean public-site folder.
Upload only the contents of public-site to Netlify, Vercel, Cloudflare Pages, GitHub Pages or another static host. Keep LUNAR-LICENSE.txt in the published folder to preserve the MIT calendar notice, and keep private guides and the original ZIP out of your public web root.
python3 publish.py --output public-siteCheck commercial scope and bundle options
The English Saju Website Kit is $29 USD one-time, or $39 USD in the Tarot + Saju Website Bundle (saving $9 compared with buying separately). Hosting and domains are separate.
You may operate the finished branded site commercially for your own studio or publication, keeping the entertainment-and-reflection disclaimer visible. Reselling or redistributing the kit files as a template or starter pack is not permitted.