BACK TO PROJECTS
002 — PROJECTS

Mastea

WeChat Mini Program2025(WIP)

Tech Stack

TaroReactRedux ToolkitTypeScriptTailwindCSSPythonFastAPIPostgreSQLSQLAlchemyAlembicDeepSeek-V3WeChat PayTencent Cloud COSJWTSSE

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
Constitution radar chart and health report

AI-generated nine-constitution radar chart with composite health score report

Daily health briefing

AI daily health briefing with personalized wellness recommendations

AI tongue diagnosis

Photo-based tongue coating analysis with AI constitution recognition

AI conversational consultation

DeepSeek-V3 powered SSE-streaming AI wellness advisor

Visual constitution assessment

Detailed constitution breakdown (physical traits, symptoms, psychology, susceptible diseases) with AI insights

Personalized tea recommendations

VIP custom tea blend formulas vs basic recommendations with AI-precise ingredients

Tea shop and health milestones

Seasonal tea picks, category browsing, health goal check-ins and tongue tracking

Long-term constitution records

Constitution score trend charts, historical report timeline, periodic re-assessment prompts

Mastea | Klauden