Skip to content
forked from okikio/bundlejs

A small tool for checking the size of js bundles.

License

Notifications You must be signed in to change notification settings

jantimon/bundle

 
 

Repository files navigation

bundle

bundle - An online npm package bundle size checker | Product Hunt Open In Gitpod

A small online tool for checking the gzipped and minified size of npm packages.

I used monaco-editor for the code-editor, esbuild and rollup as bundler and treeshaker respectively, pako as a js port of the zlib and gzip libraries, pretty-bytes to convert the gzip size to human readable values, and countapi-js to keep track of the number of page visits, in a private and secure way.

This project was greatly influenced by hardfists neo-tools and mizchi's uniroll project.

bundle is a quick and easy way to bundle your projects, minify and see it's gzip size, it's similar to bundlephobia but does all the work locally on you computer and can treeshake and bundle multiple packages (both commonjs and esm) together, it currently doesn't support JSX, but packages without JSX are good.

The project isn't perfect, and I am still working on an autocomplete, hover intellisence, better mobile support and the high memory usage of esbuild and monaco as well as some edge case packages, e.g. monaco-editor.

If there is something I missed, a mistake, or a feature you would like added please create an issue or a pull request and I'll try to get to it. You can contribute to this project at okikio/bundle.

bundle uses Conventional Commits as the style of commit, and the Commitizen CLI to make commits easier.

You can join the discussion on github discussions.

About

A small tool for checking the size of js bundles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.6%
  • JavaScript 14.2%
  • Pug 12.9%
  • SCSS 11.0%
  • CSS 4.0%
  • Dockerfile 0.2%
  • Shell 0.1%