• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
yawnxyz

yawnxyz

calpics

Public
Like
calpics
Home
Code
5
backend
2
frontend
1
shared
1
README.md
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
4/22/2025
Viewing readonly version of main branch: v8
View latest version
README.md

FoodVision - AI Food Tracking App

A weight loss and fitness app that uses AI vision to analyze food images, calculate calories, and track your eating habits over time.

Features

  • πŸ“Έ 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

How It Works

  1. Upload a photo of your food
  2. The app uses Llama 4 Maverick vision AI to analyze the image
  3. Get instant feedback on calories, ingredients, and nutritional information
  4. View your eating history and trends over time

Technical Details

  • Backend: TypeScript with Hono framework
  • AI Vision: Llama 4 Maverick via Groq API
  • Database: SQLite for data storage
  • Frontend: HTML, CSS (Tailwind), and JavaScript

Project Structure

β”œβ”€β”€ 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

Getting Started

  1. Visit the app URL
  2. Upload a food image or take a photo
  3. View the AI analysis of your food
  4. Track your progress over time
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.