Public
Like
Mind_clinic
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://andym42--1e62cfce3f7d11f09f2876b3cceeab13.web.val.run
A comprehensive web application designed to support individuals with their mental health journey through various tools and resources.
- Mood Tracking: Daily mood logging with visual charts
- Journaling: Private journaling with prompts and reflection
- Breathing Exercises: Guided breathing techniques for anxiety and stress
- Resources: Curated mental health resources and crisis support
- Progress Tracking: Visual representation of mood patterns over time
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ mood.ts # Mood tracking endpoints
β β βββ journal.ts # Journal entry endpoints
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ MoodTracker.tsx # Mood tracking interface
β β βββ Journal.tsx # Journaling interface
β β βββ BreathingExercise.tsx # Breathing exercise guide
β β βββ Resources.tsx # Mental health resources
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
- Backend: Hono (TypeScript API framework)
- Frontend: React with TypeScript
- Database: SQLite for data persistence
- Styling: TailwindCSS
- Charts: Chart.js for mood visualization
This app is designed to run on Val Town. The backend serves both API endpoints and the frontend application.
- All data is stored locally in your Val Town instance
- No personal data is shared with third parties
- Journal entries and mood data remain private