How jeremyduncan/waypoint-health-tracker works
Waypoint Health is a private, self-hosted health journal. The main workflow is a signed-in user recording weight, injections, or notes, then reviewing those records in charts, the calendar, and summaries. Separate branches cover goals, reports, settings, and data import/export. The map includes major README capabilities, but several controller and service implementations were not excerpted; their links are shown only where routes or documented behavior support them, or omitted where uncertain.
Main entry points: routes.rb Application routes · entries_controller.rb Entry logging · imports_controller.rb Import workflow · dashboard_controller.rb Overview charts
Components 28
Web and journal
- Application routes
config/routes.rb - Authentication
app/controllers/concerns/authentication.rb - Entry logging
app/controllers/entries_controller.rb - Day journal
app/controllers/journal_controller.rb - Chart preferences
app/controllers/chart_preferences_controller.rb
Health views
- Overview charts
app/controllers/dashboard_controller.rb - Month calendar
app/controllers/calendars_controller.rb - Injection insights
app/controllers/injections_controller.rb - Injection analysis
app/services/injection_insights.rb - Weekly review
app/controllers/reviews_controller.rb - Weekly summaries
app/services/weekly_review.rb - Timeline data
app/services/timeline.rb - Weight plot
app/services/weight_plot.rb
Records and goals
- Weight goals
app/controllers/goals_controller.rb - Goal progress
app/services/goal_progress.rb - Health records
app/models/weight.rb - Injection records
app/models/injection.rb - Daily notes
app/models/day_note.rb - SQLite database
db/schema.rb
Data exchange
- Import workflow
app/controllers/imports_controller.rb - Personal import
app/services/personal_import.rb - Renpho CSV
app/services/renpho_csv.rb - Settings and export
app/controllers/settings_controller.rb - Appointment report
app/services/appointment_pdf.rb
Browser interactions
- Timeline chart UI
app/javascript/controllers/timeline_controller.js - Injection chart UI
app/javascript/controllers/injection_insights_controller.js - Save interaction
app/javascript/controllers/save_controller.js
Other components
- Signed-in user
Connections 38
- Signed-in user → Application routes: requests pages
config/routes.rb - Application routes → Entry logging: routes entries
config/routes.rb - Application routes → Day journal: routes journal
config/routes.rb - Application routes → Overview charts: routes root
config/routes.rb - Application routes → Month calendar: routes calendar
config/routes.rb - Application routes → Injection insights: routes injections
config/routes.rb - Application routes → Weekly review: routes review
config/routes.rb - Application routes → Weight goals: routes goals
config/routes.rb - Application routes → Import workflow: routes imports
config/routes.rb - Application routes → Settings and export: routes settings
config/routes.rb - Application routes → Chart preferences: routes preferences
config/routes.rb - Entry logging → Health records: creates or edits
app/controllers/entries_controller.rb - Entry logging → Injection records: creates or edits
app/controllers/entries_controller.rb - Entry logging → SQLite database: persists records
- Health records → SQLite database: stored in
- Injection records → SQLite database: stored in
- Daily notes → SQLite database: stored in
- Weekly review → Weekly summaries: builds review
app/controllers/reviews_controller.rb - Weekly summaries → Timeline data: builds periods
app/services/weekly_review.rb - Weekly summaries → Weight plot: builds plot
app/services/weekly_review.rb - Injection insights → Injection analysis: prepares insights
- Overview charts → Timeline data: uses timeline data
- Overview charts → Weight plot: plots weight
- Timeline chart UI → Overview charts: renders overview
- Injection chart UI → Injection insights: renders insights
- Import workflow → Personal import: parses and commits
app/controllers/imports_controller.rb - Import workflow → Renpho CSV: parses Renpho
app/controllers/imports_controller.rb - Import workflow → Health records: imports readings
- Settings and export → Health records: exports or clears
- Appointment report → Signed-in user: provides PDF
- Save interaction → Entry logging: submits form
app/javascript/controllers/save_controller.js - Signed-in user → Overview charts: reviews trends
- Signed-in user → Month calendar: reviews month
- Signed-in user → Injection insights: compares shots
- Signed-in user → Weekly review: reviews week
- Signed-in user → Weight goals: sets target
- Signed-in user → Import workflow: imports data
- Signed-in user → Settings and export: exports or clears