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

jetpack

v5.0.1

Published

Run and build web code with Rspack.

Readme

Jetpack is preconfigured Rspack for web code: one command to start a dev server, one command to build production assets, and a config file only when you need it.

npm install -g jetpack
jetpack
jetpack build

Jetpack requires Node 20 or newer and is published as ESM.

What You Get

  • JavaScript, TypeScript, JSX, CSS, SCSS, and assets
  • SWC, core-js polyfills, and Lightning CSS
  • Hot reloading, including React fast refresh
  • Content-hashed production builds with code splitting and an asset manifest
  • Optional modern/legacy differential builds
  • Dev proxying, static serving middleware, and CSP nonce helpers
  • A small config file when defaults are not enough

Usage

Start a dev server on http://localhost:3030:

jetpack

Build into dist/:

jetpack build

Point Jetpack at another file or project:

jetpack ~/Desktop/magic.js
jetpack --dir ~/projects/app

Inspect, clean, or check browser targets:

jetpack inspect
jetpack clean --dry-run
jetpack browsers --coverage=GB

Configuration

Most projects do not need config. When you do, add jetpack.config.js, jetpack.config.mjs, or jetpack.config.cjs. Keep common app options top-level and put build/HTML shell settings under build and html.

import { defineConfig } from 'jetpack'

export default defineConfig({
  entry: '.',
  port: 3030,
  assetBaseUrl: '/assets/',

  dev: {
    overlay: true
  },

  build: {
    outDir: 'dist',
    chunkLoadRetry: true
  },

  html: {
    title: 'my-app'
  },

  css: {
    modules: true
  }
})

API Servers

Mount Jetpack into your own server after the API routes:

import { serve } from 'jetpack/serve'

app.get('/api/unicorns', (req, res) => res.json([]))
app.use(serve())

serve() resolves Jetpack config on the first request and caches the middleware. It uses process.cwd() as the default project directory, proxies to the Jetpack dev server outside production, and serves build.outDir in production. For monorepos, pass the client directory:

app.use(serve({ dir: clientDir }))

Docs