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

simple-react-cli

v1.6.0

Published

CLI for build React/Redux/Native Components

Readme

Requires node.js 6.10+

Commands

project | p

There are a sample projects, not required for generate command


React Project

react-cli p react MyProject  

Generates a react project component at ~actualPath~/MyProject

React Native Project

react-cli p native MyProject  

Generates a react native project component at ~actualPath~/MyProject



generate | g


React Component

react-cli g react-component MyComponent  

Generates a state component at ./src/components/MyComponent/index.js

Stateless React Component

  react-cli g react-component MyComponent  -s
  react-cli g react-component MyComponent  -stateless   

Generates a stateless component at ./src/components/myComponent/index.js

React Connected Component / React Stateless Connected Component

react-cli g react-component MyComponent  -c
react-cli g react-component MyComponent  -connected
react-cli g react-component MyComponent  -s -c
react-cli g react-component MyComponent  -stateless -connected

Generates a component connected to redux store at ./src/components/myComponent/index.js



React Native Component

react-cli g native-component MyComponent  

Generates a state component at ./src/components/MyComponent/index.js

Stateless React Native Component

  react-cli g native-component MyComponent  -s
  react-cli g native-component MyComponent  -stateless   

Generates a stateless component at ./src/components/myComponent/index.js

React Native Connected Component / React Native Stateless Connected Component

react-cli g native-component MyComponent  -c
react-cli g native-component MyComponent  -connected
react-cli g native-component MyComponent  -s -c
react-cli g native-component MyComponent  -stateless -connected

Generates a component connected to redux store at ./src/components/myComponent/index.js



Redux Actions / ActionType / Selectors / Reducer

  react-cli g redux MyReduxFiles

Generates files: actions.js, actionsTypes.js, reducer.js and selectors.js for redux apps at ./src/store/myReduxFiles




Other options:

 option -l | -local

Generate files at actual folder / path


set | s


Components destination folder

  react-cli s component-path /new/path/
  react-cli set component-path /new/path/

Change the default components destination folder ( "/src/components/" )


Store destination folder

  react-cli s store-path /new/path/
  react-cli set store-path /new/path/

Change the default store destination folder ( "/src/store/ ")