# hustcc/timeago.js

:clock8: :hourglass: timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement.

Repository: https://github.com/hustcc/timeago.js
Canonical: https://ross.abutalabs.com/products/timeagojs
Homepage: https://timeago.ling.pub
Language: TypeScript
License: MIT
License Family: permissive
Topics: timeago, datetime, tiny, multi-language, real-time, date-format, i18n
Last push: 2026-06-30T01:08:09+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 8, longevity 100
- inputs: {"age_days": 3724, "days_push": 65, "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 5371, forks 404 (observed 2026-08-28T04:09:16.150767+00:00)

## What it is
timeago.js is a tiny (<2kb) zero-dependency JavaScript/TypeScript library that formats dates as relative 'time ago' / 'time in' strings (e.g. '3 hours ago'). It supports i18n locales, automatic real-time re-rendering of DOM timestamps, and works in both Node and the browser.

## Use cases
- display timestamps like '3 hours ago' in a web app
- auto-refresh relative timestamps on a page
- format dates as 'time ago' in multiple languages
- show fuzzy timestamps without server-side calculation
- render relative dates for cached pages
- convert a date string or timestamp to human-readable relative time

## When to choose
- you need a tiny, dependency-free relative-time formatter
- you want built-in i18n/locale support for time-ago strings
- you need automatic live updating of timestamps in the DOM
- you want the same library in Node and the browser

## When to avoid
- you need full date parsing or manipulation (use date-fns or dayjs)
- you need precise, absolute date formatting
- you need a React-specific component (use timeago-react instead)

## Facets
- artifact type: library
- maturity: stable
- function: date-time, internationalization, templating
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: timeago, relative-time, fuzzy-timestamps, tiny-library, zero-dependency, i18n-locales, localization, nodejs

## Member repositories
- hustcc/timeago.js (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:16.150767+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-29T17:58:42.615955+00:00, confidence not recorded.
  - readme: https://github.com/hustcc/timeago.js (fetched 2026-08-28T04:09:16.150767+00:00, sha 81aeeabd8e4f)
  - homepage: https://timeago.ling.pub (fetched 2026-08-29T08:53:04.482480+00:00, sha d5480c3797eb)
  - registry_npm: https://registry.npmjs.org/timeago.js (fetched 2026-08-29T08:53:04.486382+00:00, sha 0d1051a1da5b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
