Add to calendar from the browser: generating .ics files for countdown datesA countdown is more useful when it also lives in the calendar you already check every morning. An "Add to calendar" button is the simplest way to get it there, and you don't need a server or a library8 min read·countmydays.hashnode.devNov 2
Per-link Open Graph images for shareable countdowns with Satori and @vercel/ogWhen someone pastes a countdown link into WhatsApp, Slack or iMessage, the preview card decides whether anyone clicks it. A generic logo gets ignored. A card that says "Our wedding · 47 days to go" ge7 min read·countmydays.hashnode.devNov 2
Building a small web app to last: the future of CountMyDaysOver the last few posts I've written about the unglamorous parts of building CountMyDays: counting days without off-by-one bugs, streak counters that survive midnight and DST, and "tomorrow" vs "in 26 min read·countmydays.hashnode.dev1ROct 27
"Tomorrow" or "in 2 days"? A timezone-safe 'time until' label with Intl.RelativeTimeFormatEvery countdown UI needs a short, friendly label: in 45 minutes, tomorrow, in 3 weeks, za 5 miesięcy. Modern JavaScript has a built-in for the wording, Intl.RelativeTimeFormat, so you no longer need a6 min read·countmydays.hashnode.devOct 27
Build a 'days since' streak counter in React with localStorage (that survives midnight, DST and bad data)"Days since I last smoked." "Days since the last production incident." "Days without sugar." A streak counter looks like the easiest widget in the world: store a start date and subtract. Then it shows6 min read·countmydays.hashnode.devOct 27