How shishir-van/healio_ works
This is a Next.js healthcare and wellness application. Users can explore health tools, assess and track mood, search medicines by name or symptom, manage sleep and diet plans, journal, and participate in a community forum. The graph follows evidenced page-to-feature and feature-to-data relationships; many Convex functions and several feature implementations are unsampled, so their connections are omitted rather than inferred.
Main entry points: _sleepDept/page.tsx Sleep tracker · (main)/page.tsx Home page · journal/page.tsx Journal · assessment/page.tsx Mood assessment
Components 34
App navigation
- Home page
app/(main)/page.tsx - Navigation bar
app/_components/navbar.tsx - Dashboard
app/dashboard/page.tsx
Wellness tools
- Mood tracker intro
app/_moodcalculator/page.tsx - Mood assessment
app/assessment/page.tsx - Mood results
app/(moodcalculator)/results/page.tsx - Mood history
app/(moodcalculator)/history/page.tsx - Mood favorites
app/(moodcalculator)/favourites/page.tsx - Mood calculations
lib/mood-calculator.ts - Sleep tracker
app/_sleepDept/page.tsx - Sleep debt dashboard
components/sleep-debt-dashboard.tsx - Sleep entry form
components/sleep-entry-form.tsx - Sleep history
components/sleep-history.tsx - Sleep chart
components/sleep-chart.tsx - Diet plan generator
app/dashboard/dietPlan/page.tsx - Journal
app/journal/page.tsx - Journal entry form
components/journal-entry-form.tsx - Journal entries
components/journal-entry-list.tsx - Healthy prompts page
app/dashboard/healthyPrompts/page.tsx - Prompt generator
components/health-prompt-generator.tsx
Health services
- Medicine finder
app/(medicine)/medicine/page.tsx - Medicine search
components/medicine-search.tsx - Symptom search
components/symptom-search.tsx - Emergency page
app/(navbar)/emergency/page.tsx - Hospital finder
app/_components/maps.tsx - Map display
components/map-component.tsx - Community forum
app/dashboard/communityForum/page.tsx - Post form
components/post-form.tsx - Post list
components/post-list.tsx
Persistence
- Diet plan functions
convex/dietPlans.ts - Sleep entry functions
convex/sleepEntries.ts - Mood functions
convex/mood.ts - Journal functions
convex/journalEntries.ts
Other components
- Visitor
Connections 34
- Visitor → Home page: opens
- Home page → Navigation bar: renders
app/(main)/page.tsx - Visitor → Dashboard: opens
- Navigation bar → Mood tracker intro: links to
app/_components/navbar.tsx - Mood tracker intro → Mood assessment: links to
app/_moodcalculator/page.tsx - Mood assessment → Mood calculations: uses
- Mood assessment → Mood results: routes to
- Mood history → Mood functions: queries
- Mood favorites → Mood functions: queries
- Home page → Diet plan generator: imports
app/(main)/page.tsx - Diet plan generator → Diet plan functions: queries and mutates
app/dashboard/dietPlan/page.tsx - Home page → Sleep tracker: imports
app/(main)/page.tsx - Sleep tracker → Sleep debt dashboard: renders
app/_sleepDept/page.tsx - Sleep tracker → Sleep entry form: renders
app/_sleepDept/page.tsx - Sleep tracker → Sleep history: renders
app/_sleepDept/page.tsx - Sleep tracker → Sleep chart: renders
app/_sleepDept/page.tsx - Sleep entry form → Sleep entry functions: writes
- Sleep history → Sleep entry functions: queries
- Visitor → Medicine finder: opens
- Medicine finder → Medicine search: renders
app/(medicine)/medicine/page.tsx - Medicine finder → Symptom search: renders
app/(medicine)/medicine/page.tsx - Symptom search → Journal functions: creates entry
components/symptom-search.tsx - Visitor → Emergency page: opens
- Emergency page → Hospital finder: renders
app/(navbar)/emergency/page.tsx - Hospital finder → Map display: renders
app/_components/maps.tsx - Visitor → Journal: opens
- Journal → Journal entry form: renders
app/journal/page.tsx - Journal → Journal entries: renders
app/journal/page.tsx - Journal → Journal functions: queries
app/journal/page.tsx - Visitor → Community forum: opens
- Community forum → Post form: renders
app/dashboard/communityForum/page.tsx - Community forum → Post list: renders
app/dashboard/communityForum/page.tsx - Visitor → Healthy prompts page: opens
- Healthy prompts page → Prompt generator: renders
app/dashboard/healthyPrompts/page.tsx