# lukeed/tinydate

A tiny (349B) reusable date formatter. Extremely fast!

Repository: https://github.com/lukeed/tinydate
Canonical: https://ross.abutalabs.com/products/tinydate
Homepage: https://jsfiddle.net/lukeed/aoy0xeze/
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, date, datetime, format, time, timestamp
Last push: 2024-01-20T17:52:53+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3411, "days_push": 956, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1067, forks 14 (observed 2026-08-28T04:03:27.168953+00:00)

## What it is
tinydate is a tiny (349B) JavaScript date formatting library that compiles a template pattern into a reusable render function. It supports a limited set of date patterns (year, month, day, hours, minutes, seconds, milliseconds) with optional custom dictionaries, and is extremely fast compared to alternatives.

## Use cases
- format dates as timestamps in javascript
- render a date template string repeatedly with high performance
- format current time as HH:mm:ss in node
- customize date pattern tokens like month names
- replace heavier date libraries with a 349-byte formatter

## When to choose
- you need a minimal, dependency-free date formatter
- performance matters and you only need basic date/time tokens
- you want a reusable compiled template for repeated date rendering

## When to avoid
- you need locale-aware or complex date formatting (use date-fns or Intl)
- you need timezone conversion or date manipulation
- you need patterns beyond the supported subset like month names by default

## Facets
- artifact type: library
- maturity: stable
- function: date-time, templating, serialization
- domain: developer-tools, web-development
- platform: browser
- tags: date-formatter, tiny, zero-dependency, performance, timestamp, algorithms, nodejs, javascript

## Member repositories
- lukeed/tinydate (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:27.168953+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:55:11.144098+00:00, confidence not recorded.
  - readme: https://github.com/lukeed/tinydate (fetched 2026-08-28T04:03:27.168953+00:00, sha 6ae5c97c0525)
  - homepage: https://jsfiddle.net/lukeed/aoy0xeze/ (fetched 2026-08-29T12:57:03.254000+00:00, sha b3bfba784ccd)
  - registry_npm: https://registry.npmjs.org/tinydate (fetched 2026-08-29T12:57:03.256776+00:00, sha ccb78976f2af)
- Data as of 2026-08-30T08:39:29.467469+00:00.
