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

@cdx-extensions/extension-generator-web

v1.1.0

Published

Nx plugin for CDX web extension widgets from catalog/extension-templates.json (remote GitHub sync + npm template packages). Separate from @cdx-extensions/widget-template-web.

Readme

@cdx-extensions/extension-generator-web

Nx plugin for generating catalog-driven web extension widgets from catalog/extension-templates.json.

Part of extensibility-sdk-extension-generator. Separate from the offline starter: @cdx-extensions/widget-template-web.

Install

pnpm add @cdx-extensions/extension-generator-web

Generate

nx g @cdx-extensions/extension-generator-web:widget <widget-name>

Interactive flow:

  1. Fetches the latest catalog from GitHub (with cache and local fallbacks)
  2. Lists web widget templates by category (e.g. financial)
  3. Prompts you to pick a category, then a template
  4. Downloads the selected npm template package and scaffolds the widget under widgets/web/<name>-widget/

Skip the template prompt by passing --template (catalog id or npm package name):

nx g @cdx-extensions/extension-generator-web:widget my-widget \
  --template=investment-portfolio

Options

| Option | Default | Description | |--------|---------|-------------| | name | — | Widget slug (required) | | template | — | Catalog template id or npm package (skips interactive picker) | | stackWidget | false | Stack widget layout |

Catalog source

On each run the generator:

  1. First tries the remote catalog at
    https://github.com/candescent-dev/cdx-extensibility-apps/blob/main/catalog/extension-templates.json
  2. On success — caches it at ~/.cdx/cache/catalog/extension-templates.json
  3. On remote failure — uses the cached catalog if present
  4. On cache miss — uses the workspace catalog/extension-templates.json if present

Widget prompts read from web.templates in the loaded catalog. No nx.json configuration is required.

Template resolution

For each catalog template package:

  1. Read the pinned version from catalog/extension-templates.json (or resolve latest from the registry).
  2. If ~/.cdx/cache/<package>@<version>/dist/ already exists, use it.
  3. Otherwise run npm pack against the registry in workspace .npmrc (JFrog for @cdx-extensions/*), extract dist/, and cache it for the next run.

When to use which generator

| Need | Generator | |------|-----------| | Quick offline starter | @cdx-extensions/widget-template-web:widget | | Catalog / DI templates | @cdx-extensions/extension-generator-web:widget |

Cache

  • Catalog: ~/.cdx/cache/catalog/extension-templates.json
  • Template packages: ~/.cdx/cache/<package>@<version>/dist/

Repeat runs reuse cached templates and do not re-download from npm.

Generated project files

In addition to widget source from the selected template package, the generator writes CDX project scaffold files:

  • .babelrc, .eslintrc.json
  • jest.config.ts, webpack.config.ts, module-federation.config.ts
  • project.json, tsconfig.json, tsconfig.app.json, tsconfig.spec.json

Scaffold templates ship in this package under dist/projectFiles/. When a published template package includes them under dist/, those versions take precedence.

Utilities

This package also ships monorepo build helpers under src/scripts/ (published as dist/scripts/):

pnpm exec stage-nx-package --projectRoot . --outDir dist --copy src package.json

Build & publish

From this directory:

pnpm install
pnpm run build
pnpm publish --tag dev

The @cdx-extensions registry is configured in .npmrc (JFrog). Only dist/ and package metadata are published, matching @cdx-extensions/widget-template-web.

CI: extension-generator-workflow.yml (JFrog + public npm on main).