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

esa-pcg-cli

v0.1.13

Published

CLI for building and deploying Next.js apps onto pages-cache-gateway (PCG)

Readme

esa-pcg-cli

CLI for building and deploying Next.js apps onto pages-cache-gateway (PCG) — an OpenNext-based deployment target that proxies incremental cache, tag cache, and <Image> optimization through a single self-hosted gateway.

esa-pcg-cli wraps @opennextjs/aws and injects PCG's wrapper / converter / incrementalCache / tagCache overrides automatically, so most projects don't need a hand-written open-next.config.ts.

Install

npm install --save-dev esa-pcg-cli
# or
pnpm add -D esa-pcg-cli

@opennextjs/aws is bundled as a regular dependency, so you don't need to add it yourself.

Quick start

Most projects need zero next.config changes — <Image> continues to use Next's built-in /_next/image route and the wrapper transparently signs the request to the gateway.

npx pcg build --dir .
npx pcg deploy --dir .       # or --local-dev for local-gateway mode

Declare image hosts as usual via next.config.images.{remotePatterns,domains}; the wrapper reuses that config to allow / reject incoming url= values, matching the semantics of next dev.

Commands

| Command | What it does | |---|---| | pcg build | Runs OpenNext build with PCG overrides auto-injected. Generates .open-next/. | | pcg deploy | Uploads cache artifacts to OSS (via gateway-issued STS or local mode). | | pcg serve | Local dev server backed by the built .open-next/ (assets + spawned server function). | | pcg upload-cache / upload-assets | Lower-level upload primitives. | | pcg purge | Invalidates cached entries by tag / path. |

Run pcg <cmd> --help for full option lists.

How it integrates with Next.js

| Concern | Handled by | |---|---| | ISR / on-demand revalidation | PCG incrementalCache override talks to the gateway, which proxies OSS. | | revalidateTag | PCG tagCache override (Next.js nextMode) talks to the gateway's TableStore-backed tag store. | | <Image> optimization | The wrapper intercepts Next's built-in /_next/image?... route and forwards it to the gateway's signed /image/* endpoint. No next.config changes required. |

License

MIT. See LICENSE.