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

hpe-design-system-codemods

v0.2.1

Published

A codemod package for transformations related to the HPE Design System.

Readme

HPE Design System Codemods

A collection of codemods to assist with migrations for the HPE Design System.

Quick Start

Run codemods directly with npx (no installation required):

npx hpe-design-system-codemods <transform-name> <path> [options]

Available Transforms

Features

  • ✅ Handles JS, JSX, TS, and TSX files
  • ✅ Dry run mode to preview changes
  • ✅ Comprehensive test coverage
  • ✅ Detailed migration guides

📚 Documentation

Codemod transforms

Transform Details

migrate-grommet-icons-to-hpe

Migrates icon imports from grommet-icons to @hpe-design/icons-grommet with automatic name remapping.

Quick Start:

# Basic usage
npx hpe-design-system-codemods migrate-grommet-icons-to-hpe src/

# Preview changes first
npx hpe-design-system-codemods migrate-grommet-icons-to-hpe src/ --dry

Key Features:

  • ✅ Updates library imports
  • ✅ Remaps 100+ icon names (e.g., StatusCriticalSmallStatusCritical)
  • ✅ Updates JSX elements and references
  • ✅ Handles aliased imports
  • ✅ Warns about deprecated icons

📖 Complete Migration Guide →

Before/After Example:

// Before
import { StatusCriticalSmall, Next, BarChart } from 'grommet-icons';

// After  
import { StatusCritical, Right, ChartBar } from '@hpe-design/icons-grommet';

migrate-theme-v6-to-v7

Migrates Grommet HPE theme v6 to v7 t-shirt size properties with intelligent pattern recognition.

Quick Start:

# Basic usage
npx hpe-design-system-codemods migrate-theme-v6-to-v7 src/

# Scan for changes without transforming
npx hpe-design-system-codemods migrate-theme-v6-to-v7 src/ --scan

# Preview changes first
npx hpe-design-system-codemods migrate-theme-v6-to-v7 src/ --dry

Key Features:

  • ✅ Migrates spacing properties (gap, margin, pad, thickness)
  • ✅ Updates container properties (height, width, columns, rows)
  • ✅ Handles border and radius properties
  • ✅ Scan mode for manual review identification
  • ✅ Preserves complex nested structures

📖 Complete Migration Guide →

Before/After Example:

// Before
<Box pad="small" margin="large" />

// After
<Box pad="xsmall" margin="xlarge" />

Need Help?