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

getjacked-components

v0.3.6

Published

Production-ready React UI primitives with theming and tree-shakeable ESM/CJS builds.

Readme

getjacked-components

Production-ready React UI primitives: Button, Card, Modal, Input, and Badge. Ships as ESM + CJS with TypeScript types, CSS Modules bundled to a single style.css, optional theming via ThemeProvider and CSS variables, and tree-shakeable named exports.

Requirements

  • React 18 or 19
  • react-dom 18 or 19

Install

npm install getjacked-components

Quick start

import { ThemeProvider, Button, Card, CardBody, CardHeader, CardTitle } from 'getjacked-components';

export function App() {
  return (
    <ThemeProvider defaultMode="system">
      <Card>
        <CardHeader>
          <CardTitle>Hello</CardTitle>
        </CardHeader>
        <CardBody>
          <Button variant="primary">Action</Button>
        </CardBody>
      </Card>
    </ThemeProvider>
  );
}
  • Styles: dist/index.mjs and dist/index.cjs start with a side-effect import / require of ./style.css, so Vite, webpack, and similar bundlers usually load getjacked-components/style.css automatically when you import from the package. If your setup ignores CSS in node_modules, add import 'getjacked-components/style.css' once in your app entry. Tokens live on :root / [data-gj-theme].
  • Wrap your app (or a subtree) with ThemeProvider for light / dark / system and data-gj-theme on the provider root.

Scripts (library repo)

| Script | Description | | ------------------- | ------------------------------------ | | npm run dev | vite build --watch for local linking | | npm run build | Typecheck + library bundle + .d.ts | | npm run test | Vitest | | npm run lint | ESLint | | npm run storybook | Component docs at localhost:6006 |

Publishing to npm

  1. Login: npm login
  2. Version (pick one):
    • npm version patch — bug fixes
    • npm version minor — new features, backwards compatible
    • npm version major — breaking changes
      This updates package.json / package-lock.json and creates a git tag if the repo is initialized.
  3. Publish: npm publish --access public
    prepack runs npm run build (so dist/ exists in the tarball). prepublishOnly runs npm run test.

Scoped name example: rename name in package.json to @your-scope/getjacked-components and publish with --access public for a public scope.

Consuming from a local folder

In your app:

"dependencies": {
  "getjacked-components": "file:../path/to/getjacked-components"
}

Installing from file: runs prepack in this package, which runs npm run build so dist/ is included. If you ever pack without scripts (or use an old npm), run npm run build in the library once, then npm install in the app.

If node_modules/getjacked-components only has package.json: the published/packed tarball had no dist/ folder. This repo’s files field only ships dist and README.md — there is no source on npm. Fix: ensure prepack runs (normal npm install / npm publish), or run npm run build manually before packing.

Git URL installs (github:...): npm clones the repo and installs dependencies; prepack runs when the dependency is packed. You need a lockfile/install that actually executes lifecycle scripts (and devDependencies available for the build).

See examples/consumer-app for a minimal Vite + React consumer.

Theming

  • Override CSS variables (e.g. --gj-color-primary) on :root or on a wrapper with [data-gj-theme='light'] / [data-gj-theme='dark'].
  • Use ThemeProvider mode / defaultMode: 'light' | 'dark' | 'system', and useTheme() for resolved, setMode, and toggle.

Tailwind (optional)

This package uses CSS Modules + variables so it stays framework-agnostic. In a Tailwind app, you can still pass className on components to layer utility classes.

License

MIT