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-asap

v1.1.0

Published

A ready to use react environment for testing and learning purpose.

Readme

react-asap

A ready to use react command line runner for testing and learning purpose.

Why?

Because starting to write examples in react is not easy: you have to install webpack or browserify, babel, a web server, etc. This project should get you started in a matter of seconds.

What is it?

It is a command line tool installed globally. Just edit your javascript file and run it wuth.

react-asap index.js

The tool transpile it, bundle and serve it in a index.html container on a localhost port.

It's made to remove from the learning process all the complexity related to the transpiling and bundling of the javascript files.

THIS IS NOT A BOILERPLATE If you're looking for a complete boilerplate check this:

https://github.com/sytac/react-redux-scaffold

Quickstart

Install react-asap globally.

npm install -g react-asap

Create a working area folder:

mkdir test-my-code
cd test-my-code

Install the react packages:

npm install react
npm install react-dom

Create a sample app file:

/* app.js */
var React = require('react');
var ReactDOM = require('react-dom');

ReactDOM.render(
  <h1>Hello, world!</h1>,
  document.getElementById('app')
);

Run the application

react-asap app.js

Open your browser at http://localhost:3000

How it works

It's a really simple application, it just runs a web browser that serves a precompiled index html page:

<html>
<head>
#optional CSS
#optional JS
</head>
<body>
  <div id="app">This is a react container</div>
</body>
<script type="text/javascript" src="app.js"></script>
</html>

where app.js is provided as the transpiled version of your app.

Add a css file

Using the parameter --style is possible to add a stylesheet file to the html.

react-asap index.js --style style.css
react-asap index.js -style https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css

Add an external js

Using the parameter --jsExt it is possible to add an external js in the head of the document.

react-asap index.js --jsExt https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js

Features

  • automatic code recompilation
  • serve statically the file in the current folder

Params

-c, --container : the div id of the html. (default app)

-p, --port : the server port (default 3000)

-s, --style : add a css file

-j --jsExt : add an external js