№ 03 · Projects · active
fdu
Ultra-fast, zero-dependency date-time library for JavaScript — approximately 4x faster than Day.js.
- Created
- Stack
- TypeScriptnpmZero-Dependency
- Site
- fdu.fasu.dev/docs/introduction
- Source
- pyyupsk/fdu
Ultra-fast, zero-dependency date-time library for JavaScript and TypeScript. Immutable API, tree-shakeable ESM design, and locale-aware formatting — grounded in calendar-correct arithmetic with floor semantics.
Performance
Benchmarked against Day.js, date-fns, and Luxon:
- 4x faster date manipulation
- 13x faster comparisons
- 1.7x faster formatting
Usage
import { fdu } from "@pyyupsk/fdu";
const date = fdu("2025-09-30");
date.format("YYYY-MM-DD HH:mm:ss");
date.add(1, "day").format("[Tomorrow is] dddd");