npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@magmacomputing/tempo

v1.0.8

Published

A premium, high-performance wrapper around the JavaScript Temporal API.

Readme

Tempo

Tempo is a premium, high-performance wrapper around the JavaScript Temporal API, providing a fluent and intuitive interface for date-time manipulation and flexible parsing.

License: MIT Temporal

🚀 Overview

Working with dates in JavaScript has historically been painful. The new Temporal proposal (Stage 3) fixes this, but it can be verbose and strict when parsing strings.

Tempo bridges that gap by providing:

  • Flexible Parsing: Interprets almost any date string, including relative ones like "next Friday".
  • Fluent API: Chainable methods for adding, subtracting, and setting date-times.
  • Formatting: Use custom tokens to format date-times in a way that is both intuitive and flexible.
  • Built-in Plugins: Access complex date ranges (Quarters, Seasons, Fiscal Years) easily.
  • Immutable: operations (like 'set', and 'add') return a new Tempo instance, ensuring thread safety and predictability.

📦 Installation

npm install @magmacomputing/tempo

💻 Node.js (Server-Side)

Tempo is a native ESM package. In Node.js (20+), simply import the class:

import { Tempo } from '@magmacomputing/tempo';

const t = new Tempo('next Friday');
console.log(t.format('{dd} {mon} {yyyy}'));

🌐 Browser (Import Maps)

Since Tempo is a native ESM package, you can use it directly in modern browsers using importmap:

<script type="importmap">
{
  "imports": {
    "@magmacomputing/tempo": "https://cdn.jsdelivr.net/npm/@magmacomputing/tempo/dist/index.js"
  }
}
</script>
<script type="module">
  import { Tempo } from '@magmacomputing/tempo';
  const t = new Tempo('next friday');
  console.log(t.format('{mon} {day}'));
</script>

📦 Browser (Script Tag)

For environments without importmap support or simple prototypes, use the bundled version:

<script src="https://cdn.jsdelivr.net/npm/@magmacomputing/tempo/dist/tempo.bundle.js"></script>
<script>
  const t = new Tempo('tomorrow');
  console.log(t.toString());
</script>

🛠️ Quick Start

import { Tempo } from '@magmacomputing/tempo';

// Instantiate 
const now = new Tempo(); 
const birthday = new Tempo('20-May-1990');
const nextWeek = new Tempo('next Monday');

// Manipulate
const later = now.add({ days: 3, hours: 2 });
const startOfMonth = now.set({ start: 'month' });

// Format
console.log(now.format('{dd} {mmm} {yyyy}')); // using custom format with tokens: "24 Jan 2026"
console.log(now.fmt.date);                    // using pre-built formats: "2026-01-24"

📚 Documentation

For detailed technical guides, please refer to:

💖 Support the Project

If you find Tempo useful and want to support its development, please consider sponsoring me on GitHub! Your support helps keep the project active and premium.

GitHub Sponsors

💬 Contact & Support

If you have a question, find a bug, or want to suggest a new feature:

  1. Bug Reports & Features: Please open an Issue.
  2. Questions & Ideas: Start a thread in Discussions.
  3. Direct Contact: You can reach me at [email protected].

🛡️ Privacy & Transparency

We value your privacy. Tempo does not include any runtime telemetry or "phone-home" features. To understand adoption and prioritize features, we use Scarf to aggregate anonymous download statistics.

  • No Runtime Tracking: Tempo will never make network requests from your application.
  • Anonymous Data: We only see aggregated metadata (e.g., download volume, general geographic region) provided by the registry gateway.
  • Opt-out: You can opt-out of Scarf's tracking by following their opt-out instructions.

🗳️ Feedback & Reactions

How are we doing? Let us know with a simple reaction!
(This will open a pre-filled GitHub Issue)

🚀 Premium!   |   ⭐ Loving it!   |   💡 Needs work   |   🐞 Found a bug

⚡ Quick Reactions

(Native reactions available in Discussions)

👍 Like   |   ❤️ Love   |   😄 Haha   |   😮 Wow   |   😢 Sad   |   😡 Angry   |   💩 Poop

⚖️ License

Distributed under the MIT License. See LICENSE for more information.