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

@videreproject/ui

v0.5.1

Published

Reusable Videre interface components, layouts, themes, and card-media contracts.

Readme

@videreproject/ui

@videreproject/ui is the canonical presentation contract for Videre. It contains reusable primitives and components, composed Collection/Trade History/Match/Replay layouts, the shared theme, and deterministic fixtures. Fetching, persistence, routing, streaming, and mutations remain host responsibilities.

Shared card components use Videre's static CDN by default and never assume a host API. Applications that can render local card media may inject those capabilities once at their root:

<CardMediaProvider
  getCardImageFallbackUrl={catalogId => api(`/cards/${catalogId}/image`)}
  getCardTextureImageUrl={textureId => api(`/cards/texture/${textureId}/image`)}
  getNamedCardImageUrl={name => api(`/cards/${encodeURIComponent(name)}/image`)}
  getCardArtUrl={catalogId => api(`/cards/${catalogId}/art`)}
  resolveCardFace={resolveCardFace}
>
  <App />
</CardMediaProvider>

The provider caches and deduplicates face lookups. Without it, CardImage, CatalogCardImage, card tooltips, and replay avatars do not make application-API requests.

VanguardAvatar crops the shared art frame from an MTGO VAN catalog product. It resolves /products/{catalogId}-300px.png on the Videre CDN by default and accepts an explicit imageUrl when a host needs to supply its own product-media endpoint.

Exports

  • @videreproject/ui — runtime components, layouts, state helpers, and public types
  • @videreproject/ui/fixtures — deterministic demo/test data, separate from the runtime entry point
  • @videreproject/ui/theme.css — canonical Videre UI color, radius, animation, and font variables
  • @videreproject/ui/tailwind-preset — Tailwind bindings for the same theme contract

Commands

Install the pinned Chromium build once per machine or CI image:

pnpm --filter @videreproject/ui exec playwright install chromium

Run these from the repository root:

pnpm ui:storybook
pnpm ui:storybook:build
pnpm ui:test
pnpm ui:visual

ui:visual compares approved Storybook surfaces with the checked-in baselines in Chromium.

Baseline replacement is always explicit:

# Approve an intentional specification change from Storybook.
pnpm ui:visual:update

The harness fixes the viewport, dark theme, locale, timezone, reduced-motion preference, fonts, card images, API data, and client state. External image and API requests are intercepted; stories use a checked-in visual asset.

Local package publishing

Run the repository-local Verdaccio registry and create a local publishing identity once:

pnpm registry:start
npm adduser --registry http://127.0.0.1:4873

After changing the package, publish it and install the exact published version in the consuming application:

pnpm ui:publish:local
cd ../your-application/src/client
pnpm add @videreproject/ui@<version>

The consuming application's .npmrc should scope @videreproject to the local registry. pnpm ui:pack is available for inspecting the publishable tarball without publishing it. Docker-based development services can reach the same registry through host.docker.internal; set VIDERE_NPM_REGISTRY when a different host or port is required. Keep the registry running when initializing a fresh container dependency volume.

Included surfaces

The package includes reusable layouts for Collection, Trade History, Trades (marketplace/partners), Match Details, Replay, History, Dashboard, Decks gallery, Deck editor, Game Log, Events, and Event Details. Shared filters, data tables, date pickers, and card-search UI also live here. Hosts retain fetching, structured search execution, caches, SSE streams, routing, keyboard handling, and mutations.

Storybook stories and checked-in visual baselines cover all product layouts (22 parity scenarios under visual-tests/baselines/). Run pnpm ui:test and pnpm ui:visual from the monorepo root.

Accessibility

Story tests run the Storybook accessibility addon and block structural violations. Contrast is enforced for primitives, cards, Collection, Trade History, and Match. The color-contrast rule is temporarily excluded only for Replay stories because exact parity preserves the replay surface's deliberately dim board annotations; those labels should be corrected in the replay surface and @videreproject/ui together as an explicitly approved visual change.