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

oppr_components

v1.0.1

Published

**oppr_components** is a React component library built with TypeScript and Tailwind CSS for Oppr AI. All components are designed to be customizable via props and integrate easily into any Oppr project.

Readme

oppr_components

oppr_components is a React component library built with TypeScript and Tailwind CSS for Oppr AI. All components are designed to be customizable via props and integrate easily into any Oppr project.


Table of Contents


Installation

Install the package via npm or yarn:

npm install oppr_components
# or
yarn add oppr_components

Note: This package has react and react-dom as peer dependencies. Ensure your project has compatible versions installed.


Usage

Import components from the package and use them in your project:

import React from "react";
import {
  ThemeProvider,
  useTheme,
  Button,
  Sidebar,
  Header,
  Searchbar,
  Logo
} from "oppr_components";

function App() {
  const { theme, setTheme } = useTheme();

  return (
    <ThemeProvider defaultTheme="light">
      <div className="flex">
        <Sidebar
          items={[
            { label: "Home", href: "/", icon: <Logo /> },
          ]}
          logo={<Logo logoSrc="/custom-logo.png" />}
          userInfo={<div>User Info Here</div>}
          onToggle={(collapsed) => console.log("Sidebar collapsed:", collapsed)}
        />
        <div className="flex-1">
          <Header
            onGoBack={() => window.history.back()}
            center={<Searchbar placeholder="Search..." />}
            right={
              <Button onClick={() => setTheme(theme === "light" ? "dark" : "light")}>
                Toggle Theme
              </Button>
            }
          />
          <main className="p-6">
            {/* Your main content */}
          </main>
        </div>
      </div>
    </ThemeProvider>
  );
}

export default App;

Components

Theme

  • ThemeProvider - Wraps your application to provide theme support.
  • useTheme - Hook to access the current theme and update it.

Button

  • Button - A customizable button with variant and size options.

Sidebar & SidebarNav

  • Sidebar - A responsive sidebar container.
  • SidebarNav - A navigation list for the sidebar.

Header

  • Header - A flexible header component.

Dialog

  • Dialog - A modal dialog component.

DropdownMenu

  • DropdownMenu - A dropdown menu system with various triggers and options.

Input

  • Input - A styled text input component.

Tabs

  • Tabs - A tabbed navigation system.

Card

  • Card - A container for related content with header and footer sections.

Checkbox

  • Checkbox - A styled checkbox component.

Breadcrumbs

  • Breadcrumbs - A set of components for breadcrumb navigation.

Textarea

  • Textarea - A styled textarea input.

Tooltip

  • Tooltip - A component for displaying tooltips.

Avatar

  • Avatar - A user avatar component with fallback options.

Tables

  • BorderedTable - A table with sorting and selection features.
  • MinimalTable - A simplified table component.
  • ModernTable - A modern-styled table with enhanced features.

Searchbar

  • Searchbar - A search input with an embedded search icon.

Logo

  • Logo - A logo component that switches between favicon and full logo.

Example

import React from "react";
import {
  ThemeProvider,
  useTheme,
  Button,
  Sidebar,
  Header,
  Searchbar,
  Logo,
  BorderedTable
} from "oppr_components";

const menuItems = [
  { label: "Home", href: "/", icon: <Logo /> },
  { label: "Settings", href: "/settings" },
];

const sampleData = [
  { id: 1, name: "Document 1", type: "PDF", size: "1.2MB", modified: "2023-01-01", status: "Active" },
  { id: 2, name: "Spreadsheet 1", type: "XLSX", size: "2.3MB", modified: "2023-01-02", status: "Inactive" },
];

function App() {
  return (
    <ThemeProvider defaultTheme="light">
      <div className="flex">
        <Sidebar items={menuItems} logo={<Logo />} />
        <div className="flex-1">
          <Header center={<Searchbar placeholder="Search..." />} />
          <main className="p-6">
            <BorderedTable data={sampleData} />
          </main>
        </div>
      </div>
    </ThemeProvider>
  );
}

export default App;