Recent submissions

Comment · 1 month ago
Comment · 7 months ago
I kept waking up tired even after 7 or 8 hours of sleep.

turns out that timing matters just as much as duration. If your alarm goes off in the middle of a cycle, you feel awful regardless of how long you slept.

So I built this. You enter your bedtime, it factors in about 15 minutes to fall asleep, then shows you wake-up times aligned to the end of each 90-minute sleep cycle.

These times are when it’s easiest to wake from.

Just a web page I load up every few evenings now when starting at the clock at 2am or have to get up earlier..

Comment · 8 months ago
If you've ever stored JSON locally and had the schema change over time, you know the pain of trying to keep it up-to-date as your application changes. You end up with defensive checks everywhere, or data that silently breaks when the shape changes underneath you.

I've faced this problem a few times lately, so I built json-up to handle this with a migration chain. Define versioned steps with Zod schemas, and the library walks your data forward from whatever version it's at, validating at each step with full TypeScript inference.

Zero runtime deps, works with Zod v3 and v4, and three distinct error types for precise failure handling.

Have a poke around!

Comment · 1 year ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton