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 🙏

© 2025 – Pkg Stats / Ryan Hefner

makepack

v1.5.21

Published

A CLI tool to create, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for npm projects.

Downloads

87

Readme

MakePack is a command-line interface (CLI) tool that helps you to quickly set up, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for use in npm projects. With just a few simple commands, you can generate your own libraries, start a development server, or build and publish your project to the npm repository.

📥 Installation

Install makepack globally to get started:

npm install -g makepack

🎯 Why Choose makepack?

  • Zero-Config Setup – Instantly scaffold a structured project.
  • TypeScript Support – Seamlessly work with modern JavaScript.
  • Integrated Dev Server – Run your package with Vite and Express.
  • Efficient Build System – Generate optimized ESM and CJS outputs.
  • One-Command Publish – Deploy your package to npm effortlessly.

📜 CLI Commands

makepack create – Scaffold a New Project

Quickly initialize a structured package with the following setup:

src/index.ts or tsx or js or jsx
.gitignore
package.json
README.md

Run:

makepack create

Follow the interactive prompts to configure your project.

🚀 makepack start – Launch the Development Server

Run a Vite + Express server to develop and test your package in real-time.

makepack start

🏗️ makepack build – Compile Your Package

Builds and optimizes your package into the build directory.

makepack build

📦 makepack publish – Deploy to NPM

Publish your package to the npm registry in one command.

makepack publish

⚙️ Configuration

Customize your project by creating a makepack.js file in the root directory. This file allows full control over the build and dev environment.

🔧 Default Configuration

module.exports = (prevConfig) => ({
  build: {
    outdir: "build",
    types: true,
    formatPackageJson: (p) => p,
    configs: [
      {
        entryPoints: "src/**/*.{tsx,ts,js,jsx}",
        outdir: "esm",
        format: "esm",
        sourcemap: true,
        jsx: 'automatic',
        loader: {
          '.ts': 'ts',
          '.tsx': 'tsx'
        },
      },
      {
        entryPoints: "src/**/*.{tsx,ts,js,jsx}",
        outdir: "",
        format: "cjs",
        sourcemap: true,
        jsx: 'automatic',
        loader: {
          '.ts': 'ts',
          '.tsx': 'tsx'
        },
      }
    ]
  },
  start: {
    port: 5000,
    entry: "App.tsx",
  }
});

📜 License

makepack is released under the MIT License, allowing free usage in both open-source and commercial projects.


🚀 Start building your next NPM package with makepack today!