RepositoryTypeScriptUSUnited States
formkit

formkit/tempo

📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.

2.6kstars
45forks
1issues
3views

📆 Tempo: Lightweight Date Utilities Built on Native JavaScript Dates

A small, tree-shakable toolkit for formatting, parsing, and manipulating dates without custom date primitives.

Tempo, created by the FormKit team, is a JavaScript and TypeScript library for working with dates and times. Inspired by libraries like moment.js, day.js, and date-fns, it focuses on simplicity and small size while operating directly on native Date objects. Under the hood, Tempo uses Intl.DateTimeFormat to handle timezone offsets and locale-aware formatting.

✨ Highlights

  • Native Date objects: Works with standard JavaScript Date instances instead of introducing a custom date primitive.
  • Parse, format, and manipulate: Provides utilities for common date and time operations in JavaScript and TypeScript.
  • Internationalization support: Uses Intl.DateTimeFormat for locale-aware date formatting and timezone-related data.
  • Timezone utilities: Lets you work with timezones with only a small amount of library code.
  • Tiny and tree-shakable: Import only what you need; full international date formatting is around ~2Kb minified and brotlied.
  • Size-conscious build: Uses Size Limit to help control package size.

💡 Why it matters

Many date libraries wrap dates in their own objects, which can add API overhead and bundle weight. Tempo takes a different approach by building utilities around the native Date and leveraging the platform's internationalization features, so you get practical formatting and timezone support without adopting a separate date model.

It fits well when you want modern date utilities in JavaScript or TypeScript but prefer to keep dependencies small and stay close to native APIs. For projects that need locale-aware formatting or targeted date helpers, Tempo offers a focused alternative to heavier all-in-one date libraries.


#JavaScript #TypeScript #DateTime #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
iamkun/dayjs

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

48.6k
Nov 6, 2026
RepositorySwift
davedelong/time

Robust and type-safe date and time calculations for Swift

2.3k
Sep 5, 2026
RepositoryPython
arrow-py/arrow

🏹 Better dates & times for Python

9.1k
Jun 22, 2026
RepositoryPython
python-pendulum/pendulum

Python datetimes made easy

6.7k
Nov 30, 2026
RepositoryGo
dromara/carbon

A simple, semantic and developer-friendly time package for golang

5.2k
Dec 1, 2026
RepositoryC++
HowardHinnant/date

A date and time library based on the C++11/14/17 <chrono> header

3.4k
Nov 24, 2026
RepositoryPython
myusuf3/delorean

Delorean: Time Travel Made Easy

1.8k
Oct 28, 2026
RepositoryJavaScript
layui/laydate

一款被广泛使用的高级 Web 日历组件,完全开源无偿且颜值与功能兼备,足以应对日期相关的各种业务场景

1.1k
Mar 31, 2023
RepositoryPHP
thephpleague/period

PHP's time range API

730
Oct 28, 2026