Cradlewise Sleep Lab

ProductivityFeb 2026

Reverse-engineering my smart crib to get better sleep data.

Why I Built This

I love our Cradlewise smart crib—it's been a lifesaver. But as a data nerd, I felt limited by the official app. I wanted to see the raw numbers. I wanted to understand my baby's sleep architecture—how much deep sleep vs. light sleep are they getting? And most importantly, I wanted to own my data.

So, I spent a weekend reverse-engineering the API to build a custom dashboard that gives me the insights I was missing. It's a creative project that turns the crib's data into a comprehensive sleep lab.

Cradlewise Sleep Dashboard showing sleep architecture and trends
My custom dashboard showing sleep architecture phases and nightly trends.

What I Built

I built a local-first web app that connects to my Cradlewise account, fetches historical data, and stores it in a SQLite database. The dashboard I designed offers:

Sleep Architecture Phase Map

I can visualize the entire night’s sleep cycles in high fidelity. Seeing exactly when my baby was in Deep Sleep, Light Sleep, or Awake provides a clearer picture of sleep quality than simple totals.

Trend Studio

The "Trend Studio" lets me analyze sleep patterns over time (7, 30, or 90 days). I track metrics like total sleep efficiency and wake windows to see if our sleep training is paying off.

Export Cradlewise Sleep Data to CSV

This was the biggest missing piece for me. I added functionality to export all sleep data to CSV or JSON with one click, so I can play with it in Python or Excel.

AI Insights

I also integrated an "AI Analyst" that reads the nightly data and generates a natural language summary—a "Night Brief"—highlighting the key takeaways from the previous night's sleep.

Note: This is a personal project and is not affiliated with Cradlewise.

Questions

"Does Cradlewise have an API?"

Not a public one. I reverse-engineered the endpoints their mobile app uses. It's a standard REST API behind their auth system. The dashboard connects to it with your Cradlewise credentials and pulls the raw sleep data locally.

"Can I export my Cradlewise data?"

Not through the official app. That's the main reason I built this. The dashboard lets you export all your baby's sleep data to CSV or JSON with one click — every sleep session, every phase, every metric.

Sameer Bajaj © 2026
rssfacebooktwittergithubgitlabyoutubemailspotifylastfminstagramlinkedingooglegoogle-pluspinterestmediumvimeostackoverflowredditquoraquora