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

plynx

v0.2.3

Published

Modern React dashboard UI kit with flexible theming

Readme

Plynx UI

A modern React dashboard UI kit with a flexible theming system

npm version license

npm · GitHub


Features

  • 15+ Components — Button, Input, Card, Sidebar, Header, Modal, Tabs, and more
  • 3 Curated Themes — Minimal, Dark, Professional — each fully styled, no extra config
  • Flexible Theming — Switch themes at runtime via React Context
  • TypeScript First — All components and tokens fully typed
  • Tailwind CSS — Utility-first styling with CSS variable design tokens
  • Storybook Docs — Interactive component showcase with live theme switching

Installation

npm install plynx

Quick Start

// main.tsx
import { ThemeProvider, baseTheme, darkTheme, professionalTheme } from 'plynx'
import 'plynx/styles'

ReactDOM.createRoot(document.getElementById('root')!).render(
  <ThemeProvider
    initialTheme={baseTheme}
    themes={[baseTheme, darkTheme, professionalTheme]}
  >
    <App />
  </ThemeProvider>
)

// App.tsx
import { Button, Card, Input } from 'plynx'

export function App() {
  return (
    <Card header="Welcome">
      <Input label="Email" placeholder="[email protected]" type="email" />
      <Button className="mt-4">Get started</Button>
    </Card>
  )
}

Themes

| Theme | Description | |-------|-------------| | baseTheme | Clean, minimal with light neutral tones | | darkTheme | Dark mode variant with light text | | professionalTheme | Navy-toned corporate theme with tighter radius |

Switch themes at runtime:

import { useTheme } from 'plynx'

function ThemeToggle() {
  const { setTheme, currentTheme } = useTheme()
  return (
    <button onClick={() => setTheme(currentTheme.name === 'dark' ? 'base' : 'dark')}>
      Toggle dark mode
    </button>
  )
}

Components

Core

| Component | Description | |-----------|-------------| | Button | Variants: primary, secondary, outline, ghost · Sizes: sm, md, lg | | Input | With label, error state, and help text | | Card | With header, footer, and elevated variant |

Layout

| Component | Description | |-----------|-------------| | DashboardLayout | Full page shell: sidebar + header + content | | Sidebar | Collapsible navigation panel with logo, footer, and built-in toggle | | Header | Top bar with title, breadcrumbs, and actions | | PageContent | Scrollable main content area |

Navigation

| Component | Description | |-----------|-------------| | NavItem | Navigation link with active state, icon, badge, and collapsed tooltip | | NavGroup | Collapsible labeled section with hierarchy lines |

Hooks

| Hook | Description | |------|-------------| | useSidebarContext | Returns { collapsed: boolean } — safe to call outside Sidebar (defaults to false) |

Feedback & Interaction

| Component | Description | |-----------|-------------| | Badge | Status indicators with success / warning / error / info | | Alert | Dismissable feedback messages | | Modal | Accessible overlay dialog | | Tabs | Content switcher with keyboard support | | Dropdown | Floating menu triggered by a button | | Tooltip | Hover label with directional positioning |


Sidebar

Sidebar manages its own collapsed state and exposes it via SidebarContext. Child NavItem and NavGroup components read this context automatically — no wiring required.

import { Sidebar, NavItem, NavGroup } from 'plynx'
import { LayoutDashboard, Settings } from 'lucide-react'

<Sidebar logo={<strong>Plynx</strong>} footer={<span>[email protected]</span>}>
  <NavGroup label="Main">
    <NavItem label="Dashboard" href="/" icon={<LayoutDashboard size={16} />} isActive />
    <NavItem label="Settings" href="/settings" icon={<Settings size={16} />} badge={3} />
  </NavGroup>
</Sidebar>

Collapsed state — when the user clicks the built-in toggle button, the sidebar narrows to icon-only mode (w-16). In this state:

  • NavItem shows only the icon (or a 2-letter initial if no icon is provided) and renders a portal-based tooltip on hover
  • NavGroup hides its label and expand/collapse button, rendering only its children
  • The footer slot is hidden

useSidebarContext — read the collapsed state anywhere inside the tree:

import { useSidebarContext } from 'plynx'

function MyNavItem() {
  const { collapsed } = useSidebarContext()
  return <span>{collapsed ? '…' : 'Full label'}</span>
}

NavGroup — collapsible by default (starts open). Click the label row to toggle. Shows a left-border hierarchy line when expanded.

<NavGroup label="Settings" className="mt-4">
  <NavItem label="Profile" href="/profile" icon={<User size={16} />} />
  <NavItem label="Security" href="/security" icon={<Shield size={16} />} />
</NavGroup>

Peer dependencylucide-react is a peer dependency. Install it alongside plynx if you use Lucide icons in nav items:

npm install lucide-react

License

MIT