Inspiration

Overwhelming health goals kill motivation. Wanted a coach that breaks "run 5km" into "walk 5 minutes today" - realistic, achievable steps that actually build habits.

What it does

Takes your focus area (exercise/sleep/diet), big goal, and today's reflection → generates ONE tiny 5-15 minute micro-action. Full-stack app with React UI + Node backend API calling AI for personalized suggestions.

How we built it

  1. React frontend: Form → loading states → micro-goal display
  2. Node/Express backend: /api/micro-goal POST endpoint
  3. AI integration: Hugging Face Inference API (Phi-3 model) with smart mock fallbacks
  4. CORS, error handling, focus-area context awareness

Challenges we ran into

  • CORS blocks on Hugging Face direct API → Built Node proxy server
  • Free AI endpoint changes (api-inference → router.huggingface.co)
  • GitHub secret scanning blocked pushes → Fixed with .gitignore + clean history
  • Model availability (404s) → Switched to reliable Phi-3-mini-4k-instruct

Accomplishments that we're proud of

Full-stack production app (React + Node/Express) in 24h

What we learned

  • Free AI APIs need proxy backends (CORS/model limits)
  • GitHub push protection = lifesaver (secrets never exposed)
  • Smart mocks > flaky free tiers for demos
  • Router.huggingface.co text-generation API patterns

What's next for Micro Goal Habit Coach

  • LocalStorage history + streak counter
  • Deploy to Vercel (frontend)+ (backend)
  • Real-time push notifications for daily goals
  • User accounts + goal progress tracking
  • Voice input via Web Speech API

Built With

Share this project:

Updates