Zhinan | AI Bazi Decision Guide
A user enters a question and birth details, the application builds a Bazi chart, and AI streams guidance about relationships, work, finances, and life decisions.

Implementation example:Show an AI reading as it is generated
- The problem
- A complete reading takes time to generate, and users need a way to revisit their records.
- Implementation
- Stream responses from Gemini and save member records in Supabase, with row-level security, request rate limits, and daily quotas.
- What it does
- Users can read the response as it arrives. Members can save, revisit, and delete their own readings.
Key features
- Generate a Bazi chart from birth date, time, and gender
- Stream interpretations from Gemini as they are generated
- Let members save, revisit, and delete their own reading history
- Protect user data and service costs with RLS, rate limits, and daily quotas
Technical highlights
Next.js · Gemini · Supabase · Upstash Redis · next-intl