Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

timeago.js

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

UtilitiesNPM

GitHubWebsite

1. License

License from npm.

github.com/hustcc/timeago.js

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What timeago.js does

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

timeago.js popularity

43 / 100
Gid Score, #2638 overall
437K
downloads a week, npm
5,368
GitHub stars
7
agent projects use it
timeago.js: downloads per weeknpm, timeago.js 436,524

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How timeago.js is used

  • timeago.js joined the catalog on its public numbers (436,524 downloads a week on npm and 5,368 GitHub stars), not on our project count: it is a dependency in 10 public GitHub projects of our scan, 7 of them set up for AI coding agents.
  • The most used alternative in our scan is date-fns (652 projects).
  • Projects that use it most often also use dotenv (90.0%), Lucide React (80.0%), Sonner (80.0%).

Often used with

In 90.0% of its projects
In 80.0% of its projects
In 80.0% of its projects
In 100.0% of its projects
In 70.0% of its projects
In 70.0% of its projects
In 90.0% of its projects
In 60.0% of its projects

More about timeago.js

Funding
  • Own page: https://paypal.me/hustcc
  • Own page: https://atool.vip

See all

More in Utilities

Alternatives

timeago.js This page

MITGid 43437K/wk

date-fns

Modern JavaScript date utility library with comprehensive formatting functions.

MITGid 8512M/wk

Day.js

2KB immutable date/time library with modern API as lightweight Moment.js alternative.

MITGid 8111M/wk

Compare timeago.js with another tool

Get started

Install it.

npm install timeago.js

No step-by-step start for timeago.js yet: we have not written its hand-checked card.