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

@cwa/nuxt-edge

v0.0.0-29891274.c95eaf1

Published

Components Web Apps Nuxt Module. UI for creating component-driven web apps with the API Components Bundle

Readme

CWA Nuxt Module (in development)

codecov

This module is designed to work with the API Component Bundle and will provide a full user-interface and utilities to easily create custom web apps with an advanced in-line content management system

CWA Module in Action

Template using this module for front-end and API Components Bundle for back-end

https://github.com/components-web-app/components-web-app/tree/v3

Template application deployed online

https://cwa-v3-silverback-web-apps.vercel.app/

Development

  • Run pnpm run dev:prepare to generate type stubs.
  • Use pnpm run dev to start playground in development mode.

Linting

  • Run pnpm run lint or pnpm run lint:fix

Testing

The module is tested in four layers. Each feature is proven here, in this module. The template's own e2e suite is for projects built from the template, not for module features.

1. Unit and component tests (Vitest)

  • pnpm run test: a single run. Specs sit next to the code they cover (*.spec.ts).
  • pnpm run test:coverage: the same, with coverage.
  • pnpm run test:watch (or pnpm run test:watch:coverage): watch mode during development.
  • pnpm vitest run --reporter=verbose path/to/file.spec.ts: one file.

2. Build-output guards

pnpm run test:e2e builds the playground and runs pnpm run test:e2e:guards against that build:

  • Bundle budgets: the entry chunk and an anonymous visitor's page preloads hold no admin or on-demand code, and stay within their gzip budgets (test/e2e/entry-bundle-markers.mjs, test/e2e/visitor-page-preloads.mjs). Lower a budget when the bundle shrinks. Never raise it just to pass.
  • Prefetching: admin chunks are never prefetched (test/e2e/prefetch-hints.mjs).
  • Server responses: status codes, page-cache headers on errors, sitemap cache headers, and that the server's API URL is never published to the browser.

pnpm run test:types type-checks the module and the playground. pnpm run test:fresh-install packs the package and installs it into a throwaway app.

3. Admin browser tests: rehearsed against the real API, replayed in CI

The admin features (selecting, adding, ordering, publishing, Clone, Move, the shared-component badge and so on) are tested in a real browser with Playwright Test (test/browser/admin.spec.mjs).

CI never talks to a live API. Each scenario is rehearsed once against a real API, and the rehearsal (every request and response) is committed. CI replays it: the recorded responses play the part of the API, and any request missing from the rehearsal fails the scenario. This tests the module against what the real bundle actually answers, with no Docker or registry in CI.

Replay (what CI runs on the lts leg):

pnpm run dev:build
pnpm run test:browser                        # all scenarios
pnpm run test:browser --grep " 23\. "        # one scenario

Rehearse (record against the real API) whenever a scenario, its seed data or the module's requests change:

  1. Run the template application locally at https://localhost with the API Components Bundle version you are testing against, and an admin/admin user.
  2. pnpm run dev:build
  3. pnpm run test:browser:rehearse (or --grep " 23\. " for one scenario).
  4. Commit the changed files in test/browser/rehearsals/.

Rules:

  • Seed your own data. Each scenario creates the layout, pages, routes and components it needs through the API (test/browser/seed.mjs), and never relies on the template's fixtures.
  • The bundle version is recorded. It goes into every rehearsal file. A feature that needs a newer bundle is rehearsed against that bundle, and the changelog names it as the minimum version.
  • One proxy sees everything. The proxy (test/browser/rehearsal.mjs) sits between the playground and the API, so it sees server-side and browser requests alike. It serves Mercure itself as a silent stream, so recordings are deterministic.
  • Defaults: the template's Caddy root CA and the bundle version are read from the components-web-app-php-1 container. Override them with REHEARSAL_CA, REHEARSAL_BUNDLE, REHEARSAL_PHP_CONTAINER or REHEARSAL_API.
  • No sleeps. A console error or page error fails a scenario unless the scenario allows it. Wait for a positive signal, never a fixed delay.
  • The recorder is tested too. test/browser/rehearsal.spec.ts (part of pnpm run test) records against a fake API and replays with it stopped. It covers: the answer after a write, unrecorded requests failing, the path fallback, origin and Mercure rewriting, cookie redaction, and CORS.

4. Before you push

pnpm run lint:fix, pnpm run test, and pnpm run dev:build && pnpm run test:e2e:guards && pnpm run test:browser.

Test coverage for branch feat/manager-tabs

Codecov sunburst image