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

tri-ui-library

v2.0.0

Published

Reusable React UI component library with plain CSS — no Tailwind, MUI, or Bootstrap

Readme

Tri UI Library

A reusable React UI component library built with React, JavaScript, and plain CSS (no Tailwind, Material UI, Bootstrap, or other UI frameworks).

Setup (contributors)

npm install
npm run dev    # Development with demo app
npm run build  # Build library (runs automatically before `npm publish`)

Publishing to npm (public package)

This library is set up like other React UI packages: consumers install it from the public npm registry.

One-time setup

  1. Create an npm account at https://www.npmjs.com/signup.
  2. Log in locally: npm login (or npm login --auth-type=web if you use 2FA).
  3. Choose the package name in package.json"name". The name tri-ui-library must be available on npm. Check: npm view tri-ui-library (404 = free). If it is taken, use a scoped name such as @your-org/tri-ui-library and set "publishConfig": { "access": "public" } (already set for public scoped packages).
  4. Replace placeholders in package.json: repository, bugs, and homepage URLs (search for YOUR_USERNAME).

Publish a version

  1. Log in (once per machine, or when the token expires):

    npm login --auth-type=web
  2. Bump version in package.json (semver), or run npm version patch --no-git-tag-version (also updates package-lock.json).

  3. Publish (checks login first, then runs prepublishOnly → build → publish):

    npm run release

    Or use npm publish alone after confirming npm whoami prints your username.

If npm publish fails with E404 or E401

  • E401 on npm whoami: you are not logged in. Run npm login --auth-type=web and finish the browser step.

  • E404 on PUT …/tri-ui-library while the package exists on npm: almost always wrong or missing auth (npm hides “forbidden” as 404). Log in again; ensure your npm user is a maintainer of tri-ui-library on npmjs.com.

  • E403 “cannot publish over the previously published versions”: bump version in package.json (you cannot re-publish the same semver twice).

  • In PowerShell, run commands on separate lines. Avoid pasting npm whoami # comment on one line with >> continuations; that can break the shell.

  • files: only the dist/ folder is published (plus README.md and LICENSE automatically).

  • Peer deps: apps must install react and react-dom themselves (same as MUI/Chakra).

After publish — anyone can install

npm install tri-ui-library

(Use your real package name if you changed it.)

Use in another project

From npm (or test locally with npm link / "tri-ui-library": "file:../path/to/tri-ui-library"):

npm install tri-ui-library

In your app:

import { Button, Card, Alert } from "tri-ui-library";
import "tri-ui-library/styles.css";

function App() {
  return (
    <Card>
      <Alert type="success">Saved</Alert>
      <Button variant="primary">Submit</Button>
    </Card>
  );
}

Design System

All components use CSS variables from variables.css:

  • Colors: --ui-primary, --ui-secondary, --ui-danger, etc.
  • Spacing: --ui-spacing-sm, --ui-spacing-md, --ui-spacing-lg
  • Typography: --ui-font-size-*, --ui-font-weight-*
  • Borders: --ui-border-radius, --ui-border
  • Shadows: --ui-shadow, --ui-shadow-md
  • Transitions: --ui-transition, --ui-transition-fast

Override these in your app to theme the library.

Components

| Component | Description | |----------------|--------------------------------| | Accordion | Expandable sections | | Alert | Success / warning / error msg | | AlertDialog | Modal confirmation | | AspectRatio | Fixed aspect ratio container | | Avatar | User avatar with fallback | | Badge | Label / tag | | Breadcrumb | Navigation path | | Button | Primary, secondary, danger | | ButtonGroup | Grouped buttons | | Calendar | Month calendar | | Card | Content container | | Carousel | Slide content | | Chart | Simple bar chart | | Checkbox | Checkbox with label | | Collapsible | Toggle content | | Combobox | Searchable select | | Command | Command palette shell | | ContextMenu | Right-click menu | | DataTable | Table from columns + data | | DatePicker | Date input + calendar | | Dialog | Modal dialog | | Drawer | Side panel | | DropdownMenu | Menu from trigger | | Empty | Empty state | | Field | Label + error wrapper | | HoverCard | Hover popover | | Input | Text input with label/error | | InputGroup | Input with addons | | InputOTP | OTP / PIN input |

Accessibility

Components include:

  • aria-label, aria-expanded, aria-selected where appropriate
  • role attributes for dialogs, menus, alerts
  • Keyboard support (Escape to close dialogs, arrows in dropdowns)
  • Focus management in modals

License

MIT