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

react-kick

v0.1.2

Published

⚡️ An opinionated CLI that generates boilerplate code instantly.

Readme

React Kick

⚡️ An opinionated CLI that generates boilerplate code instantly.

Why

Even if your IDE has snippets, creating new components is still a boring, repetitive task that requires several files to be manually created. React Kick automates this task, sparing you from the tedium of copy-pasting repetitive code into your editor.

This tool aims to encourage you as a developer to create more components, each one with its purpose, leveraging the power of React the right way. It also suggests battle-tested patterns that I recommend you adopt in your project.

With a single command, you'll be able to generate the files in the appropriate filename structure and importing scheme to get you started quickly.

Install

npm install -g react-kick

Overview

Let's create a new component named Greeting. Run the following command:

$ rk component Greeting

You will notice that a new folder was created at src/components/Greeting along with the following files:

// index.js
export { default } from './Greeting'
export * from './Greeting'
// Greeting.jsx
import React from 'react'
import styles from './styles.module.css'

export default function Greeting () {
  return <div className={styles.wrapper}>Hello World!</div>
}
// Greeting.test.js
import React from 'react'
import { render, screen } from '@testing-library/react'
import '@testing-library/jest-dom'
import Greeting from '.'

test('says hello', () => {
  render(<Greeting />)

  expect(screen.getByText(/hello/i)).toBeTruthy()
})
/* styles.module.css */
.wrapper {
  position: relative;
}

If you have prettier installed, the files will be formatted accordingly.

Commands

rk component <name> [props...]

Generates a component in the src/components folder.

Aliases: rk c <name> [props...]

rk hook <name>

Generates a custom hook in the src/hooks folder.

Aliases: rk h <name>

Options

--out [path]

Forces a different output path.

Aliases: -o [path]

Configuration

If you need to customize the settings, just create a .kickrc or .kickrc.json file in your project root folder, specifying only the properties you need to change.

The default settings are:

// .kickrc
{
  "componentsPath": "src/components", // path to components
  "hooksPath": "src/hooks", // path to hooks
  "withTests": true, // include test example
  "withStyles": true, // include CSS module
  "defaultExport": true, // export as default
  "typescript": "auto", // bool | "auto" (detects automatically)
  "formatCmd": "prettier --write", // string | null
}

Examples

Creating a component with props

$ rk component Input value onChange

# Output
└── components
    └── Input
        ├── index.js
        ├── Input.jsx
        ├── Input.test.js
        └── styles.module.css

Creating an atom

$ rk component atoms/Button

# Output
└── components
    └── atoms
        └── Button
            ├── Button.jsx
            ├── Button.test.js
            ├── index.js
            └── styles.module.css

Creating a custom hook

$ rk hook useProducts

# Output
└── hooks
    └── useProducts
        ├── index.js
        ├── useProducts.js
        └── useProducts.test.js

To Do

  • Support other styling options (i.e. makeStyles, styled-components);
  • Support plugins to extend functionality (i.e. extra commands and/or options);

Thanks

This program is inspired by some great people who write some great stuff:

The list will be continuously updated with the references from which I borrow concepts and ideas.

License

MIT