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 🙏

© 2025 – Pkg Stats / Ryan Hefner

rainer

v1.3.1

Published

Command Line script to generate [components, files, and pages] for ' REACT ' including React-Native and Next.js

Readme

make react components ⚡quicky⚡ with CLI.

npm openSouce github fast cli react

Command Line script to generate [ components, files, and pages ] for ' REACT ' including React-Native and Next.js.

Feel free to play around with the code and fork this repl at instagram.

Install

$ npm install rainer

# recommended
$ npm install rainer -g

# use without installing
$ npx rainer

Usage

$ rainer src/components/product/Product
// src/components/product/Product.js

import React, from "react";

const Product = () => {
    return <></>
}

export default Product

Note : You can also pass diffrent flags to generate more modifcation to basic component such as , class components , component + stylesheets , component having lifecycle sudo code.

FLAGS 🚩

  • -v, --version - check current rainer version.
  • --help - print's user manually in cli.
  • -c, --class - used to create class component.
  • -r, --resource - used to create componet including common lifecycle methods.
  • style:[OPTIONS] - this will create component with stylesheet attached to it. style options:
    • css
    • scss
    • sass
    • less
  • EGG:[OPTION] - Easter 🥚Egg. options for EGG are single alphabet from [a to Z].
#hatch an egg
$ rainer EGG:A

Getting Started

$ rainer src/pages/rat/Rat -c -r style:css

Alternatively

$ rainer src/pages/rat/Rat --class --resource style:css

create's two file Rat.js (component) and rat.css (stylesheet) in src/pages/rat directory.

// inside src/pages/rat/Rat.js
import React from "react";
import "./rat.css";

class Rat extends React.Component {
  constructor(props) {
    super(props);
    this.state = { loading: false };
  }

  componentDidMount() {}
  componentDidUpdate(prevProps, prevState) {}
  componentWillUnmount() {}

  render() {
    return <></>;
  }
}

export default Rat;

Functional Component with Resource + stylesheet

$ rainer src/pages/monkey/Monkey -r style:sass

This create's two file Monkey.js (component) and monkey.sass (stylesheet) in src/components/monkey directory.

// inside src/components/monkey/Monkey.js
import React, { useState, useEffect } from "react";
import "./monkey.sass";

function Monkey() {
  const [state, setState] = useState(false);

  useEffect(() => {
    return () => {};
  }, []);

  return <> </>;
}

export default Monkey;

Note: if we dont need need stylesheet we can simple skip the style:[option] flag , same with the resource flag


Easter Egg 🥚

How to trigger Egg Hatching.

for this we have to pass an alphabet character to flag named EGG

example :
$ rainer EGG:W
output :
$ rainer EGG:w
┊┊┊┊┊┊┊┊┊┊┊┊┊╭╭╭╮╮╮┊┊┊┊┊┊┊┊┊
┊┊┊┊┊┊┊┊┊┊┊┊╰╰╲╱╯╯┊┊┊┊┊┊┊┊
┊┊┊┊┊┊┊┊┏╮╭┓╭━━━━━━╮┊┊┊┊┊┊┊┊
┊┊┊┊┊┊┊┊╰╮╭╯┃┈┈┈┈┈┈┃┊┊┊┊┊┊┊┊
┊┊┊┊┊┊┊┊┊┃╰━╯┈┈╰╯┈┈┃┊┊┊┊┊┊┊┊
┊┊┊┊┊┊┊┊┊┃┈┈┈┈┈┈┈╰━┫┊┊┊┊┊┊┊┊
╲╱╲╱╲╱╲╱╲╱╲╱╲╱

Note: rainer nest may or may not contain some eggs. more eggs will be added in upcomming version.


Maintainers