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

@rahulyadev/design-system

v1.0.0

Published

Reusable React primitives, styles, and theme utilities.

Readme

React design system

@rahulyadev/design-system provides reusable React primitives, opt-in CSS, and domain-neutral theme utilities. Install the stable release as an exact dependency:

npm install --save-exact @rahulyadev/[email protected]

Registry availability and tarball integrity must be verified before consumer adoption. The source and package use the MIT license. Development requires Node.js 24.19.0 and npm 11.17.0.

Development and verification

Install the locked development dependencies and run the complete local verification:

npm ci
npm run verify

The release gate includes packed React consumers and digest-pinned browser comparisons:

npm run test:packed
npm run test:browser:container
npm run test:visual:container
npm run verify:release -- --expected-version=1.0.0
npm run package:release-artifact -- --expected-version=1.0.0

test:packed installs a generated tarball into clean React 18.3.1 and React 19.2.8 consumers. It checks strict NodeNext and Bundler compilation, SSR, public exports, CSS subpaths, bundle output, deep-import rejection, and one physical React and React DOM installation. Both consumers use TypeScript 6.0.3 and Vite 8.2.1.

The container commands use Playwright 1.62.1 from mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e. The matrix covers Chromium 151.0.7922.34, Firefox 153.0, and WebKit 26.5. Visual baselines are updated only with npm run test:visual:update:container, followed by inspection and two immediate comparison passes.

Generated tarballs, consumers, previews, reports, and results are ignored under .artifacts/, .tmp/, .preview/, playwright-report/, and test-results/.

Public API

The package root exports Badge, Button, Card, Container, IconButton, LinkButton, Section, SectionHeading, SkipLink, and VisuallyHidden, together with their public prop types and finite option constants and types.

Theme runtime is separate. @rahulyadev/design-system/theme exports theme constants, the bootstrap generator, provider, toggle, hook, storage utilities, theme resolution, the root application helper, and their public types.

The JavaScript output is ESM-only. React and React DOM are peer dependencies with ranges ^18.3.1 || ^19.0.0; the package has no runtime dependencies.

Styling

Consumers may import the combined stylesheet:

import "@rahulyadev/design-system/styles.css";

Alternatively, import the separate stylesheets in this exact order:

import "@rahulyadev/design-system/tokens.css";
import "@rahulyadev/design-system/base.css";
import "@rahulyadev/design-system/primitives.css";

Do not use the combined and separate forms together. JavaScript never injects CSS. Consumer resets precede package CSS; consumer semantic-token overrides and application styles follow it. Consumers own font loading.

Theme, SSR, and CSP

Generate the deterministic first-paint script with createThemeBootstrapScript, place it in the document head before theme-consuming stylesheets, and wrap the application in ThemeProvider. When using a consumer-specific storage key, pass the same value to the bootstrap generator and provider.

The local packed preview uses a fixed nonce only for deterministic testing. Production consumers must generate a fresh nonce per response or authorize the exact stable bootstrap text with a CSP hash. Consumers own SSR document integration, CSP policy, and any narrowly scoped hydration handling.

Accessibility and ownership

The package preserves native semantics, keyboard behavior, visible focus, reduced-motion behavior, forced-colors behavior, minimum target sizing, and theme-control labeling. Consumers remain responsible for accessible composition, content, headings, labels, route focus management, contrast after overrides, and application-level testing.

Consumers retain routes, content, SEO, shell composition, authentication, APIs, infrastructure, deployment, and business components. Tailwind and other consumer frameworks are not package dependencies.

Documentation

Local verification does not establish registry availability, hosted-check success, trusted-publisher configuration, provenance, final stable publication, consumer deployment, or production equivalence.