ATM
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: v3View latest version
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.
- 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
- Meal Logging: Food items, portions, calorie intake
- Hydration: Water intake tracking
- Mood: Daily mood and energy level logging
- Dashboard: Real-time wellness metrics
- Trends: Historical data visualization
- Goals: Personalized targets and progress tracking
- Reports: Weekly/monthly wellness summaries
- 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
├── 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
- The app will be available at the HTTP endpoint
- Connect your wearable device via the Wearables tab
- Start logging meals and view your wellness dashboard
- Set personal goals and track your progress
- Fitbit devices (via Fitbit Web API)
- Apple Watch (via Apple Health integration)
- Generic Bluetooth heart rate monitors
- Web Bluetooth compatible fitness trackers
FITBIT_CLIENT_ID- Fitbit app client IDFITBIT_CLIENT_SECRET- Fitbit app client secretNUTRITIONIX_APP_ID- Nutritionix API for food databaseNUTRITIONIX_API_KEY- Nutritionix API key