HeadlinesBriefing favicon HeadlinesBriefing.com

Bedtime: A JavaScript Spinner That Helps You Sleep

Hacker News: Front Page •
×

Bedtime is a quirky web app that turns a slow JavaScript loader into a lullaby. Created by developer sarusso, the project spins a spinner while telling a short bedtime story about a character named Liora. As the story unfolds, the loader’s spin time lengthens and the text appears more slowly, making it hard to finish the tale unless you’re determined.

The idea sprouted when the author struggled to fall asleep while waiting for data on a web platform and noticed the spinner’s hypnotic effect. Since then, the tool has helped him and a handful of users find a moment of calm before sleep. The code lives on GitHub under the bedtime repository and can be accessed at http://bedtime.my.

Adding the page to a phone’s home screen displays it fullscreen, turning any device into a personal sleep aid. While the project is modest, it highlights how simple UI patterns can influence user behavior and well‑being.