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

pundle

v2.0.0-beta26

Published

Creating peaceful bundles for everyone

Readme

Pundle

Pundle is a next generation module bundler. It's written with extensibility and performance in mind and out performs any other bundler out there.

Installation

npm install -g pundle

Example CLI Usage

$ mkdir -p /tmp/pundle-example-test
$ cd /tmp/pundle-example-test
$ echo '{}' > package.json
$ echo 'console.log(require("react"))' > index.js
$ npm install react
$ pundle --source-map

CLI Usage

$ pundle --help

  Usage: pundle [options]

  Options:

    -h, --help                          output usage information
    -V, --version                       output the version number
    -e, --entry [path]                  Pundle entry points
    -p, --path-type <number|filePath>   Output path type
    -r, --root-directory <directory>    Root directory of which all imports would be relative of
    -m, --module-directory [directory]  Directories to search for during module lookup
    -s, --source-map                    Generate source map for output
    --project-name <name>               Project name to show in source map paths
    -o, --output-file <path>            The path to store generated output at
    --source-map-inline                 Wether to output inline source map
    --source-map-output-file <path>     The path to store source map of generated output at
    -w, --watch                         Watch given entry files and recompile on change
    --use-polling                       Use Polling method when watching files

$ pundle --source-map --entry index.js --output-file bundle.js --source-map-output-file bundle.js.map
$ pundle --source-map --entry index.js --output-file bundle.js --source-map-output-file bundle.js.map --watch

Example API Usage

import Pundle from 'pundle'

const pundle = new Pundle({
  entry: ['index.js'],
  pathType: 'filePath',
  rootDirectory: process.cwd(),
  moduleDirectories: ['node_modules'],
})

pundle.loadPlugins([
  ['babel-pundle', {
    config: {
      presets: ['steelbrain']
    }
  }],
  'pundle-some-magical-plugin',
]).then(function() {
  return pundle.compile()
}).then(function() {
  pundle.loadLoaders([
    // These are just examples.  pundle-coffee and pundle-less don't exist yet =)
    { extensions: ['.coffee'], loader: require('pundle-coffee') },
    { extensions: ['.less'], loader: require('pundle-less') },
  ])
  return pundle.generate({ sourceMap: true })
}).then(function(generated) {
  FS.writeFileSync('./bundle.js', `${generated.contents}\n//# sourceMappingURL=bundle.js.map`)
  FS.writeFileSync('./bundle.js.map', generated.sourceMap)
}).catch(function(error) {
  console.error('error', error)
})

API Usage

type GeneratorConfig = {
  contents?: Array<File>,
  requires?: Array<string>,
  wrapper?: 'none' | 'hmr' | 'normal',
  sourceMap: boolean,
  projectName?: string,
}
type WatcherConfig = {
  usePolling?: boolean,
  ready?: (() => any),
  error: ((error: Error) => any),
  generate: (() => any),
}
type PundleConfig = {
  entry: Array<string> | string,
  pathType?: 'number' | 'filePath',
  rootDirectory: string,
  replaceVariables?: Object,
  moduleDirectories?: Array<string>,
}
export default class Pundle {
  constructor( config: PundleConfig )
  async compile(): Promise<void>
  generate( config: GeneratorConfig ): { sourceMap: ?Object, contents: string }
  watch( config: WatcherConfig ): { queue: Promise<void>, subscription: Disposable }
  loadLoaders(loaders): Array<string>
  loadPlugins(plugins): Promise
  clearCache(): void
  dispose(): void
}

Env Variables

Pundle responds to these environment variables

PUNDLE_FS_USE_POLLING

Set this environment variable to make pundle use polling based File System watching.

License

This project is licensed under the terms of MIT License. See the LICENSE file at the root of the Github repo for more info.