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

reuseit

v1.6.9

Published

CLI for downloading components from Re-use-it!

Readme

Re-use-it! CLI

Re-use-it! CLI is a command-line tool that allows you to quickly and easily download reusable React components and snippets into your project. You can fetch individual components or utility snippets from the Re-use-it library and add them directly to your project's codebase.

Check out Re-use-it! components : Re-use-it

Features

  • Easily fetch and download React components from the Re-use-it repository.
  • Download reusable components like buttons, modals, inputs, sliders, tooltips, etc., with a simple command.
  • Automatically create necessary directories and save components in the src/components/reuseit/ folder.
  • Download utility snippets and save them in the src/utils/ folder.
  • Supports a wide range of reusable components and utility snippets.
  • Simple CLI interface for fast integration.

Installation

To use the Re-use-it! CLI tool in your React project, follow these steps:

Step 1: Install Tailwind CSS and initialise Reuseit

After installing Tailwind CSS :

npx reuseit init

Step 2: Add the component or snippet to your project

Navigate to your React project directory and run the following command with the name of the component or snippet you want to download:

To add a React component:

npx reuseit add <component-name>

Replace <component-name> with the name of the component you want to add. For example, to add the PrimaryButton component:

npx reuseit add primarybutton

This will download the component from GitHub and save it to src/components/reuseit/PrimaryButton.tsx.

To add a utility snippet:

npx reuseit add-snippet <snippet-name>

For example, to add the useDebounce snippet:

npx reuseit add-snippet usedebounce

This will download the utility snippet from GitHub and save it to src/utils/useDebounce.tsx.

Here is the list of components and snippets in camelCase:

Available Components

Here are the components you can add to your project using the CLI:

  • accordion
  • accordionGroup
  • alert
  • alertModal
  • avatar
  • badge
  • card
  • carousel
  • checkbox
  • combobox
  • drawer
  • datePicker
  • footer
  • input
  • loader
  • modal
  • navbar
  • otpInput
  • passwordInput
  • primaryButton
  • progressBar
  • radioButton
  • secondaryButton
  • select
  • securityHeaders
  • slider
  • switch
  • table
  • textArea
  • timeline
  • toggle
  • tooltip

Available Snippets

Here are the utility snippets you can add to your project using the CLI:

  • useDebounce
  • axiosInstance
  • breakUrlIntoPaths
  • capitalizeFirstLetters
  • cloudinary
  • expressTemplate
  • formatNumber
  • getMinsToRead
  • imageCompression
  • multer
  • regexFunctions
  • shuffleArray

Example Usage

  1. To add a PrimaryButton component:

    npx reuseit add primarybutton
  2. To add a Slider component:

    npx reuseit add slider
  3. To add a Table component:

    npx reuseit add table
  4. To add the useDebounce snippet:

    npx reuseit add-snippet usedebounce

Error Handling

  • If you try to add a component or snippet that does not exist or is incorrectly typed, you will see an error message like:

    Error: Could not find component '<component-name>!'
  • If Tailwind CSS is not installed, the CLI will show the following error:

    Tailwind CSS is not installed. Please install Tailwind CSS before adding components.

License

This project is licensed under the MIT License - see the LICENSE file for details.