iamkun

    iamkun/dayjs

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

    48.7K stars
    4.4K forks
    48.7K GitHub watchers
    Updated Nov 1, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    2 releases in the last 90 days, the latest 75 days ago, with 338 contributors on GitHub.

    Gained 107% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a minimalist JavaScript library for parsing, validating, manipulating, and displaying dates and times with a Moment.js-compatible API.
    • Offers a lightweight 2kB immutable date-time library that supports chaining and internationalization, making it faster and smaller than Moment.js.
    • Use for replacing Moment.js in web projects to reduce bundle size while maintaining a familiar API for date manipulation.
    • Use for building internationalized applications that require locale-specific date and time formatting on demand.
    • Use for extending date-time functionality with plugins to add advanced formatting and custom features in modern JavaScript environments.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Fast 2kB alternative to Moment.js with the same modern API

    Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.

    You can find more details, API, and other docs on day.js.org website.

    Excerpt from the iamkun/dayjs README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 15: -4Aug 16: +3

    -8 stars over 79 days across 8 snapshot days; best day +3 on Aug 16.

    Forks

    4.4K+1.9K

    Open issues

    1.5K+161

    Compared with peers in API

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    iamkun/dayjs compared with API repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/claude-quickstarts20.5K+73375—
    vxcontrol/pentagi33.9K+7197536 days ago
    N4darae/shrt2.6K+5298—
    agentgateway/agentgateway6.1K+1877514 days ago
    iamkun/dayjs48.7K—5675 days ago
    BenedictKing/ccx4.0K—32117 days ago
    Category median6.1K+62475—

    Discover Repositories

    Search across tracked repositories by name or description