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 miliseconds.
This directory contains the frontend code for the FoodVision app.
index.html
: Main HTML templateapp.js
: Frontend JavaScript logicstyle.css
: Additional custom styles
- Camera integration for taking food photos
- File upload for existing food images
- Real-time food analysis with AI
- Food entry history display
- Calorie tracking and statistics
- HTMX for AJAX requests and DOM updates
- Mustache for client-side templating
- Chart.js for data visualization
- Tailwind CSS for styling
- The user can either take a photo using their device camera or upload an existing image
- The image is sent to the backend for analysis
- The AI analyzes the image and returns information about the food
- The results are displayed to the user
- The entry is saved to the database for future reference
- Statistics and history are updated automatically