App that lets you put the pieces together for your fitness life.
- Connects to your smartscale/healthkit to get your weight
- Has an integrated calorie tracker
- Implements AI to provide recommendations that take a holistic approach:
- Your weight
- Your eating habits
- Emotional state /external variables
- Sleeping
In many ways it isn't. Except for a couple of critical factors: The unit of measure and the focus is the end user. I want you to lose weight, or gain muscle mass, I want you to live better. First and foremost. No monetization, no growth paths, no crazy expensive plans.
- CodeRabbit for PR reviews, unit tests, docstrigs, security checks
- Next.js framework
- Supabase for both DB and auth
- Pinecone for vector storage
- Inngest for long running API calls to LLMs, and background processes.
- Vercel for hosting
- Taskmaster to keep track of the project, use AI break it down into smaller steps.
- Tailwind
- Vercel AI SDK
- Shadcn for UI
This project includes a comprehensive Winston-based logging system for debugging authentication and other issues:
Features:
- Multi-environment support: Works in both browser and server environments
- Privacy-conscious: Automatically masks sensitive data like email addresses and passwords
- Multiple log levels: Error, Warn, Info, Debug with color-coded console output
- File rotation: Automatic log file rotation with size and date-based limits
- Real-time debugging: Comprehensive authentication flow logging
Quick Setup:
- Copy
env.exampleto.env.localand configure your Supabase credentials - Set
LOG_LEVEL=debugfor detailed debugging - Start development:
npm run dev - Check browser console and terminal for detailed logs
- Log files available in
logs/directory (development only)
Authentication Debugging: The login system includes detailed logging for:
- Form validation steps
- Supabase API calls and responses
- Authentication state changes
- Error conditions with full context
See docs/DEBUGGING.md for the complete debugging guide.
For this project, I'll be tracking changes in this doc.