hustcc/timeago.js
:clock8: :hourglass: timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement. observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 90
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3724
- days_rel: n/a
- days_push: 65
- n_releases_24m: 0
Adoption not part of the score
5371 stars · 404 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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
library · maturity stable
date-time internationalization templating web-development frontend browser cross-platform timeago relative-time fuzzy-timestamps tiny-library zero-dependency i18n-locales localization nodejs
3 sources
- readme: https://github.com/hustcc/timeago.js · fetched 2026-08-28 · 81aeeabd8e4f
- homepage: https://timeago.ling.pub · fetched 2026-08-29 · d5480c3797eb
- registry_npm: https://registry.npmjs.org/timeago.js · fetched 2026-08-29 · 0d1051a1da5b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hustcc/timeago.js | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="hustcc/timeago.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem