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

next-bundle

v0.2.0

Published

Builds a Next.js project with `@vercel/next` without invoking `vercel build`, so it does not perform Vercel CLI project lookup, auth, or environment pull checks.

Readme

next-bundle

Builds a Next.js project with @vercel/next without invoking vercel build, so it does not perform Vercel CLI project lookup, auth, or environment pull checks.

Once published or otherwise available to npm, run it with npx:

npx next-bundle /path/to/next-project

From this package checkout, pass the project path explicitly:

npm install
npm run build -- /path/to/next-project

From any directory, pass the project path after --. Relative paths are resolved from the directory where you invoked npm, not from this package:

npm --prefix packages/next-bundle install
npm --prefix packages/next-bundle run build -- .
npm --prefix packages/next-bundle run build -- ../another-project
npm --prefix packages/next-bundle run build -- /absolute/path/to/project

You can also use --project-root instead of the positional path:

npx next-bundle --project-root /absolute/path/to/project
npm --prefix packages/next-bundle run build -- --project-root /absolute/path/to/project

If the project path is omitted, the command builds the directory where npm was invoked.

The output is written to:

.next-bundle

The build also writes a local Node.js server:

node .next-bundle/server.mjs

It also writes an optimized shared dependency tree next to the server:

.next-bundle/node_modules

That folder is materialized from .next/next-server.js.nft.json, plus any extra dependency files referenced by Vercel's generated function file maps and the local runtime packages needed by next-bundle. The function directories reuse this shared node_modules through Node's normal module resolution instead of carrying duplicated dependency copies.

next-bundle also preserves node_modules symlinks whose targets were materialized into the output. For example, if traced files are copied under node_modules/.pnpm/next@.../node_modules/next, the output includes the matching node_modules/next symlink when the source install has one.

Set PORT to choose a port:

PORT=4000 node .next-bundle/server.mjs

By default the package:

  • skips dependency installation in the target project
  • runs npm run build
  • uses the target project's declared next version
  • calls @vercel/next directly and writes Build Output API files with Vercel's own output writer
  • writes a local Node.js server that serves the generated Build Output API files
  • handles /_next/image locally, including Photon-backed raster resizing when WebAssembly is available

To package an existing .next directory without rebuilding:

npx next-bundle . --skip-build
npm --prefix packages/next-bundle run build -- . --skip-build