Open‑source bilingual Bazi terminology DB and React chart component
Описание и применение
Библиотека bazi-kit разделяет терминологию и визуализацию от расчётов, позволяя использовать любой движок и отображать двуязычные графики Bazi без переписывания UI.
Задача
Bazi software developers struggle with scattered terminology and tightly coupled chart UIs that depend on a single calculation engine, making it hard to reuse terminology or swap engines.
Результат
Developers can now render bilingual Bazi charts from any calculation engine without rewriting UI code, improving maintainability and internationalization.
Рабочий процесс
- 1. Install bazi-terms and bazi-chart via npm.
- 2. Import and use bazi-terms to translate raw engine output or to normalize data.
- 3. Feed the normalized data or raw engine output into BaziChart component.
- 4. Configure language (zh, en, both) and theme (light/dark).
- 5. Render the chart; missing data sections are omitted automatically.
Доказательства
bazi-kit never calculates anything. It takes chart data you already have and turns it into clean, bilingual, structured output or UI.
bazi-terms is a zero‑dependency, bilingual terminology database.
BaziChart auto‑detects the input shape, normalizes it, and renders — no calculation, no configuration ceremony.
- Дата записи: 2026-09-12T21:00:27.962Z