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

@sbordeyne/backstage-plugin-should-i-deploy-today

v0.2.0

Published

Backstage home page widget answering whether today is a good day to deploy, from the weekday, the time of day and the public holidays of your locale.

Readme

should-i-deploy-today

A home page widget that answers one question: should you deploy right now?

The answer comes from the browser's own locale — no backend, no configuration, no API call. The widget reads the weekday, the time of day and the public holidays of the visitor's country, picks the first rule that matches, and renders a random message from that rule's set on a green, amber or red surface.

Full documentation lives at sbordeyne.github.io/backstage-plugins/plugins/should-i-deploy-today.

Installation

yarn --cwd packages/app add @sbordeyne/backstage-plugin-should-i-deploy-today

The plugin is built for the new frontend system and exports itself as the package default, so installing it is adding it to the app's features:

// packages/app/src/App.tsx
import shouldIDeployTodayPlugin from '@sbordeyne/backstage-plugin-should-i-deploy-today';

export const app = createApp({
  features: [shouldIDeployTodayPlugin],
});

It contributes a single HomePageWidgetBlueprint extension, so the widget then shows up in the home page widget picker as Should I deploy today? — nothing else has to be mounted by hand.

The rules

The first match wins, top to bottom:

| Rule | When | Status | | -------------------- | ----------------------------------------- | ------- | | friday_the_13th | Friday the 13th | KO | | weekend | Saturday or Sunday | KO | | holiday | Public holiday in the visitor's country | KO | | holiday_eve | Public holiday tomorrow | KO | | friday | Any Friday | KO | | evening_or_night | Before 09:00 or from 18:00 | KO | | thursday_afternoon | Thursday from 16:00 | WARNING | | afternoon | Any other day from 16:00 | WARNING | | none | Anything left — a regular working morning | OK |

Holidays come from date-holidays, restricted to public ones, for the country in Intl.DateTimeFormat().resolvedOptions().locale (falling back to US). Christmas, New Year's Day, Easter Monday and All Saints' Day have their own message sets; every other holiday uses the generic ones.

Development

yarn start   # serves the widget in isolation, see ./dev
yarn test

Messages live in src/data/reasons.json, keyed by rule. Holiday-specific keys are the holiday's English name, lowercased with non-alphanumerics stripped and spaces turned into underscores — Christmas Day becomes christmas_day. A key that matches no holiday silently falls back to default, so check the slug when adding one.