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-easy-deploy

v1.0.3

Published

Make deployment easier for React.Js projects.

Readme

React Easy Deploy

Deploy React.Js applications with ease

React Easy Deploy is a promise driven script to help you in deploying your React.Js application with ease.

Features

  • Install necessary npm packages.
  • Create a production build locally.
  • Transfer the build to the server specified.
  • Install and configure NGINX server on AWS instance.

Tech

React Easy Deploy uses various tools and packages for deployment.

  • ssh2 - SSH2 client and server modules written in pure JavaScript for node.js.
  • node.js - Node.js® is an open-source, cross-platform JavaScript runtime environment.
    • Child process - The node:child_process module provides the ability to spawn subprocesses.

Installation

React Easy Deploy is best suitable with Node.js v12+ to run. Install package using the below code.

npm i react-easy-deploy

Setup

This is a one time setup required to run the script. Replicate the below steps in your project directory.

Root Folder
    |__  script.js
    |__  private_key (.pem file to access the server)

script.js

import deploy from "react-easy-deploy";
deploy();

Private key: Place the private key (.pem) file that was used when creating the AWS EC2 instance in the same folder where script.js file is present.

Create AWS EC2 instance

  • Login to the aws account
  • Navigate to EC2 dashboard -> Instances
  • Click on "Launch instances"
  • Create a key-pair (if don't have an existing one on aws) and download it. Specify the keypair using the dropdown.
  • Click on Allow HTTP and HTTPS requests from the internet.
  • Click on "Launch instance"

Once the instance is ready:

  • Navigate to the instance summary by click on "Instance ID" under "Instances"
  • Click on "Connect"
  • Follow the steps mention under the "SSH Client" tab on your local machine. Make sure private key is not publicly viewable and in the same directory from where you run ssh command.
  • Once inside the instance type "exit" to logout.

Deploy

  • Go to your project directory and add script.js and private key in .gitignore.
  • Run the script using
    node script.js
  • When prompted input the following:
    • Public IP address (found in instance summary)
    • User-server Public DNS addres: format should be user@ec2-server_info_here.compute.amazonaws.com (found in "SSH Client" tab after clicking "Connect")
    • Private key path: Enter private key path here. If already present beside script.js, ignore and press enter.

After following the above mentioned steps your app should be live on the server.

License

MIT