Display 'posted 2 hours ago' style relative timestamps on a blog or social feed.
Show localized day and month names in a calendar component for different languages.
Check if a selected date falls on a weekend to conditionally disable booking options.
Get a quick summary of a date's properties like day name, week number, and leap year status in one call.
| ankityadav0271/ui-date | 4ssh1/mine-sweeper | achawla19/intuitcode-extension | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | TypeScript | TypeScript | TypeScript |
| Last pushed | — | 2026-01-31 | — |
| Maintenance | — | Maintained | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Install with your package manager of choice like npm or yarn, no extra setup is needed since it has zero runtime dependencies.
ui-date is a small TypeScript library for formatting and displaying dates in JavaScript applications. It has zero runtime dependencies and relies entirely on built-in browser and Node.js capabilities, so there is nothing extra to install or bundle. The package weighs under one kilobyte when minified and compressed. The library offers two ways to use it. The chainable API creates a date object you can call multiple methods on, which is handy when you need several pieces of information about the same date. The standalone functional API lets you import individual functions for one-off tasks, like getting a day name or checking if a date falls on a weekend. Both APIs cover the same features and produce identical output, so the choice comes down to coding style. Common tasks include retrieving day and month names, formatting dates into readable strings, and generating relative time text such as "5 minutes ago" or "in 2 days." The library also provides helper methods to check if a date is today, tomorrow, yesterday, a weekend day, or part of a leap year. An overview method bundles many commonly used date properties into a single call. Internationalization is built in through the native Intl API, which means the library supports hundreds of locale codes out of the box. Passing a locale string like "fr-FR" or "ja-JP" produces localized day and month names automatically. If an invalid locale is supplied, the library falls back to the system default without crashing. The author's motivation is that JavaScript's built-in Date object works but often requires verbose code for everyday display tasks. ui-date wraps those patterns behind shorter method names. It works in any JavaScript or TypeScript environment, including React, Vue, Svelte, Angular, Node.js, Bun, and Deno. You can install it through npm, pnpm, yarn, or bun. The full README is longer than what was shown.
A tiny TypeScript library that makes it easy to format dates and display relative times like '5 minutes ago' in JavaScript apps, with built-in support for hundreds of languages.
Mainly TypeScript. The stack also includes TypeScript, JavaScript, Intl API.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.