Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built a BaZi/flying-star API where every answer is replayable (SHA-256)

Description and use

A BaZi and flying‑star API that returns all convention combinations, attaches provenance, and supports replay verification via SHA‑256, enabling deterministic, reproducible calculations for developers and AI agents.

Problem

Online BaZi calculators return inconsistent year pillars for the same birth date because they silently adopt different conventions (Lichun instant, Chinese New Year, January 1).

Outcome

The API delivers deterministic, replayable results with explicit provenance, resolves convention ambiguities, and provides a verifiable audit trail, enabling reliable integration into apps and AI agents.

Workflow

  • 1. Send a request to /v1/ganzhi, /v1/calendar, /v1/kua, or /v1/flying-star with date (and hour/gender as needed).
  • 2. Receive JSON response containing results for all relevant conventions and provenance fields.
  • 3. To verify later, POST the same request to /v1/replay with the input_digest; the API returns MATCH or MISMATCH.
  • 4. For agent integration, register the MCP endpoint via "claude mcp add --transport http fengshui https://fengshuicalculator.com/v1/mcp" and use the listed tools (calendar, ganzhi, etc.).

Evidence

Ask three online BaZi calculators for the same January birth date and you can get three different year pillars.

Source

Every response carries provenance: engine version, ruleset id, and a SHA-256 input_digest computed over the JCS-canonicalised request.

Source

Conventions are returned side by side. /v1/ganzhi returns all four year-convention × day-boundary combinations rather than guessing which one you meant.

Source

  • Record date: 2026-10-23T10:11:35.066Z