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

@jjwong0915/repack

v0.1.0

Published

An easy tool compiles and bundles your React app.

Downloads

25

Readme

Repack

:package: An easy tool compiles and bundles your React app :package:

Feature

  • Bundle whole application into one JavaScript file
  • Make your JSX and ES2015 scripts work in browser
  • No need for any extra configuraions

Getting Started

  1. Install repack as a global command with npm,

    $ sudo npm install -g @jjwong0915/repack

    or a project dependency if you wan't to use the API.

    $ npm install --save @jjwong0915/repack
  2. Create two files helloWorld.html and reactApp.jsx.

    helloWorld.html:

    <!DOCTYPE html>
    <html>
    <head>
        <title>Hello Repack</title>
    </head>
    <body>
        <div id="container"></div>
        <script src="bundle.js"></script>
    </body>
    </html>

    reactApp.jsx:

    import reactDOM from 'react-dom'; // ES6 Syntax
    
    reactDOM.render(
        <h1>Hello World!</h1>,        // JSX Syntax
        document.getElementById('container')
    );
  3. Compile and bundle reactApp.jsx into bundle.js with repack.

    $ repack reactApp.jsx bundle.js
  4. Open helloWorld.html with your browser and see the magic works.

CLI Usage

Usage: repack [options] <entry> <output>

React developing tool built with Webpack.

Options:

-h, --help        output usage information
-V, --version     output the version number
-p, --production  remove sourcemaps and minimize your scripts
-v, --verbose     output all the information webpack has
-w, --watch       watches all dependencies and recompile on change

Node.js API

  • Import the repack API by

    const repack = require('@jjwong0915/repack');
  • Function repack(config) => compiler

    • Object config {entry, output, production}
      • String entry: The entry point for the bundle. (Required)
      • String output: The file path to output the bundle. (Required)
      • Boolean production: Switch to production mode. (Default: false)
    • Object compiler {run, watch}
      • Function run() => result
        • Promises result: fullfilled with stats when completed.
      • Function watch(handler) => progress
        • Function handler(result): called after a build has been executed. (Optional)
          • Promise result: fullfilled with stats when completed.
        • Promise progress: fullfilled with watcher when no error.

Built With

Contributing

  • Running the tests with npm test
  • Report bugs with github issues
  • New ideas about the project are welcome!!!

License

ISC License