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

@stadigicomms/pattern-library

v1.0.11

Published

University of St Andrews pattern library

Readme

University of St Andrews - Pattern library

A pattern library of components to use on digital services for the University of St Andrews.

How to use in your project

There are two ways to use the pattern library in your project.

  1. Install via Node.js package manager (recommended)
  2. Install using compiled files

1. Install via npm

This provides the most flexibility as you can choose to include only the components that you are using.

  1. Install Node.js. If you have not already installed version 4.2.0 or later of Node.js, install the latest Long Term Support (LTS) version.
  2. cd to the root of your project and check if you have a package.json file. If you do not have the file, create it by running: npm init.
  3. Install Dart Sass - version 1.0.0 or higher.
  4. Install the pattern library by running: npm install @stadigicomms/pattern-library --save. This will save the @stadigicomms/pattern-library to your node_modules folder

You can then directly reference individual components.

2. Install using compiled files.

You can also install the pattern library files via the CDN links, this includes all components.

Run the pattern library locally

The pattern library uses Fractal, to display components and their variants, which simplifies development and testing.

Install

To install your own local copy of the pattern library follow these steps:

  1. Clone the repo on GitLab.
  2. Ensure you have node.js installed.
  3. Run npm install in the directory you have saved the files. This will install all the dependencies for the project.

Run tasks

The following tasks can then be run:

Build development files

These are the CSS, JavaScript files and static assets that Fractal references to present the various components.

Run:

npm run dev

This will clear the contents of the /public directory and then compile the updated files to this location.

Build production files

These are the optimised CSS, JavaScript files and static assets that should be included within a project.

Run:

npm run build

This will clear the contents of the /build directory and then compile the updated files to this location.

View the pattern library

This launches Fractal to let you browse the components at the specified local URL.

Run:

npm run browse

This will start a new instance of Fractal on a local URL which will be specified in the terminal. This task remains running in the background as any new changes to development files will then automatically be updated in Fractal.

Watch for new changes to development files

Run:

npm run watch

This will re-compile the CSS and JavaScript to the /public directory if any changes are made. This task remains running in the background and can be used in parallel with the Fractal task to automatically update development files.