# aweary/tinytime

⏰ A straightforward date and time formatter in <1kb

Repository: https://github.com/aweary/tinytime
Canonical: https://ross.abutalabs.com/products/tinytime
Language: JavaScript
License: MIT
License Family: permissive
Topics: date, time, template
Last push: 2023-01-12T05:12:08+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": 3513, "days_push": 1329, "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 1323, forks 38 (observed 2026-08-28T04:04:22.253549+00:00)

## What it is
Tinytime is an ultra-small (<1kb) JavaScript date and time formatting library that uses template strings with substitution tokens. It parses templates into an AST once so repeated renders are efficient.

## Use cases
- format dates in javascript with a tiny library
- render timestamps in react components efficiently
- format time as h:mm:ss AM/PM
- lightweight alternative to moment.js for date formatting
- display formatted dates from template strings

## When to choose
- you need simple date/time formatting with a minimal bundle size
- you render the same date template many times and want cached parsing
- you want a moment.js alternative without heavy dependencies

## When to avoid
- you need locale-aware or internationalized date formatting
- you need date manipulation, parsing, or timezone conversion
- you need relative time like '3 days ago'

## Facets
- artifact type: library
- maturity: maintenance
- function: date-time, templating
- domain: developer-tools, web-development, frontend
- platform: browser
- tags: date-formatting, tiny-library, template-compiler, zero-dependency, javascript, nodejs

## Member repositories
- aweary/tinytime (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.253549+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-30T04:47:04.005465+00:00, confidence not recorded.
  - readme: https://github.com/aweary/tinytime (fetched 2026-08-28T04:04:22.253549+00:00, sha 5b0b50a462d0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
