Public
Like
1
MYHEALTHSOURCE
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.
index.ts
https://SIR_FESTUS--f2f5252239d611f0a7bb9e149126039e.web.val.run
A complete health management platform built on Val Town with essential health tools and resources.
- BMI Calculator - Calculate and track Body Mass Index
- Health Tracker - Log daily health metrics (weight, blood pressure, heart rate)
- Symptom Checker - Basic symptom assessment tool
- Medication Reminder - Track medications and dosages
- Appointment Booking - Schedule healthcare appointments
- Doctor Directory - Find healthcare providers
- Health Records - Store and manage health documents
- Emergency Contacts - Quick access to emergency services
- Health Articles - Educational content and tips
- Health Dictionary - Comprehensive medical terminology and definitions
- Exercise Library - Workout routines and fitness guides
- Nutrition Guide - Dietary information and meal planning
- Mental Health Resources - Wellness and mental health support
- HealthBot - AI-powered chatbot for health Q&A
- Conversation Logging - Chat history sent to site managers
- Smart Suggestions - Contextual quick replies and recommendations
- 24/7 Availability - Always available health assistant
- Health Dashboard - Overview of all health metrics
- Progress Tracking - Visual charts and trends
- Health Goals - Set and track health objectives
- Health Dictionary - Medical terms and definitions lookup
- AI Chatbot - 24/7 health assistant with conversation logging
- Tabbed Navigation - Easy switching between features
- Community Forum - Connect with other users
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ routes/
β β βββ health.ts # Health tracking endpoints
β β βββ appointments.ts # Appointment management
β β βββ articles.ts # Health articles API
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application
β β βββ Dashboard.tsx # Health dashboard
β β βββ BMICalculator.tsx
β β βββ HealthTracker.tsx
β β βββ AppointmentBooking.tsx
β β βββ HealthArticles.tsx
β β βββ HealthDictionary.tsx
β β βββ Chatbot.tsx
β β βββ [other components]
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
βββ utils.ts # Shared utility functions
- Backend: Hono.js API framework
- Frontend: React 18.2.0 with TypeScript
- Database: SQLite for data persistence
- Styling: TailwindCSS
- Storage: Val Town Blob storage for files
- The backend server runs on
/backend/index.ts - Frontend is served from
/frontend/index.html - Database is automatically initialized on first run
- All health data is stored securely in SQLite
GET /- Main applicationGET /api/health/*- Health tracking endpointsGET /api/appointments/*- Appointment managementGET /api/articles/*- Health articles and dictionaryPOST /api/chatbot/*- AI chatbot interactionsPOST /api/health/track- Log health metricsPOST /api/appointments/book- Book appointmentPOST /api/chatbot/message- Send message to AI assistant
OPENAI_API_KEY- Required for AI chatbot functionality (automatically configured in Val Town)- No other API keys required - uses open health data sources and local storage