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

gsap-rcu

v1.0.0

Published

CLI to install animated React and Next.js components powered by GSAP

Readme

RCU – React Component Utility

RCU is a CLI-based component installer for React and Next.js projects. It allows developers to quickly add prebuilt UI components directly into their projects with a single command.

The goal of RCU is similar to modern component CLIs: instead of installing a UI library package, it copies real component code into your project, so you can freely modify and customize it.

RCU components are built with:

  • Tailwind CSS
  • GSAP animations
  • React / Next.js

Features

  • CLI-based component installation
  • Automatic project detection
  • Supports React and Next.js
  • Supports JavaScript and TypeScript
  • Dynamic component registry
  • Component dependency system
  • Automatic npm dependency installation
  • Overwrite protection

Supported Project Types

RCU automatically detects the project type and installs the correct component version.

| Framework | Language | Installed Variant | | --------- | ---------- | ----------------- | | React | JavaScript | react-js | | React | TypeScript | react-ts | | Next.js | JavaScript | next-js | | Next.js | TypeScript | next-ts |


Installation

Install RCU globally:

npm install -g rcu

Or use locally via:

npm link

CLI Commands

Initialize Project

Creates the required structure for components.

rcu init

List Available Components

Shows all components available in the registry.

rcu list

Example output:

Available components:

button
modal
accordion

Add Component

Install a component into your project.

rcu add button

This will copy the component into:

components/ui/button.tsx

Interactive Component Selection

If no component is specified:

rcu add

RCU will open an interactive selector.


Component Structure

All components are stored in the registry directory.

Example structure:

registry
 └ button
     ├ component.json
     ├ react-js
     │   └ button.jsx
     ├ react-ts
     │   └ button.tsx
     ├ next-js
     │   └ button.jsx
     └ next-ts
         └ button.tsx

Each variant corresponds to a specific framework and language combination.


Component Configuration

Each component contains a component.json file.

Example:

{
  "name": "modal",
  "dependencies": ["gsap"],
  "components": ["button"]
}

Fields:

name

Component name.

dependencies

NPM packages required by the component.

Example:

gsap

These dependencies are installed automatically.

components

Other components required.

Example:

modal → depends on → button

When installing modal, RCU will install button first.


Example Installation Flow

Command:

rcu add modal

Process:

  1. Detect project framework
  2. Detect language (JS / TS)
  3. Install component dependencies
  4. Copy component files
  5. Install required npm packages

Example result:

✔ button installed (react-ts)
✔ modal installed (react-ts)
Installing dependencies: gsap

Generated Folder Structure

After installation:

components
 └ ui
     ├ button.tsx
     └ modal.tsx

These are real editable components, not locked library code.


Philosophy

RCU follows the same philosophy as modern UI component tools:

  • Components are copied into your project
  • Developers own the code
  • Full customization is possible

No vendor lock-in.


Development

To develop the CLI locally:

npm install
npm run build
npm link

Now the CLI command will be available globally.


Contributing

Contributions are welcome.

You can contribute by:

  • Adding new components
  • Improving animations
  • Optimizing CLI features
  • Fixing bugs

License

MIT License