# nmn/react-timeago

A simple time-ago component for ReactJs.

Repository: https://github.com/nmn/react-timeago
Canonical: https://ross.abutalabs.com/products/react-timeago
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-05-22T05:33:06+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 83, release rhythm 8, longevity 100
- inputs: {"age_days": 4387, "days_push": 103, "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 1096, forks 133 (observed 2026-08-28T04:03:34.309407+00:00)

## What it is
A small React component that renders a date as a live-updating 'time ago' string (e.g. '5 minutes ago'), updating only as often as needed. It supports many languages via built-in string formatters and an Intl-based formatter for any locale.

## Use cases
- show relative timestamps like '5 minutes ago' in a React app
- display live-updating comment or post timestamps
- format time-ago strings in multiple languages
- localize relative dates using Intl RelativeTimeFormat
- minimize re-renders for aging timestamps

## When to choose
- you need a lightweight, drop-in React component for relative timestamps
- you want multi-language or Intl-based relative time formatting
- you care about performance and minimal re-renders

## When to avoid
- you are not using React
- you need full date formatting (calendars, timezones) rather than time-ago strings
- you need a framework-agnostic vanilla JS solution

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, internationalization, date-time
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: react, time-ago, relative-time, live-updating, intl, localization, nodejs

## Member repositories
- nmn/react-timeago (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:34.309407+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:47:11.303022+00:00, confidence not recorded.
  - readme: https://github.com/nmn/react-timeago (fetched 2026-08-28T04:03:34.309407+00:00, sha 03b2ba0f5d9b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
