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

@code-sherpas/pharos-react

v0.10.0

Published

React component library for Code Sherpas. Consumes @code-sherpas/pharos-tokens. Vite library mode + CSS Modules — no Tailwind, no CSS framework required at the consumer.

Readme

@code-sherpas/pharos-react

React component library for Code Sherpas. Consumes @code-sherpas/pharos-tokens as a peer dependency. Built with Vite library mode, React 19 and CSS Modules. The published bundle ships zero Tailwind, zero PostCSS preflight and zero global resets — see Decision D9 in PLAN-pharos-alexandria.md.

What's in this package

This package provides the React component layer of Code Sherpas's design system. It does not define design values — those live in pharos-tokens.

Installation

pnpm add @code-sherpas/pharos-react @code-sherpas/pharos-tokens
# or npm / yarn

@code-sherpas/pharos-tokens is a peer dependency and must be installed explicitly alongside this package.

Usage

// Root entry file (e.g. main.tsx, app/layout.tsx). Import once.
import '@code-sherpas/pharos-tokens/css'; // CSS variables for the design tokens
import '@code-sherpas/pharos-react/styles.css'; // hashed component styles
import { Button } from '@code-sherpas/pharos-react';

export function Demo() {
  return <Button intent="primary">Save changes</Button>;
}

Rules for consumers

See RULES.md — published with the package.

Storybook

The live component reference runs on Storybook 10 + @storybook/react-vite.

  • pnpm storybook — dev server on port 6006.
  • pnpm build-storybook — static build to storybook-static/. The hosted URL will be published once Render deployment is wired up (phase 1B.4 / 1B.5).

Contributing

  1. pnpm install
  2. Implement the component under src/components/<Name>.tsx plus its sibling src/components/<Name>.module.css (Decision D9). Export it from src/index.ts.
  3. Add a story alongside: src/components/<Name>.stories.tsx.
  4. Add tests under tests/ (Vitest + Testing Library).
  5. pnpm build — verify the Vite library bundle compiles cleanly.
  6. pnpm build-storybook — verify stories render.
  7. pnpm test / pnpm typecheck / pnpm lint / pnpm format:check.
  8. pnpm changeset — declare the type of change (patch / minor / major).
  9. Open a PR.

License

MIT. See LICENSE.