Skip to content

spacesie/state-regulator

Repository files navigation

Reactive Care Scheduler

State-driven, event-based caregiving scheduler that recalculates windows, caps, and buffers in real time. It is not a calendar and does not output fixed plans.

Run

npm install
npm run dev

Build

npm run build
npm run preview

Notes

  • Events are stored as UTC instants and rendered in the user’s timezone.
  • All derived state is recomputed from the event log and the authoritative UTC "now".
  • Persistence uses localStorage only.

Behavior Notes (Current Build)

  • “Up next” is resolved from current state (resolver), not from the predictions list.
  • “What’s coming up” is derived from a baseline schedule that shifts relative to the last real log.
  • “What’s coming up” is derived from live state outputs (wake window, feed window, bedtime cap) and pruned when the window compresses.
  • Routine logs are tracked for duration stats only and do not affect predictions or state.
  • Auto-predicted logs are labeled and can be edited or deleted.
  • After bedtime, upcoming events show the next morning’s expected wake without creating new logs.
  • Prediction objects use a strict schema to prevent missing fields in the UI.
  • The wake panel reflects “Time until wake” during bedtime instead of tiredness.

About

A state‑driven care scheduler that updates in real time and displays what’s coming up, current windows, and gentle reminders without fixed schedules or notifications—built for calm, adaptable day‑to‑day care.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors