🏗️ What This Is — The Pathway Engine
This is the adaptive routing layer that ties every FFH module together. Instead of sending everyone to the same content, the Pathway Engine builds a personalized route through the ecosystem based on three inputs:
- Health picture — risk flags from the Quick Health Check
- Personal goals — what you're trying to change and why
- Learning profile — how you absorb information best
The output is a sequenced, tagged pathway — not a list of links, but a living route with milestones, trackers, community resources, and civic actions, all matched to your specific situation.
The content tagging system is the engine. Every piece of content in the FFH ecosystem — videos, games, simulations, reading, podcasts, quizzes — is tagged with content type, health topic, difficulty, phase (Learn/Live/Share/Ours), and goal category. The pathway assembles itself from those tags based on your profile.
Sedentary
Light walks
Moderate
Active
Very active
Lots of processed food
Mixed, mostly not great
Pretty balanced
Mostly healthy
Very healthy
Under 5 hrs
5–6 hrs
7–8 hrs
9+ hrs
Varies a lot
Every content object in the FFH ecosystem carries these tags. Your learning profile filters which tags to prioritize in your pathway. This is how one piece of content about blood pressure can surface as a video for you and as a simulation for someone else.
In production: content_objects table in Supabase has a content_types text[] column. The routing function scores each content object against the user's profile and returns a ranked queue.
Your full personalized pathway — goals, learning path, community resources, and civic actions — all in one exportable summary.
community_resources table in Supabase, populated by Chamber of Health Directors and FFH community managers. Resources are tagged with goal categories, resource types, and ZIP codes. The map updates in real time as Directors add new resources for their communities. Google Places API provides the geographic layer.