⚑ Universal Power Layer

Recalculate β€” Built Into Everything

This demo simulates three FFH pages (a Bingo card, a sleep tracker, a finance module). Each one drops in the Recalculate layer with two lines of code. Click Simulate drift on any card to see the universal banner fire β€” wherever the user already is.

Engine v1.0 Β· Composer-ready Β· Me / We / Ours Β· PHIT signal

Three trackers, one layer

Each card represents a different FFH page using the same engine.
🚢

Cardio Bingo β€” Daily Walk

Prevention Bingo Β· Cardiovascular
Goal: Walk 30 min, 5 days/week β†’ target fitness by Aug 2026
Goal
30 Γ— 5
Last walk
β€”
πŸŒ™

Mental Wellness β€” Sleep Check-In

FFH Academy Β· Mental Health module
Goal: Log a sleep check-in 6 nights/week
Goal
6 / week
Last log
β€”
πŸ’°

Health Is Wealth β€” Weekly Money Check-In

FFH Academy Β· Financial Literacy
Goal: One money check-in per week (savings, debt, or spend)
Goal
1 / week
Last check-in
β€”

How a host page wires it in

Two file includes + one register call per goal. That's it.

Drop-in pattern for any FFH page

// 1. Include the layer (head of page)
<link rel="stylesheet" href="recalculate-ui.css">
<script src="recalculate-engine.js"></script>

// 2. Register the page's goals (any number) and start watching
FFH.Recalculate.register({
  goalId:        'walk-30x5',
  label:         'Walk 30 min, 5 days/week',
  tracker:       'sports-health',
  thresholdDays: 7,
  barrierProfile:'movement'   // β†’ loads movement diagnostic + resources
});

FFH.Recalculate.watch();   // drift checks run every 60s

// 3. When the user logs progress anywhere, just tell the layer:
FFH.Recalculate.logAction('walk-30x5');

Live event stream

Composer event bus events. Pace's integration listens here.
Click a "Simulate drift" button above β€” events will stream here as you progress through Recalculate.
πŸ“‘ PHIT pipe: The phit.pattern.signal event carries only anonymized barrier tags + tracker name + zip (if available). Individual identity never leaves the device. Aggregate signals feed the community pattern library β€” exactly the civic-planning intelligence PHIT was built to surface.