KBAISE/ for lovable
Directory

date-fns + Day.js

Date formatting

FreeLibraries & build toolingdate-fns.org

What it is

The two live replacements for the deprecated Moment.js. date-fns (v4) is a tree-shakeable set of pure functions with first-class time-zone support. Day.js is a 2KB immutable wrapper with a Moment-compatible API and optional plugins.

Why it earns a slot

Relative timestamps, date maths and time zones are where hand-written code quietly breaks across DST and locales. Pick date-fns for tree-shaking, Day.js for the smallest bundle or a Moment port.

Know before you commit

Never install Moment.js — it is in maintenance mode and ships huge locale files. The native Temporal API is arriving but is not yet safe to rely on everywhere.

Getting started

npm install date-fns

Field notes

0 from the community

Sign in to add a field note. Reading is always open.

Loading notes…
Neighbourhood

How date-fns + Day.js sits against the rest of the atlas — swaps, companions and the tools builders actually save alongside it.

Also in Libraries & build tooling

Astro Starlight + Nextra
starlight.astro.buildNot yet swept

Framework docs themes

FreeLibraries & build tooling
Free · MIT
Open dossier
Biome
biomejs.devNot yet swept

Linter + formatter (Rust)

FreeLibraries & build tooling
Free · MIT/Apache-2.0
Open dossier
Bun
bun.shNot yet swept

JS runtime + package manager

FreeLibraries & build tooling
Free · MIT
Open dossier
Chromatic
chromatic.comNot yet swept

Visual regression testing

Free tier + paidLibraries & build tooling
Free tier · Starter $179/mo
Open dossier