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

@peoplecues/commons

v1.3.2

Published

A reusable React component library for xto10x SaaS tools.

Readme

@peoplecues/commons

A React component library built with Vite, Storybook, and styled-components. This library provides a wide range of UI components, theming utilities, and icon sets for rapid application development.


⚠️ Important: styled-components Instance

This library exports its own instance of styled-components (including styled, ThemeProvider, createGlobalStyle, and keyframes).

To avoid issues with multiple styled-components instances (which can break theming, context, and style injection), the consuming application should NOT install or use its own version of styled-components.

Always use the exports from this library for all styled-components needs.


Modal Exports

This library also exports modal utilities from [styled-react-modal]:

  • StyledReactModal (default export from styled-react-modal)
  • ModalProvider

These are available as named exports from the main entry point:

import { StyledReactModal, ModalProvider } from "@peoplecues/commons";

Entry Points

Entry points are defined in vite.config.js under build.lib.entry and mapped in package.json > exports.

Current Entry Points

  • index: All named exports for all components/utilities.
    • Usage: import { Button, ThemeProvider, ... } from '@peoplecues/commons';
  • IconLib: Import icons individually.
    • Usage: import { warningFilled } from '@peoplecues/commons/IconLib';
  • BulkSelector: Import BulkSelector directly.
    • Usage: import BulkSelector from '@peoplecues/commons/BulkSelector';
  • DateTimePicker: Import DateTimePicker directly.
    • Usage: import DateTimePicker from '@peoplecues/commons/DateTimePicker';

Adding New Entry Points

  • Add the entry in vite.config.js > build.lib.entry.
  • Add the corresponding path in package.json > exports.
  • Document the new entry point here in the README.

Local Development & Testing in Other Apps (using yalc)

  1. Make your changes in this repo.
  2. Run the build:
    yarn build
  3. Publish to yalc:
    yalc publish

In the consuming repo:

  1. Add the package from yalc:
    yalc add @peoplecues/commons
    # (If a previous version exists, run `yarn remove @peoplecues/commons` first, or use `yalc update @peoplecues/commons`)
  2. Install dependencies:
    yarn
    # or
    npm install
  3. Start the app:
    yarn start
    # or
    npm run dev

Storybook Usage

  • To run Storybook locally:
    yarn storybook
  • Some stories (e.g., Avatar) may not display anything by default. Use the controls panel to provide values and see the component render.

Component Story Format (CSF3)

  • The library has migrated to CSF3 for Storybook stories.
  • We no longer use knobs, actions, etc. from previous Storybook versions.

File Extension Best Practices

  • Always use .jsx for files containing JSX.
  • This ensures proper syntax highlighting, linting, and build compatibility. Also might break otherwise.

Summary of Key Exports

  • All components and utilities as named exports from the main entry point
  • Icon library and select components as separate entry points

For any new entry points or major changes, update this README accordingly and ensure the relevant paths are added to both vite.config.js and package.json > exports.


Publishing to npm

To publish as beta:

  1. run
    yarn build
  2. Set the version in package.json with a beta tag, e.g.:
    • "version": "1.2.0-beta.0"
    • Increment as needed: 1.2.0-beta.1, 1.2.0-beta.2, etc.
  3. Login to npm (requires credentials and OTP sent to apps@xto10x mail):
    npm login
    To check if you are already logged in:
    npm whoami
  4. Publish with the beta tag:
    yarn npm publish --tag beta
  5. To use the beta version in another repo(can mention beta version too):
    npm install peoplecues/commons@beta

To publish as latest (for stable or beta versions):

  1. run
    yarn build
  2. Set the version in package.json as a stable version, e.g.:
    • "version": "1.2.0"
  3. Login to npm:
    npm login
    To check if you are already logged in:
    npm whoami
  4. Publish as latest:
    npm publish
  5. To remove any previous beta tag:
    npm dist-tag rm peoplecues/commons beta