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

@brightspot/styleguide

v5.0.0

Published

The Brightspot styleguide renders JSON fixtures through a theme's Handlebars templates, so you can preview markup without running the CMS. It provides a webpack dev server helper for local development and the `styleguide-bundle` command, which packages a

Readme

@brightspot/styleguide

The Brightspot styleguide renders JSON fixtures through a theme's Handlebars templates, so you can preview markup without running the CMS. It provides a webpack dev server helper for local development and the styleguide-bundle command, which packages a theme into a .zip.

Choosing a version

The 4.9.x and 5.x lines both include the dependency security fixes from the 4.9.0 release. They differ in the front-end toolchain they expect from your project.

| | 4.9.x | 5.x | |---|---|---| | Node.js | 22.12 or later | 26 or later | | webpack | 5 | 5.101 or later | | webpack-dev-server | 3 | 5 or 6 | | Changes to your project | None | Toolchain and dev server configuration |

  • 4.9.x is a drop-in upgrade from 4.8.x. Change the version number in package.json and reinstall; no configuration changes are needed. Choose it when you want the security fixes without touching your build.
  • 5.x targets the current toolchain: webpack-dev-server 5 or 6, Express 5, and current versions of every dependency. Choose it when you are ready to upgrade your project's own toolchain.

The styleguide-bundle command, its options, and the PROXY_TARGET proxy mode work the same in both lines.

Upgrading from 4.x to 5.x

  1. Use Node.js 26 or later. Update .nvmrc, the engines field, and any Gradle node.version setting together.
  2. Upgrade webpack to 5.101 or later, webpack-dev-server to 5 or 6 (6 is recommended), and webpack-cli to 7. The styleguide declares webpack and webpack-dev-server as peer dependencies, so your project's versions are the ones that run.
  3. Remove before, overlay, and publicPath from your own devServer configuration. The styleguide.webpack() helper now sets setupMiddlewares and devMiddleware.publicPath instead, and defaults client.overlay to compile errors only, as overlay: true did in webpack-dev-server 3. Move any custom middleware into setupMiddlewares, and set client.overlay yourself if you want a different overlay.
  4. Remove HotModuleReplacementPlugin if you added it yourself. webpack-dev-server adds it when hot is on, and the helper no longer adds it.
  5. Add any package your project uses directly to its own package.json. In 4.x, the styleguide installed the following packages as dependencies, so a project could use them without declaring them. 5.x no longer installs them: stylelint, stylelint-config-prettier, stylelint-config-recommended, stylelint-order, stylelint-prettier, archiver, node-fetch, messageformat, capital-case, and isbinaryfile. glob and chalk are still installed, but at new major versions (14 and 6); declare your own versions if your scripts use the old APIs. stylelint-config-prettier has no release for stylelint 15 or later, so remove it from your stylelint configuration when you upgrade stylelint.

The helper's signature is unchanged: styleguide.webpack(rootDir, webpack, config).

Recommended toolchain upgrades

The styleguide does not require these, but upgrading them alongside 5.x brings the rest of a project current. The default and light bundles in the Brightspot starter packs are a working reference for all of them.

  • Babel 8. Requires Node.js ^22.18.0 || >=24.11.0. The useBuiltIns and corejs options are gone from @babel/preset-env. Use babel-plugin-polyfill-corejs3 with method: "usage-global", and set targets at the top level of the Babel options: the polyfill plugin ignores targets passed to the preset. Babel 8 ships class properties and dynamic import, so remove @babel/plugin-proposal-class-properties and @babel/plugin-syntax-dynamic-import.
  • ESLint 10. Only flat config is supported. Replace .eslintrc with eslint.config.mjs and use the typescript-eslint package in place of @typescript-eslint/eslint-plugin and @typescript-eslint/parser.
  • Prettier 3. The default trailingComma changed to all. Set "trailingComma": "es5" to keep the previous formatting and avoid reformatting every file.
  • TypeScript 6. The current typescript-eslint and fork-ts-checker-webpack-plugin versions rely on TypeScript's existing JavaScript compiler API. TypeScript 7 uses a different native API and is not a drop-in replacement for these tools.
  • Asset loaders. webpack 5 asset modules replace file-loader and url-loader.