calpics
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v5View latest version
A weight loss and fitness app that uses AI vision to analyze food images, calculate calories, and track your eating habits over time.
- πΈ Take pictures of your food
- π AI-powered food recognition and calorie estimation
- π·οΈ Automatic food tagging and description
- π Track your eating habits over time
- π± Mobile-friendly interface
- Upload a photo of your food
- The app uses Llama 4 Maverick vision AI to analyze the image
- Get instant feedback on calories, ingredients, and nutritional information
- View your eating history and trends over time
- Backend: TypeScript with Hono framework
- AI Vision: Llama 4 Maverick via Groq API
- Database: SQLite for data storage
- Frontend: HTML, CSS (Tailwind), and JavaScript
βββ backend/
β βββ database/
β β βββ schema.ts # Database schema
β β βββ queries.ts # Database queries
β βββ services/
β β βββ vision.ts # Groq API integration
β βββ routes/
β β βββ analyze.ts # Food analysis endpoint
β β βββ entries.ts # Food entries endpoints
β β βββ stats.ts # Statistics endpoints
β βββ index.ts # Main entry point
βββ frontend/
β βββ components/
β β βββ camera.js # Camera capture component
β β βββ history.js # Food history component
β β βββ stats.js # Statistics component
β βββ index.html # Main HTML template
β βββ app.js # Frontend logic
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared type definitions
- Visit the app URL
- Upload a food image or take a photo
- View the AI analysis of your food
- Track your progress over time
