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

ricebag

v0.1.4

Published

A React component library with CSS custom property theming

Readme

ricebag

ricebag is a React component library with custom property theming.

Installation

npm install ricebag

Usage

Import the components and the stylesheet:

import { Button, Modal, Tooltip, toast } from 'ricebag'
import 'ricebag/styles.css'

The stylesheet includes both component styles and default theme values. Import it once at the root of your app.

Components

| Component | Description | |---|---| | Box | Container with optional background image and icon | | Button | Button with built-in async loading state | | Dropdown | Popover-based dropdown menu | | Icon | Lightweight image-based icon | | IconButton | Button variant with an icon | | Loading | Animated loading indicator | | Panel | Styled panel container | | Popover | Smart-positioned popover with open/close animations | | Select | Dropdown-based select input | | Tooltip | Hover tooltip with directional positioning | | Modal / ModalBox | Global modal system | | Toast / ToastBox | Global toast notification system |

Theming

All visual properties are driven by CSS custom properties. The defaults shipped in ricebag/styles.css are:

:root {
  --color-main: #141414;       /* component backgrounds */
  --color-accent: #444444;     /* borders, hover states */
  --color-bright: #f0f0f0;     /* primary text, glow effects */
  --color-dim: #888888;        /* muted/disabled text */
  --color-danger: rgba(255, 133, 133, 0.16);  /* danger state border */
  --color-backdrop: rgba(0, 0, 0, 0.3);       /* modal overlay */

  --z-box-content: 100;
  --z-popover: 1000;
  --z-modal: 9999;
  --z-tooltip: 99999;
  --z-toast: 999999;

  --transition-fast: 0.1s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

To override any variable, redefine it in your own global CSS after importing ricebag/styles.css:

:root {
  --color-main: #1a1a2e;
  --color-accent: #2a2a4a;
  --color-bright: #ffffff;
}

You can also scope overrides to a specific part of your app:

.sidebar {
  --color-main: #0d0d0d;
}

Browser Requirements

ricebag uses the Web Animations API and the HTML Popover API. No polyfills are included.

Minimum supported browsers: Chrome 114+, Safari 17+, Firefox 125+.

License

Copyright 2026 Rio

Licensed under the GNU Lesser General Public License v3.0 or later. See LICENSE for details.