How clarencechl/ai-four-pillars-of-destiny-assistant works
Project type and purpose
• This is a WeChat Mini-Program (“八字分析助手小程序”) that runs entirely on the client (微信小程序原生开发).
• Purpose: collect user birth information, compute a Bazi (“八字”) chart locally, then send it to an external AI service (DeepSeek API) for analysis and personalized recommendations.
File structure
• Top-level:
• miniprogram/ – all front-end code
– pages/ (index, input, analysis, chat)
– utils/ (bazi.js, api.js)
– app.js, app.json, app.wxss
• project.config.json / project.private.config.json – WeChat IDE config
• README.md, LICENSE
• No server-side code; backend is an external API (DeepSeek).
• The utils folder encapsulates all business logic: Bazi calculation and API calls.
README for additional insights
• Confirms use of:
• WXML + WXSS + JavaScript (WeChat native)
• DeepSeek API invoked via utils/api.js
• Bazi calculation in utils/bazi.js
• Features: conversational chat page, real-time analysis, no persistent storage.
• Pages (Index/Input/Analysis/Chat)
• Utils (Bazi Calculator, API Client)
• User → Pages (input flows)
• Pages → Bazi Calculator → API Client → External API → back
• UI components (e.g., light blue)
• Business logic modules (e.g., light green)
• External services (e.g., gray)
• Rectangles for modules/pages
Final recommendations
• Configuration files at the edge (app.json) if relevant
• Essential parts—don’t worry about micro-details; focus on the logical flow from user input to AI output.