iamkun/dayjs
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 98
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 3067
- days_rel: 16
- days_push: 15
- n_releases_24m: 10
Adoption not part of the score
48664 stars · 2467 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Day.js is a minimalist 2kB immutable JavaScript date-time library for parsing, validating, manipulating, and formatting dates and times. It offers a largely Moment.js-compatible API, making it a drop-in lightweight replacement for Moment.js.
Use cases
- format dates and times in javascript
- parse and validate date strings
- replace moment.js with a smaller library
- add or subtract days and months from dates
- internationalize date formatting
- get start of month or week in javascript
When to choose
- you need a tiny (~2kB) date library for browser or Node.js
- you want Moment.js-compatible API with immutability
- bundle size matters in a frontend project
When to avoid
- you need advanced timezone handling without adding plugins
- you prefer a modern native Intl/Temporal-based approach
- you need calendar-aware recurring events out of the box
Facets
library · maturity stable
date-time internationalization parser web-development frontend developer-tools browser cross-platform date-formatting momentjs-alternative immutable 2kb time-manipulation timezone localization nodejs javascript
4 sources
- readme: https://github.com/iamkun/dayjs · fetched 2026-08-28 · 24f958a6e8ee
- homepage: https://day.js.org · fetched 2026-08-29 · 2b97a9e3be29
- site_page: https://day.js.org/docs/en/installation/installation · fetched 2026-08-29 · 02dd64a743e6
- registry_npm: https://registry.npmjs.org/dayjs · fetched 2026-08-29 · 5b1c712f9c53
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| iamkun/dayjs | main | 98 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem