iamkun/dayjs

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 18 minutes ago
Added to GitGenius on August 31st, 2026
Created on April 10th, 2018
Open Issues & Pull Requests: 1,311 (+3)
Number of forks: 2,469
Total Stargazers: 48,664 (+0)
Total Subscribers: 272 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.1 days
Mean response time: 64.8 days
90th percentile: 213.0 days
Tracked items: 256

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 81% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 2% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 256
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 823 days
Stale 30+ days: 244
Stale 90+ days: 231

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • released (6)
  • enhancement (5)
  • ☢️Bug (5)
  • help wanted (2)
  • 🚨 High Priority (2)
  • Breaking Change (1)
  • discussion (1)
  • good first issue (1)

Detailed Description

Day.js is a minimalist JavaScript date and time library that provides a Moment.js-compatible API in a compact footprint. It parses, validates, manipulates, and displays dates and times for modern browsers while maintaining familiarity for developers already using Moment.js.

The library solves the problem of date handling in JavaScript without the overhead of larger alternatives. It achieves this through a minimalist design that keeps the core library extremely small while offering the same modern API patterns developers expect. The tool is immutable, chainable, and supports internationalization through optional locale modules that are only included in your build when explicitly used.

Day.js suits projects where bundle size matters and developers want Moment.js-like ergonomics without the weight penalty. It works well for applications ranging from simple date formatting to complex temporal manipulations. The README positions it explicitly as an alternative to Moment.js, offering the same API surface with significantly reduced overhead. For teams already familiar with Moment.js, adoption requires minimal learning curve since the API is largely compatible.

The project maintains active development with continuous integration checks and test coverage tracking. Plugin architecture allows extending functionality through independent modules without bloating the core library. Internationalization support is built in as an opt-in system rather than a default inclusion. The tool supports all modern browsers and maintains broad compatibility across environments.