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

red-components

v1.0.9

Published

Collection of React-components used by my applications

Readme

red-components

Collection of React components used by my applications.

Installation

npm i red-components

Usage

import { Component1, Component2 } from "red-components";

Tailwind config

You have to add the following lines in your main css:

@import "tailwindcss";
@plugin "tailwindcss-react-aria-components";
@source "[npm root folder]/node_modules/red-components"

Components

Badge

Usage: <Badge type="">Example</Badge>

type can be the following values: "success" | "error" | "warning" | "info" | "neutral" | "indigo" | "purple" | "pink"

Bottom Navigation

Usage:

return(
    <BottomNavigation>
        <BottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </BottomNavigationItem>
        <BottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </BottomNavigationItem>
        <BottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </BottomNavigationItem>
        <BottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </BottomNavigationItem>
    </BottomNavigation>
);

or

return(
    <RoundedBottomNavigation>
        <RoundedBottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </RoundedBottomNavigationItem>
        <RoundedBottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </RoundedBottomNavigationItem>
        <RoundedBottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </RoundedBottomNavigationItem>
        <RoundedBottomNavigationItem item_text="test" onClick={click}>
            <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
        </RoundedBottomNavigationItem>
    </RoundedBottomNavigation>
);

Select control

Usage: <SelectControl type=""> Example </SelectControl>"

type can be the following values: "auto" | "all" | "text" | "none"

Select the type of the user selection in the children.

Top Banner

Usage: <TopBanner title="" description"" buttonText="" buttonLink="" />

title The title of the banner. It will be bold

description The description of the banner. It will be normal

buttonText The text for the action button

buttonLink The link for the action button

Typography

There are several typography components used to style texts. The names are self-explanatory.

  • FontMono
  • FontSans
  • FontSerif
  • InlineCode
  • TypoH1
  • TypoH2
  • TypoH3
  • TypoH4
  • TypoLarge
  • TypoMuted
  • TypoP
  • TypoQuote
  • TypoSmall

Tables

The table syntax is pretty similar to HTML:

return (
    <Table>
        <TableHead>
            <TableRow>
                <TableHeader>Column 1</TableHeader>
                <TableHeader>Column 2</TableHeader>
            </TableRow>
        </TableHead>
        <TableBody>
            <TableRow>
                <TableContent>Example 1</TableContent>
                <TableContent>Example 2</TableContent>
            </TableRow>
        </TableBody>
    </Table>
);

Building

You can build this small library using npm run build. The output files will be placed in the dist-Folder.

Credits

This library is built using TailwindCSS, TypeScript, React and Rollup.