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

@flow-industries/ui

v0.23.3

Published

Shared design system and component library for [Flow](https://flow.industries) applications.

Readme

Flow UI

Shared design system and component library for Flow applications.

Ships raw TypeScript source — no build step. Your Vite + Tailwind pipeline compiles it.

Installation

bun add @flow-industries/ui

Documentation

Full documentation at docs.flow.industries/en/ui.

Development

bun run dev   # landing page at localhost:5173

Visual regression

CI screenshots the showcase (#design, #showcases, #components in light and dark) against baselines committed under tests/visual.spec.ts-snapshots/ and fails on any diff.

bun run build && bun run test   # compare against baselines (Linux only)
./scripts/update-snapshots.sh   # re-render baselines after an intended visual change (Docker)

Baselines are rendered on Linux inside the pinned Playwright image — a bare macOS run diffs against them spuriously, so always update through the script (or grab the visual-diffs artifact from a failed CI run to inspect changes).

Accessibility

CI also runs axe (tests/a11y.spec.ts) over the same pages and themes, plus each overlay in its open state, failing on serious/critical violations. Genuine findings get fixed or filed against the UI-3 audit — see knownViolations in the spec for the tracked exceptions; allowlistedRules is reserved for documented false positives.

bun run build && bunx playwright test tests/a11y.spec.ts

License

MIT

Practice sessions

@flow-industries/ui/focus is an opt-in entry point for FocusProvider, FocusPanel, StudySubjectPicker, and the associated hooks and types. Install @flow-industries/id version 0.22.0 or newer alongside the UI package to use it. The SDK peer is optional for applications using only other UI components.

import { createFocusApi } from "@flow-industries/id/focus";
import { FocusPanel, FocusProvider, useFocus } from "@flow-industries/ui/focus";

function Practice() {
  const focus = useFocus();
  return <FocusPanel focus={focus} surface="web" />;
}

// Keep this API instance stable; credentials and surface belong to the host.
const api = createFocusApi(authHost, getToken, "web");

<FocusProvider api={api} viewerId={viewerId}>
  <Practice />
</FocusProvider>;

Pass a stable authenticated account ID as viewerId, or null for an inert provider. The host retains its guest, disabled-account, and embedded-surface policy: omit the provider/panel wherever practice must be excluded. Account changes clear session and subject state and discard old asynchronous responses. The provider restores active sessions on mount and refreshes when the document becomes visible. Outside a provider, hooks return an inert value.

FocusPanel accepts an explicit focus value, an optional managementLink, and text as an injected FocusText translator. Use text={createFocusText(locale, messages)} for locale and message overrides. The controlled StudySubjectPicker accepts catalog/subjects, busy/error state, and pick/create callbacks; the host owns requests when using it alone. Arrow keys navigate, Enter selects, and Escape clears search or returns from a category. Private subject labels are marked data-user-content and isolated for bidirectional text.

The showcase at /#focus provides account, delay, error, reload, and theme controls with local fixture data. Run bun run build then bunx playwright test tests/focus.spec.ts for recovery, privacy, keyboard and failure checks.

Packed package compatibility

bun run test:package packs the same src allowlist installed from npm and installs it into disposable React 19.0.0 and 19.2.3 consumers with React Router 7.8.2, Vite 7.2.7 and Tailwind 4.1.18. Each consumer renders on the server, builds browser assets, then hydrates in Chromium and exercises keyboard focus, select/input rendering, button interaction and emitted CSS tokens. Install the browser first with bunx playwright install chromium.

The check removes the component export and token stylesheet in the installed copy and requires each broken build to fail, then restores the files and repeats the successful browser check. PR CI and the publishing workflow both require this gate. A new supported consumer configuration belongs in this matrix before a release depends on it; incompatible changes require a coordinated package version and consumer update. These checks use package imports, never source aliases.