Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@uvalib/web-components

Latest version: v1.8.4

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dougchestnut, naw4t
0 Stars
0 Forks
11 Versions
1.3K Downloads
TypeScript Repo language

Scan summary

@uvalib/web-components was last scanned on 23 Nov 2026 at version 1.8.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 1.8.4.
  • Downloads: 1,317 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.8.4 LATEST 23 Nov 2026 No rules fired
1.8.3 23 Nov 2026 No rules fired
1.8.0 22 Nov 2026 No rules fired
1.6.0 22 Nov 2026 Not shown
1.5.0 22 Nov 2026 Not shown

No rules fired in 1.8.4

Findings

Findings for v1.8.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.8.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@uvalib/web-components

Tests Accessibility Lighthouse

Reusable web components for UVA Library sites, built with Lit and TypeScript:

  • Page chrome: <site-page> (skip link, header with the library main navigation and live library alerts, one <main>, footer), <site-alerts> (the alerts, also usable alone), <site-header>, <site-main-nav>, <site-footer>, <site-analytics> and <uvalib-analytics> (Matomo, one element under two names) and <site-style> (legacy compatibility).
  • Navigation: <uvalib-breadcrumbs> (the breadcrumb trail) and <uvalib-contents> (sub-navigation or a table of contents).
  • Cards: <uvalib-card>, <uvalib-card-grid> and <uvalib-pager>.
  • Tabs: <uvalib-tabs>.
  • Long pages: <uvalib-back-to-top> (a “Back to top” button that appears once the top has scrolled away).
  • Records: <uvalib-metadata> (a record's details, credit, rights and how to cite).
  • Images: <uvalib-lightbox> (an image viewer over plain links), <uvalib-photo-grid> (justified rows of thumbnails) and <uvalib-image-regions> (numbered region outlines on an image, with their list).
  • Maps: <uvalib-map> (places on the page's own Leaflet map, sized by a count, with a linked list).
  • Search: <uvalib-filter>, <uvalib-date-range>, <uvalib-date-histogram>, <uvalib-combobox> (a text field that suggests values as you type), <uvalib-filter-drawer> (the filters as a sidebar, or a modal panel on phones) and <uvalib-pagefind-search> (with pagefind.css, the library theme for Pagefind static-site search).
  • Library hours: <site-hours-section>, <library-weekly-hours> and <library-hours-setup>.
  • Library events: <events-section>.
  • Search results: <bento-box> (library.virginia.edu/search), with its <catalog-section>, <articles-section>, <libguides-section> and <website-section>.

library.virginia.edu and the UVA Library design system are the style authority: these components exist so sites use the real chrome instead of copying it. Change appearance only through the theming surface below.

Quick start with a coding agent

The fastest route: install the agent skill, then ask your coding agent (Claude Code and others) to do the work. The skill teaches it which entry to load, how to pin versions, shadow vs light DOM, theming, alerts and hours, and how to check the result.

npx @uvalib/web-components install-skill   # copies the skill to .claude/skills/uvalib-web-components

Then ask, for example:

Wrap this site's pages in the UVA Library <site-page> from the v1 CDN, with our own nav links in the header.

Example prompts

Name the skill so the agent loads it, say what to keep, and ask it to audit before editing and to check accessibility before finishing. These are starting points; add your site's specifics.

Brand a new or existing site

Use the uvalib-web-components skill to apply UVA Library branding to this site with the v1 CDN. First audit, with no changes: list how the current header, footer, navigation, buttons, forms and colours map to the library components and classes, and show me the list. Then wrap every page in <site-page site-name="Our site name"> with our own links as site links, link base.css in <head>, replace hand-built buttons and search forms with the library classes, and move our colours onto the --uva-* tokens. Keep every page and URL working. Verify with the skill's accessibility testing guide and commit on a new branch; don't push until I approve.

Migrate from the old components

Use the uvalib-web-components skill to move this project off the old /web-components/latest/ and cdn-v… URLs and @uvalib/<package> npm names to @uvalib/web-components v1. List every old reference first, then change them following the skill's migration guide, keeping the markup working. Run the site's tests and check each page in a browser.

Switch one library.virginia.edu page

Use the uvalib-web-components skill's "Switching library.virginia.edu" table to update the script URLs on the /hours page to v1. Change only the URLs, keep the markup, and tell me what to check after it's live.

Add one pattern

Use the uvalib-web-components skill to add breadcrumbs to every page under /collections/ (Home › Collections › the collection) with <uvalib-breadcrumbs>, placed where <site-page> puts them.

Use the uvalib-web-components skill to turn our collections list into a grid of clickable <uvalib-card>s (title and item count), and add <uvalib-pager> previous/next links to the reading pages.

Use the uvalib-web-components skill to show each record's details with <uvalib-metadata> (creator, date, subjects, downloads with file sizes, rights and how to cite), and open our IIIF page images in <uvalib-lightbox> instead of a new tab.

Use the uvalib-web-components skill to theme our Pagefind search with <uvalib-pagefind-search> and pagefind.css, keeping our index shards and filters.

Dark mode, analytics and search pages

Use the uvalib-web-components skill to turn on the library's opt-in dark mode (Light / Dark / System in the header) and make our own CSS follow the --uva-color-* role tokens. Check contrast in both schemes.

Use the uvalib-web-components skill to add Matomo analytics with <site-page matomo-id="42">. This is a single-page app, so record a page view per route; tag our own Download and Share buttons with data-uvalib-track.

Check and fix accessibility

Use the uvalib-web-components skill's accessibility testing guide to add a Playwright + axe test matched to Lighthouse and a Lighthouse CI config to this project, run them on the home, a list, a detail and the search page in light and dark at phone and desktop widths, and fix what they find. Report anything you couldn't test.

Ask for something the library doesn't have

Our pages need an accordion and the library has none. Use the uvalib-web-components skill to check the repo's issues for an existing request, then draft a new-component issue for uvalib/reusable-web-library (what it's for, our public page URLs, the library.virginia.edu pattern to match, accessibility needs). Show me the draft before filing it, and build a small accessible stopgap that links the issue.

Keep it current

Update the uvalib-web-components skill in this project to the latest release, then check whether anything we use changed and needs updating.

  • npx fetches the package on the fly, so this works in any repository, including sites that only use script tags (it needs Node, not an npm dependency).
  • Other agents or folders: npx @uvalib/web-components install-skill --dir .agents/skills. Add --force to update an existing copy.
  • Or copy node_modules/@uvalib/web-components/skills/uvalib-web-components into your skills folder. The skill is also on the CDN at https://unpkg.internal.lib.virginia.edu/web-components/v1/skills/uvalib-web-components/SKILL.md. More in docs/usage.md.
Keeping the skill current

Each install is a copy stamped with its package version (installed.json next to SKILL.md), so it does not change as this library does. Update it after a release:

npx @uvalib/web-components@latest install-skill --dir .claude/skills --force

--check compares an installed copy with the latest release on npm. It prints one line with that update command only when the copy is missing or out of date, is silent when it is current, and never fails offline (--strict exits 1 when it is out of date, for CI). To be told automatically, add it as a Claude Code SessionStart hook, in the project's .claude/settings.json (or ~/.claude/settings.json with --dir ~/.claude/skills for a user-level copy):

{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "npx --yes @uvalib/web-components@latest install-skill --check --dir .claude/skills"
          }
        ]
      }
    ]
  }
}

Projects that commit .claude/skills/ get each update as an ordinary reviewed change.

To do it by hand, read on.

Requests and bug reports

Ask for a new component, a feature or change in an existing one, or report a bug through the repository's issues. Each has a form: New component, Feature or change request and Bug report. The repository is public, so leave out passwords, tokens, internal-only hostnames and personal data. The agent skill knows the forms too: ask your agent to search the existing issues, draft one, and file it once you approve it (it uses the GitHub CLI, gh, or gives you the form's link).

Test results

Every push to main is tested before the examples site is published, and the results go up with it: test report. Lighthouse takes about half an hour, so it runs alongside: the site goes up as soon as the tests pass, showing the previous Lighthouse results (marked as from an earlier commit), and is published again with this commit's when the audit finishes. It lists:

  • Tests: every build and package test (Node) and every component test (Chromium), file by file, with each test's outcome.
  • Accessibility: the axe-core checks, in shadow and light DOM, light and dark, held to WCAG 2.2 AA plus the extra rules Lighthouse enables. Lighthouse must also score 100 for accessibility on every example.
  • Lighthouse: each example page's median performance, accessibility, best-practices, layout-shift and blocking-time results, against the budgets in Quality checks.

The badges above read the same report (report/results.json has the numbers for scripts). Locally, pnpm test, pnpm lhci and pnpm report write it to dist-site/report/.

Playground

Try every component and mode, edit the code, and share a link: https://uvalib.github.io/reusable-web-library/

The page is built with the library itself. Its header's main navigation is the examples menu: one group per component (Page, Header, Alerts, Search, Hours, Events), above one editor with a live preview; on phones the groups are accordions in the header's Menu. Each example has its own link, such as #weekly-hours. Copy link puts your edited files in the URL (#files=…), so the link opens with your changes; Reset goes back to the example. Old playground.html links, share links included, redirect to the page. The page also has dark mode: Light, Dark or System in the header (in the Menu on phones) switches the page and the editor; the previews run on another origin, so they keep their own scheme.

Install

CDN script tag (plain HTML, 11ty, Drupal templates)
<link rel="stylesheet" href="https://unpkg.internal.lib.virginia.edu/web-components/v1/base.css" />
<script
  type="module"
  src="https://unpkg.internal.lib.virginia.edu/web-components/v1/site-page.js"
></script>
  • https://unpkg.internal.lib.virginia.edu/web-components/v1/<tag>.js is the major alias. It follows releases within major 1 and is cached for about 5 minutes.
  • https://unpkg.internal.lib.virginia.edu/web-components/vX.Y.Z/<tag>.js is an exact, immutable version. Use it to pin.
  • tokens.css and base.css live at the same prefix (.../v1/tokens.css), and so does analytics.js, the analytics helpers for a page's own scripts (trackEvent, trackSearch, createSearchTracker; no element, no Lit; see Analytics).
  • Never use the legacy /web-components/latest/ or /web-components/cdn-v* paths; they belong to the old components. See migration.
  • site-page.js also loads the header and footer. For Matomo, give <site-page> a matomo-id (it then loads the analytics code itself), or add site-analytics.js and a <site-analytics> element; see Analytics.
  • Link base.css in <head> too. <site-page> installs the same page-level base styles itself, but only after the first paint, so without the link the page jumps once: the browser's default body margin goes away, and a heading's top margin stops collapsing through the not-yet-upgraded <site-page> (layout shifts Lighthouse counts on every page). With the link, <site-page> also stays invisible until its script has run, so its content never paints above where the header goes; if the script fails to load, the content appears anyway after two seconds. Sites with no-global-styles skip base.css, as that attribute turns those styles off.
npm (bundled apps)
npm i @uvalib/web-components
import '@uvalib/web-components/site-page.js'; // registers site-page, site-header, site-main-nav and site-footer

The define entries are site-page.js, site-header.js, site-main-nav.js, site-footer.js, site-analytics.js, uvalib-analytics.js, site-style.js, uvalib-filter.js, uvalib-date-range.js, uvalib-date-histogram.js, site-hours-section.js, library-weekly-hours.js, library-hours-setup.js, events-section.js, bento-box.js and uvalib-pagefind-search.js. The package root (import '@uvalib/web-components') exports the classes only and registers nothing. To use a class such as SitePage directly, also import the define entries. CSS is available as @uvalib/web-components/tokens.css, base.css and pagefind.css (the Pagefind theme, see Static-site search). @uvalib/web-components/analytics.js has the analytics helpers on their own (base.js exports them too). Do not load the same component from both the CDN and npm on one page.

Quick start

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Example page</title>
    <link
      rel="stylesheet"
      href="https://unpkg.internal.lib.virginia.edu/web-components/v1/base.css"
    />
    <script
      type="module"
      src="https://unpkg.internal.lib.virginia.edu/web-components/v1/site-page.js"
    ></script>
  </head>
  <body>
    <site-page>
      <h1>Example page</h1>
      <p>Page content goes here. Do not add a second main element.</p>
    </site-page>
  </body>
</html>

Use one <site-page> per page. It renders the skip link, the header, a single <main id="main-content"> and the footer around your content, so do not add your own <main>, skip link, header or footer. Put content for a band above the footer in an element with slot="pre-footer". Tool and app-like pages where the site footer does not belong (such as this repo's examples page) add no-footer, which hides the footer and any pre-footer band. Live library alerts are shown by default (see Alerts). Third-party sites use <site-page header-variant="vendor">. Links default to root-link-domain="https://www.library.virginia.edu".

Caveat: replacing a light-mode <site-page>'s children wholesale (innerHTML or textContent) destroys the chrome. Append content, or update a container inside it.

Site navigation

A site with its own navigation puts it in the header instead of the library utility links (My account, Ask a Librarian, Hours, Give, Alerts, Search). Give <site-page> (or a standalone <site-header>) <a slot="site-links"> children:

<site-page site-links-label="Web components">
  <a slot="site-links" href="./" aria-current="page">Examples</a>
  <a slot="site-links" href="https://github.com/uvalib/reusable-web-library#readme">README</a>
  …page content…
</site-page>

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @uvalib/web-components

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229