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

pillar-pack

v1.4.0

Published

> Convention is larger than configuration

Readme

Real Zero config package tool

Based on Brower-sync and Parcel

Convention is larger than configuration

中文文档

Why use this?

In React Project, Parcel need install babel-* packages, and need config .babelrc. And sometimes Hot Reload fail. Parcel native don't have copy assets feature. So, we have this package. It's juset over parcel, wrapped up in a layer candy.

Install

$ npm i -g pillar-pack

Create a React project from zero

Create project

$ mkdir your-project
$ cd your-project
$ npm init -y
$ mkdir public src
$ touch public/index.html src/index.js
$ yarn add react react-dom

Now, your project frame like this, it's a defalut React project frame

-- public
  - index.html
-- src
  - index.js
-- package.json

set public/index.html

<!DOCTYPE html>
<html lang="en">

<body>
  <div id="root"></div>
  <script src="bundle-rename.js"></script>
</body>

</html>

set src/index.js

import React from 'react';
import ReactDOM from 'react-dom';

class App extends React.Component {
  state = {
    num: 0,
  };
  addNum = () => {
    this.setState({ num: this.state.num + 1 });
  };
  render() {
    return (
      <div>
        <h1>Hello pillar-pack</h1>
        <h2>{this.state.num}</h2>
        <button onClick={this.addNum}>Add Num</button>
      </div>
    );
  }
}

ReactDOM.render(<App />, document.getElementById('root'));

Start:

$ pillar-pack -s src/index.js -o build -c public

The project is start:

That's all you have to do, they are do this:

  1. If no have babel-* packages, auto install babel-* packages
  2. create .babelrc, .postcssrc file, and add config in it. support css, less, scss
  3. Source file from src/index.js or src/index.ts
  4. Bundle put out dir to build
  5. Copy public dir to out dir
  6. Replace in public/index.html string of bundle-rename.js to real bundle.js
  7. Use brower-sync start server, and replace parcel-hmr reload page
  8. Use system brower open page

Default project frame

-- public
  - index.html
-- src
  - index.js
-- package.json

If your project is defalut React project frame (above paragraphs), your can just use this:

$ pillar-pack

Usually, you don't need to continue reading,unless you need to custommize some special configurations.

Custom configuration

You can add params to change config:

-s : source file
-o : set out dir
-c, --copy : set copy dir to outDir, defalut ./public
init : Install babel-* in your project
--dll : only pack js to one dll.js
--prod : use prod mode, only build
--cors : is use brower cors
--open : is open brower
--no-reload : set brower-sync no reload
--hmr : open hmr, defalut close
--html : set dev server html, default public/index.html
--rename : change fix bundleName, defalut bundle-rename.js
--no-copy : no copy public dir
--scss : install scss package
--cover-babel : set cover babel file
--no-babel : set no create .babelrc
--source-map : true | false, defalut true
--server : only use server
--version : cat version
--help : help list
--help-cn : Chinese help list

Example

Install package

$ pillar-pack init

change source .js and server port

$ pillar-pack -s src/app.js --port 4100

Other custom example:

  1. Use source file in lib/index.js
  2. Copy lib/assets
  3. Bundle out to build-prod
  4. Change index.prod.html
  5. Don't use sourceMap
$ pillar-pack \
  -s lib/index.js \
  -c lib/assets  \
  -o build-prod \
  --html index.prod.html \
  --source-map false \
  --prod