Inspiration
Our inspiration is essentially learning about the importance of sleep after spending too many late nights sacrificing sleep in order to try to finish assignments for class. We wanted to create something to help us put our own mental health and sleep first.
What it does
SleepSync is an AI-powered scheduling assistant that builds your day around your sleep and not the other way around. You set your bedtime, wake time, and sleep goal, then add your tasks with priorities and flexibility settings. The AI fills your calendar intelligently, locking in your sleep block as non-negotiable and placing flexible tasks in your best focus windows. An energy slider lets you tell SleepSync how you're feeling, and it adjusts the density of your schedule accordingly. You can chat naturally with the assistant to reschedule events, get sleep advice, or add new tasks just by typing something like "I'm tired today, move my workout to later." There's a live bedtime line on the calendar that warns you when events are creeping into your wind-down window, and the sleep health panel tracks your Deep, REM, and Light sleep stages with an editable goal system.
How we built it
We split the stack cleanly between two developers. The frontend is built in React, using plain CSS for a custom dark theme and @dnd-kit for drag-and-drop event rescheduling. The backend is all Python with FastAPI, SQLite for storage, and SQLAlchemy as the ORM. The AI layer uses OpenAI's GPT-4o-mini — we engineered a system prompt that forces structured JSON responses so the backend can programmatically act on what the AI says, creating tasks, issuing warnings, and suggesting reschedules without any extra parsing. The frontend and backend communicate over a REST API with a full CRUD task system, a chat endpoint, and a sleep data endpoint that persists bedtime and sleep stage information across sessions.
Challenges we ran into
Our Biggest challeges would have been connecting the front end and the backend and rou
Accomplishments that we're proud of
We're proud that the AI actually works as a real scheduling brain — it reads your full task list, your sleep data, your energy level, and your bedtime before responding to anything. It doesn't just chat, it acts. We're also proud of the drag-and-drop calendar syncing back to the database in real time, the repeating event expansion system, and the sleep health panel that auto-saves every time you adjust your goals
What we learned
How to use and integrate multiple APIs within our project, routing, and creating the actual search engine.
What's next for Sleep Sync
The immediate next steps are user accounts so sleep history and scheduling patterns persist across sessions, and a weekly report showing sleep goal hit rate, most missed tasks, and habit streaks. From there we want to integrate Google Calendar and Outlook so existing commitments get pulled in automatically. Wearable integration like Fitbit and Apple Health would let us replace estimated sleep stages with real data, making the scheduling recommendations significantly more accurate.
Built With
- claude
- css
- fastapi
- git
- github
- google-fonts
- javascript
- node.js
- openaiapi
- pydantic
- python
- python-dotenv
- react
- sqlalchemy
- sqlite
- uvicorn
- vite
- vscode
Log in or sign up for Devpost to join the conversation.