Mastea
Tech Stack
Role
Full-stack Developer
Team Size
4
Duration
June 2025 - Ongoing
Project Overview
Mastea is an AI-powered personalized wellness tea platform that combines Traditional Chinese Medicine (TCM) Nine-Constitution theory with LLM-driven analysis to deliver a full-loop experience — from constitution assessment and tongue diagnosis to personalized tea recommendations. The frontend is a Taro React WeChat Mini Program; the backend runs FastAPI + PostgreSQL with DeepSeek-V3 for AI consultation and SSE streaming. Features include VIP subscription with custom tea blend formulas, health goal milestone tracking, long-term constitution record management, and a complete e-commerce system (cart, orders, WeChat Pay).
Highlights
- 12-question TCM constitution quiz + AI radar-chart report (composite score, constitution analysis, AI insights)
- AI tongue diagnosis — photo upload for tongue coating analysis and constitution-based health advice
- SSE-streaming AI wellness advisor powered by DeepSeek-V3 for real-time consultations
- VIP subscription system — custom tea blend ingredients with AI-precise dosage recommendations
- Health goal milestones — daily check-ins, tea reminders, tongue tracking, completion rewards
- Long-term constitution records — historical report timeline, score trend charts, periodic re-assessment reminders
- Full e-commerce system — seasonal picks, category filters, shopping cart, WeChat Pay, order management
Challenges
- API differences and syntax constraints of Taro React in WeChat Mini Program environment
- TailwindCSS class name compilation and adaptation in Mini Program WXSS
- Implementing SSE streaming responses via Mini Program RequestTask
- Secure tongue image upload to Tencent Cloud COS with proper authentication
- Scientific rigor of TCM constitution scoring and accuracy of AI recommendations
Solutions
- Built Taro compatibility layer unifying H5 and Mini Program API calls
- Custom TailwindCSS PostCSS plugin for Mini Program class name transformation
- ReadableStream-based SSE client wrapper with typewriter effect support
- Backend-issued temporary keys + client-direct COS upload to reduce server bandwidth
- Combined TCM Nine-Constitution standard scoring system with DeepSeek-V3 semantic analysis
AI-generated nine-constitution radar chart with composite health score report
AI daily health briefing with personalized wellness recommendations
Photo-based tongue coating analysis with AI constitution recognition
DeepSeek-V3 powered SSE-streaming AI wellness advisor
Detailed constitution breakdown (physical traits, symptoms, psychology, susceptible diseases) with AI insights
VIP custom tea blend formulas vs basic recommendations with AI-precise ingredients
Seasonal tea picks, category browsing, health goal check-ins and tongue tracking
Constitution score trend charts, historical report timeline, periodic re-assessment prompts