# Life K-Line

> Life K-Line is a self-hosted, open-source web app combining Chinese BaZi astrology with AI to visualize life fortune as interactive K-line charts.

- **Category:** Data Visualization
- **Licence:** Apache-2.0
- **Latest version:** v1.0.2
- **Open source:** oss
- **Languages:** Typescript, JavaScript
- **Platforms:** Node.js
- **Tags:** SQLite, Visualization, Openai, Node.js, AI, React, Self Hosted, Openai compatible, Ai Analysis, Bazi, Chinese Astrology, Fortune Telling, K Line, Life Visualization

## Description

Life K-Line (人生K线) is a self-hosted web application that visualizes personal destiny using traditional Chinese BaZi (Eight Characters) astrology combined with AI large language models. It renders life fortune trajectories as interactive K-line charts similar to stock market visualizations, covering ages 1-100 with major and annual luck cycles. The application provides intelligent BaZi chart calculation with true solar time correction, AI-powered deep analysis covering personality, career, wealth, relationships, health, and even Web3/crypto trading fortune. It includes a celebrity case library for comparison learning and a knowledge hub for astrology education. The stack uses React 19, Vite, Express.js, SQLite (better-sqlite3), Recharts for charts, and lunar-javascript for precise calendar calculations. It supports any OpenAI-compatible API including local models via Ollama or LM Studio. Self-hosting requires Node.js 18+ and an AI API key; the backend runs on port 3000 and frontend on 5173. Licensed under Apache 2.0.

## Links

- [Homepage](https://github.com/miounet11/life-kline)
- [Website](https://www.life-kline.com)
- [GitHub Repository](https://github.com/miounet11/life-kline)
- [Issues / Bug Reports](https://github.com/miounet11/life-kline/issues)

---
Source: https://selfhost.directory/project/life-kline