Skip to content

Latest commit

 

History

71 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SleepSync

Proof-of-concept for scheduling an overnight melatonin patch profile. Expo app, FastAPI backend, optional ESP32 over BLE.

You set bed and wake times. The backend returns a dose curve for that window. The app runs it overnight on a BLE patch or in an on-screen simulator if you do not have hardware. A short morning debrief (did you wake, how groggy) closes the loop and shapes the next plan.

Inputs. Mock sleep data by default. Connect Google Health to pull real staging and vitals.

Outputs. A piecewise profile (delay, ramp, sustain, taper). Dose is normalized [0, 1], not mg. Wake risk comes from a hand-tuned heuristic (heuristic-v0), not a trained clinical model.

Development

docs/RUNNING.md

Further reading

Layout

mobile/     Expo app
backend/    FastAPI, optimizer, SQLAlchemy
firmware/   ESP32 NimBLE sketch
docs/
shared/     test fixtures

Team

Charles Muehlberger (@charlespers), Phu Duong (@phuhduong), Jaime Nunez (@Jaimenunez10), Tom Wang (@tom05919)

About

[HackPrinceton S2025] Smart Melatonin Transdermal Patch

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages