javascript-time-ago
Relative time formatting library that turns a date into phrases such as '3 minutes ago' or 'in 2 hours', with bundled multi-language locales, a pure function API and a ready-made React component.
javascript-time-ago at github.com/catamphetamine/javascript-time-ago is a free MIT relative time formatting library, npm javascript-time-ago 2.6.4 no declared Node engines, formats an instant into a relative phrase like minutes ago or in hours in the selected language, granularity rules for minutes hours days years, bundled multi-language locale packs, standalone function or React component for updating timestamps, source on GitLab with a GitHub mirror, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is javascript-time-ago free?
javascript-time-ago: javascript-time-ago is free open-source software released under the MIT License; the javascript-time-ago package latest 2.6.4 on npm does not declare a Node engines range. It formats an instant into a relative phrase in the selected language, with granularity rules for minutes, hours, days and years, and ships locale packs for multiple languages. It can be called as a standalone function or rendered through its React component for timestamps that update as time passes. The source repository lives on GitLab with a GitHub mirror; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is javascript-time-ago free?
The code is free to self-host, but a hosted plan from the vendor may not be. javascript-time-ago publishes its source, so cost depends on where you run it.
How much does javascript-time-ago cost?
javascript-time-ago is free open-source software released under the MIT License; the javascript-time-ago package latest 2.6.4 on npm does not declare a Node engines range. It formats an instant into a relative phrase in the selected language, with granularity rules for minutes, hours, days and years, and ships locale packs for multiple languages. It can be called as a standalone function or rendered through its React component for timestamps that update as time passes. The source repository lives on GitLab with a GitHub mirror; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check javascript-time-ago's current pricing?
On javascript-time-ago's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is javascript-time-ago?
An instant is converted to a localized relative phrase with configurable granularity, and the React component re-renders the phrase as the timestamp ages; locale packs cover multiple languages.
How does pricing work?
The package installs free under MIT with no seat license; the React or Node runtime follows its own terms, and commercial support would be outside the open-source project.
How does javascript-time-ago compare with other tools in Dev Workflow & Productivity?
javascript-time-ago is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| javascript-time-ago | Open source | javascript-time-ago is free open-source software released under the MIT License; the javascript-time-ago package latest 2.6.4 on npm does not declare a Node engines range. It formats an instant into a relative phrase in the selected language, with granularity rules for minutes, hours, days and years, and ships locale packs for multiple languages. It can be called as a standalone function or rendered through its React component for timestamps that update as time passes. The source repository lives on GitLab with a GitHub mirror; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| date-fns | Open source | date-fns is free open-source software released under the MIT License; the date-fns package latest 4.4.0 on npm does not declare a Node engines range. Date operations are small standalone functions applied to a Date instance: formatting, parsing, adding or subtracting units, comparing start of day, durations and timezone-aware helpers are imported only where used, and locales ship as separate modules. It stays immutable in style and is commonly used in browser and Node applications where bundle size matters. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Day.js | Open source | Day.js is free open-source software released under the MIT License; the dayjs package latest 1.11.23 on npm does not declare a Node engines range. It wraps the native Date in an immutable object with a chainable interface close to Moment, so formatting, parsing, add/subtract, relative and comparison calls read in one line. Plugins add UTC, timezone, relative time, week-of-year, custom locales and calendar formats, loaded on demand. The core stays around a few kilobytes and works in browsers and Node. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
javascript-time-ago's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: javascript-time-ago is free open-source software released under the MIT License; the javascript-time-ago package latest 2.6.4 on npm does not declare a Node engines range. It formats an instant into a relative phrase in the selected language, with granularity rules for minutes, hours, days and years, and ships locale packs for multiple languages. It can be called as a standalone function or rendered through its React component for timestamps that update as time passes. The source repository lives on GitLab with a GitHub mirror; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
date-fns
Modular functional date utility library that exposes small per-function imports for parsing, formatting, arithmetic, comparisons, durations and locales, keeping the bundle tree-shakable instead of shipping one mutable Date wrapper.
Day.js
Lightweight immutable date library with a Moment-compatible chainable API, wrapping a Date in a small object and extending formatting, relative time, timezone and calendar behavior through optional plugins.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
