iamkun/dayjs
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API observed · 2026-10-17
Health v2 · maintenance only
94/100
- Activity 95
- Release rhythm 90
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 3115
- days_rel: 64
- days_push: 35
- n_releases_24m: 10
Adoption not part of the score
48661 stars · 5360 forks observed · 2026-10-17
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-28, confidence 0.99
Day.js is a minimalist JavaScript library for parsing, validating, manipulating, and displaying dates and times. It offers a Moment.js‑compatible API in a tiny, immutable, and chainable package.
Use cases
- format dates and times in a web application
- parse ISO strings into JavaScript date objects
- display localized timestamps in the browser
- replace Moment.js with a smaller alternative
- perform date arithmetic like adding days or months
- validate user‑entered date inputs
When to choose
- You need a small (<3 KB) date library with a familiar Moment.js API.
- Immutable date objects are required to avoid side‑effects.
- You want built‑in internationalization support without extra weight.
- Your project runs in both browser and Node.js environments.
When to avoid
- You require advanced timezone handling beyond basic UTC offsets.
- You need a full‑featured calendar or scheduling library.
- Your application depends on Moment.js plugins that are not available in Day.js.
Facets
library · maturity active
parser serialization date-time web-development frontend backend browser immutable moment-compatible lightweight i18n 2kb chainable nodejs web-server
4 sources
- readme: https://github.com/iamkun/dayjs · fetched 2026-10-17 · 24f958a6e8ee
- homepage: https://day.js.org · fetched 2026-09-14 · d62b217f73ef
- site_page: https://day.js.org/docs/en/installation/installation · fetched 2026-09-14 · 02dd64a743e6
- registry_npm: https://registry.npmjs.org/dayjs · fetched 2026-09-14 · 5b1c712f9c53
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| iamkun/dayjs | main | 94 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem