Preparing for system design interviews?  Try bugzed.com →

anywhen

JSON →
library 0.3.1 ·javascript
verified Jun 4, 2026

anywhen is a tiny (1.1kb gzip) zero-dependency date formatter that provides three modes: smart (context-aware, showing relative or absolute depending on distance from now), absolute (via Intl.DateTimeFormat), and relative (via Intl.RelativeTimeFormat). It supports any Intl locale out of the box, requires no locale files or plugins, and ships TypeScript types. Current stable version is 0.3.1. It is actively maintained (as of mid-2025) and is more lightweight than libraries like dayjs or date-fns while focusing specifically on human-readable output. Key differentiators: single function with intelligent defaults, SSR-safe with custom `now` and `timeZone` options, and no dependencies.

total hits 24
actors 3 distinct systems
last hit 16d ago human
GPTBot
3
ByteDance
3
Humans
16

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇳 China · VN · EG