what?

Sleep is a little node-webkit application for Mac OS X that lives in your status bar. It was created in an attempt to answer the ancient question of "ugh, when did I fall asleep last night?" by telling you when your MacBook went to sleep, presumably because you closed the lid, or because it was idle for a while. As someone who often finds myself waking up on the couch with my laptop on my chest, lid closed, this is handy for determining whether or not I got enough sleep the night before (increasingly often, the answer is no).

I had a lot of fun building this, and learned a ton about node-webkit (now called nw.js). Take a look at the source if you'd like!

troubleshooting

If you get an error saying that this app is from an unknown developer, that's because Apple doesn't trust you to make grown-up decisions yet about what applications you want to run. Just find Sleep app in your Applications folder, right click on it, and click Open.

about

created by Gordon Zheng / @capable_monkey / about.me /

email: [email protected]