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

@ybouhjira/eslint-plugin-hyperkit

v0.1.0

Published

ESLint plugin for HyperKit component library - enforce HyperKit best practices and theme usage.

Readme

@ybouhjira/eslint-plugin-hyperkit

ESLint plugin for HyperKit component library - enforce HyperKit best practices and theme usage.

Installation

pnpm add -D @ybouhjira/eslint-plugin-hyperkit

Usage

Add to your ESLint configuration:

import hyperkit from '@ybouhjira/eslint-plugin-hyperkit';

export default [
  {
    plugins: {
      hyperkit,
    },
    rules: {
      'hyperkit/no-hardcoded-colors': 'error',
      'hyperkit/no-hardcoded-font-size': 'error',
      'hyperkit/no-hardcoded-spacing': 'warn',
      'hyperkit/no-important': 'error',
      'hyperkit/require-keyed-show': 'error',
      'hyperkit/no-props-assign-outside-jsx': 'error',
    },
  },
];

Rules

no-hardcoded-colors

Detects hardcoded color values in JSX inline styles and suggests using HyperKit theme variables.

Invalid:

<div style={{ color: '#fff' }} />
<div style={{ backgroundColor: 'rgb(255, 0, 0)' }} />
<div style={{ borderColor: 'red' }} />

Valid:

<div style={{ color: 'var(--sk-text-primary)' }} />
<div style={{ backgroundColor: 'transparent' }} />
<div style={{ color: 'inherit' }} />

no-hardcoded-font-size

Detects hardcoded font sizes in JSX inline styles and suggests using HyperKit theme variables.

Invalid:

<div style={{ fontSize: '14px' }} />
<div style={{ fontSize: '1.2rem' }} />

Valid:

<div style={{ fontSize: 'var(--sk-font-size-base)' }} />
<div style={{ fontSize: 'inherit' }} />

Suggestions:

  • 12pxvar(--sk-font-size-xs)
  • 14pxvar(--sk-font-size-sm)
  • 16pxvar(--sk-font-size-base)
  • 18pxvar(--sk-font-size-lg)
  • 20pxvar(--sk-font-size-xl)
  • 24pxvar(--sk-font-size-2xl)

no-hardcoded-spacing

Detects hardcoded spacing values in JSX inline styles (severity: warn by default).

Invalid:

<div style={{ padding: '16px' }} />
<div style={{ margin: '8px 16px' }} />
<div style={{ gap: '1rem' }} />

Valid:

<div style={{ padding: 'var(--sk-space-md)' }} />
<div style={{ margin: '0' }} />
<div style={{ padding: 'auto' }} />

no-important

Detects !important in inline style values.

Invalid:

<div style={{ color: 'red !important' }} />
<div style={{ display: 'none !important' }} />

Valid:

<div style={{ color: 'var(--sk-text-primary)' }} />

require-keyed-show

Detects <Show> components with render callback children but without keyed prop.

Invalid:

<Show when={condition()}>{(item) => <div>{item}</div>}</Show>
<Show when={data()}>{(d) => <span>{d.name}</span>}</Show>

Valid:

<Show when={condition()} keyed>{(item) => <div>{item}</div>}</Show>
<Show when={isVisible()}><div>Static content</div></Show>

no-props-assign-outside-jsx

Detects assigning props.x to a const/let/var outside of a reactive scope, which breaks SolidJS reactivity.

Invalid:

function Comp(props) {
  const x = props.foo;
  return <div />;
}

function Comp(props) {
  const x = props.foo || props.bar;
  return <div />;
}

function Comp(props) {
  const { foo, bar } = props;
  return <div />;
}

Valid:

function Comp(props) {
  const x = () => props.foo;
  return <div />;
}

function Comp(props) {
  return <div>{props.foo}</div>;
}

function Comp(props) {
  createMemo(() => props.foo);
  return <div />;
}

Development

# Install dependencies
pnpm install

# Run tests
pnpm test

# Watch mode
pnpm test:watch

License

ISC