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-npm-component-boilerplate

v3.0.0

Published

Simple react npm package boilerplate.

Readme

Travis

Boilerplate for creating React-component npm package with ES2015

Starter point for creating React components that you can published on Npm.

Updated to use Webpack 3, Jest 21 and React 16!

Usage

  1. Install module as global

    yarn global add react-npm-component-boilerplate

  2. Create your template

    react-npm-component-boilerplate your-component-name

    • Or if you want to autoset links in package.json add username

    react-npm-component-boilerplate -u your-github-username your-component-name

  3. Step into your created template

    cd your-component-name

  4. Check package.json so that the information is correct.

  5. Install modules with

    yarn

  6. Start example and start coding!

    yarn start


Extra

  • If you want to run tests:

    yarn test

  • You need to write tests in __tests__ folder or as .test.js.

  • It you want to keep watch run:

    yarn test-watch

  • If you want coverage run:

    yarn test-coverage

  • If you want to run eslint:

    yarn lint

  • If you want to automatically fix lint problems run :

    yarn lint-fix

    Adjust your .eslintrc config file to your own preference.

NPM equivalent

yarn | npm ---- | --- yarn global add react-npm-component-boilerplate | npm install -g react-npm-component-boilerplate yarn | npm install yarn test | npm run test. yarn test-watch | npm run test-watch yarn test-coverage | npm run test-coverage yarn lint | npm run lint yarn lint-fix | npm run lint-fix


To test your created component in another project

If you want to test if it works correctly in another project you can use npm npm install -S ../mytest-component Note the relative path and name of module E.g. this folder structure

    ./workspace/
        MyProject
        react-npm-boilerplate

License

MIT


Credit

Documentation is inspired by Julian Ćwirko and the https://github.com/juliancwirko/react-npm-boilerplate package.