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

@ministryofjustice/hmpps-mpop-frontend-components-lib

v0.0.12

Published

MPOP front-end components library

Readme

hmpps-mpop-frontend-components-lib

MPoP front-end library

Usage

Installation

npm install @ministryofjustice/hmpps-mpop-frontend-components-lib

Nunjucks setup

The components in this library use custom Nunjucks filters. You must register them with your Nunjucks environment before rendering any components, otherwise you will see a filter not found error.

Call mpopNunjucksSetup once when configuring your application:

import nunjucks from 'nunjucks'
import { mpopNunjucksSetup } from '@ministryofjustice/hmpps-mpop-frontend-components-lib'

const env = nunjucks.configure([...])
mpopNunjucksSetup(env)

SCSS

Import the component styles in your SCSS entry point:

@import '@ministryofjustice/hmpps-mpop-frontend-components-lib/dist/all';

Releasing

This package is published to npm using GitHub Releases and npm Trusted Publishing.

You can view the npm page for this package here https://www.npmjs.com/package/@ministryofjustice/hmpps-mpop-frontend-components-lib

Pre-requisites

  • Ensure GitHub CLI (gh) is installed and authenticated

    gh auth status || gh auth login

Release process

  1. Create a unique branch name from the latest main and update the package version, such as:

    git checkout main
    git pull
    git checkout -b chore/bump-package-version-<version>
    
    npm version patch --no-git-tag-version

    Alternatively:

    npm version minor --no-git-tag-version
    npm version major --no-git-tag-version
  2. Commit the version change:

    git add package.json package-lock.json
    git commit -m "Bump package version"
    git push -u origin HEAD
  3. Raise a pull request and merge it into main.

  4. Ensure your local main is up to date, then create a draft GitHub release for the version:

    git checkout main
    git pull
    
    VERSION=$(node -p "require('./package.json').version")
    
    gh release create "v$VERSION" \
      --target main \
      --title "v$VERSION" \
      --generate-notes \
      --draft
  5. Publish the GitHub release (i.e. mark it as not a draft) to trigger the publish workflow and publish the package to npm.

Notes

  • The GitHub release tag should be v<version>, where <version> matches the version in package.json.
  • The package version must be greater than the latest version published to npm.
  • Publishing uses npm Trusted Publishing via GitHub Actions and does not require an npm token.
  • If the version already exists on npm, the publish workflow will skip publishing.