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

@ariada-org/scan-flow-ui

v0.1.1

Published

Brand-themed React components shared by ariada-web and draculascan: URLInput, ScanProgress, Scorecard, ShareButtons, CrossSellCTAs.

Readme

@ariada-org/scan-flow-ui

Brand-themed React components shared by ariada-web and draculascan. The base UI layer of the scan flow — not the character-themed Dracula layer (that lives in @ariada-org/dracula-agent).

| Field | Value | | --------------- | ------------------------------------------------------ | | Package name | @ariada-org/scan-flow-ui | | Version | 0.1.0 | | Licence | EUPL-1.2 (European Union Public Licence) | | Runtime | React ^19 (peer dep) | | Theming | CSS custom properties — no hex literals in JS | | REUSE-compliant | yes — REUSE.toml + per-file SPDX headers |

Components

| Component | Purpose | | --------------- | ------------------------------------------------------------------------ | | URLInput | Public scan form; accessible labels + alert region | | ScanProgress | SSE consumer, debounced live region, optional characterSlot | | Scorecard | Score + triple-encoded severity badges + finding table; depth prop | | ShareButtons | Twitter / LinkedIn / Bluesky / copy / embed | | CrossSellCTAs | Branded link list with click callback for attribution | | EmbedBadge | Small badge preview — live Web Component lives in @ariada-org/embed-badge |

Theme contract

The components consume CSS custom properties from <html> only. They never import brand hex literals so a single bundle can serve both brands.

import {
  applyTheme,
  ARIADA_THEME,
  DRACULA_THEME,
} from '@ariada-org/scan-flow-ui';

applyTheme(ARIADA_THEME);  // ariada-web
applyTheme(DRACULA_THEME); // draculascan

Custom-property surface (see src/theme.ts for the full list):

  • --brand-primary, --brand-accent, --brand-tone
  • --font-display, --font-body
  • --border-radius
  • --severity-critical, --severity-serious, --severity-moderate, --severity-minor
  • --icon-variant

These tokens are sourced from @ariada-org/brand-tokens in production sites; the package contains the default fallback values inline so the components stay usable when consumed standalone.

Usage

import {
  URLInput,
  ScanProgress,
  Scorecard,
  ShareButtons,
  CrossSellCTAs,
  applyTheme,
  ARIADA_THEME,
} from '@ariada-org/scan-flow-ui';

// Once, at app startup:
applyTheme(ARIADA_THEME);

// In a page:
function ScanPage() {
  return (
    <>
      <URLInput onSubmit={(url) => beginScan(url)} />
      <ScanProgress events={sseEvents} />
      <Scorecard report={report} depth="summary" />
      <ShareButtons url={shareUrl} score={report.score} />
      <CrossSellCTAs onCtaClick={(id) => track(id)} />
    </>
  );
}

Accessibility

Every component is built constraints-first:

  • semantic markup (form <label>s, <button> not <div role="button">);
  • focus-visible states, ≥ 3px focus ring;
  • triple-encoded severity (icon + colour + text), never colour alone;
  • live regions debounced (200 ms) to avoid screen-reader chatter.

Testing

Tests run with vitest + happy-dom + @testing-library/react:

pnpm --filter @ariada-org/scan-flow-ui test

Smoke tests cover the four primary components (URLInput, Scorecard, ScanProgress, ShareButtons). Coverage will grow as the public surface stabilises.

Layout

src/
  index.ts              — public exports
  theme.ts              — applyTheme + theme constants
  URLInput.tsx          — scan-input form
  ScanProgress.tsx      — SSE consumer + characterSlot
  Scorecard.tsx         — score + finding table
  ShareButtons.tsx      — share targets
  CrossSellCTAs.tsx     — branded CTAs
  EmbedBadge.tsx        — badge preview
  types.ts              — shared types
  fixtures/sample-events.ts — synthetic ScanEvents for tests
  __tests__/            — vitest + happy-dom + RTL

Licence

EUPL-1.2 — see LICENSE. Per-file SPDX headers + REUSE.toml keep machine-readable metadata in sync.

Security

Vulnerability reports → https://github.com/ariada-org/ariada/security/advisories/new or [email protected]. See SECURITY.md.