# timeago.js — card for AI agents

Tiny library (<2KB) to format dates as relative time strings like '3 hours ago' with i18n.

Category: Utilities · npm package `timeago.js` · latest version 4.3.1 (checked 2026-11-17)
Install: `npm install timeago.js`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 43.2 (#2638 of all tools, 288 of 406 in its category)
- Used in 7 public projects set up for AI coding agents (0.1%)
- Downloads last week: 436,524 (as of 2026-11-17), +23.3% over 4 weeks
- GitHub stars: 5,368 (as of 2026-11-17)
- Last push: 2026-11-12

## Often used with
dotenv 90.0%, Lucide React 80.0%, Sonner 80.0%, React 100.0%, Framer Motion 70.0%, Recharts 70.0%

## Checked alternatives (same job)
- date-fns: https://agentgid.com/tools/date-fns/agent.md
- Day.js: https://agentgid.com/tools/dayjs/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/timeago-js/
- Homepage: https://github.com/hustcc/timeago.js#readme
- Repository: https://github.com/hustcc/timeago.js

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
