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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@keeex/maintenance-sdk

v1.0.0

Published

Manage creation and access to maintenance file

Readme

KeeeX maintenance SDK

Allow manipulation and retrieval of the KeeeX infrastructure maintenance info. This is used as an in-app communication channel to notify user of planned events such as maintenance or ongoing incidents.

App usage

Call getAppStatus() with your app name and the locale to use (if available). You can repeat these calls as needed to update, the default settings will keep data cached for five minutes anyway.

Example:

import {getAppStatus} from "@keeex/maintenance-sdk";

const info = await getAppStatus({appName: "testapp", locale: "fr"});

Which will contain:

{
  events: [
    {
      active: true,
      endAt: 2025-04-03T13:20:00.000Z,
      infrastructure: true,
      links: undefined,
      message: 'Message de test infra',
      startAt: 2025-03-27T13:20:23.404Z,
      type: 'incident',
      id: -872298049
    },
    {
      active: false,
      endAt: 2025-03-29T13:21:00.000Z,
      infrastructure: false,
      links: undefined,
      message: 'Message de test app',
      startAt: 2025-03-28T13:21:00.000Z,
      type: 'maintenance',
      id: -947147315
    }
  ],
  links: {},
  oldDismissed: Set(0) {},
  updatedAt: 2025-03-27T13:22:24.417Z
}

Keeping track of hidden events

Each event is associated to a numeric ID. These IDs are not sequential, but are relatively unique per event. An application that wants to keep track of events that the user hid can store these IDs, as they'll remain constant through multiple updates.

If an application is using an IDs for an event that was deleted, it is notified in the reply of getAppStatus() so that the application can discard the information efficiently.

Updating the maintenance data

Maintenance data are mainly updated by using @keeex/maintenance-tool. See the appropriate directory in the repository config_sysadmin for more details.