• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
fezokuhlekhumalo14

fezokuhlekhumalo14

ATM

Public
Like
ATM
Home
Code
4
backend
3
frontend
2
shared
1
README.md
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
/
Code
/
Search
index.ts
https://fezokuhlekhumalo14--f52958503fac11f093a476b3cceeab13.web.val.run
README.md

Wellness Tracker App

A comprehensive wellness tracking application that integrates with wearable devices to automatically monitor physical activity, rest periods, and stress levels, while allowing users to manually log meals for calorie tracking.

Features

Automatic Tracking (via Wearables)

  • Physical Activity: Steps, distance, calories burned, exercise sessions
  • Rest Periods: Sleep duration, sleep quality, recovery metrics
  • Stress Monitoring: Heart rate variability, stress levels, relaxation periods

Manual Tracking

  • Meal Logging: Food items, portions, calorie intake
  • Hydration: Water intake tracking
  • Mood: Daily mood and energy level logging

Analytics & Insights

  • Dashboard: Real-time wellness metrics
  • Trends: Historical data visualization
  • Goals: Personalized targets and progress tracking
  • Reports: Weekly/monthly wellness summaries

Technology Stack

  • Backend: Hono.js API with SQLite database
  • Frontend: React with TypeScript
  • Styling: TailwindCSS
  • Wearable Integration: Web Bluetooth API, Fitbit Web API, Apple HealthKit (via shortcuts)
  • Charts: Chart.js for data visualization

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ migrations.ts    # Database schema
β”‚   β”‚   └── queries.ts       # Database operations
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ activity.ts      # Activity tracking endpoints
β”‚   β”‚   β”œβ”€β”€ meals.ts         # Meal logging endpoints
β”‚   β”‚   β”œβ”€β”€ wearables.ts     # Wearable device integration
β”‚   β”‚   └── analytics.ts     # Data analytics endpoints
β”‚   └── index.ts             # Main API server
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Dashboard.tsx    # Main dashboard
β”‚   β”‚   β”œβ”€β”€ ActivityTracker.tsx
β”‚   β”‚   β”œβ”€β”€ MealLogger.tsx
β”‚   β”‚   β”œβ”€β”€ WearableSync.tsx
β”‚   β”‚   └── Analytics.tsx
β”‚   β”œβ”€β”€ index.html
β”‚   └── index.tsx
└── shared/
    └── types.ts             # Shared TypeScript interfaces

Getting Started

  1. The app will be available at the HTTP endpoint
  2. Connect your wearable device via the Wearables tab
  3. Start logging meals and view your wellness dashboard
  4. Set personal goals and track your progress

Wearable Device Support

  • Fitbit devices (via Fitbit Web API)
  • Apple Watch (via Apple Health integration)
  • Generic Bluetooth heart rate monitors
  • Web Bluetooth compatible fitness trackers

Environment Variables

  • FITBIT_CLIENT_ID - Fitbit app client ID
  • FITBIT_CLIENT_SECRET - Fitbit app client secret
  • NUTRITIONIX_APP_ID - Nutritionix API for food database
  • NUTRITIONIX_API_KEY - Nutritionix API key
HTTP
  • index.ts
    fezokuhlekhumalo14--f5…13.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.