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

@shining-technologies/ui

v2.1.2

Published

Shining UI V2: React components, a framework-independent data-table core and shadcn-style CSS-variable theming in one Next.js-ready package.

Readme

@shining-technologies/ui

React components, a data table whose filtering logic also runs on your server, and shadcn-style CSS-variable theming. One package, built for the Next.js App Router and any other React setup.

  • Server Components work. Pure components (Button, Badge, Card, Table, icons) render on the server with no client JavaScript, and every function can be called from server code. Interactive components mark their own 'use client' boundary.
  • The theme is CSS. shadcn/ui tokens, light and dark, no provider. Paste a tweakcn theme and colours, radius, fonts, shadows and spacing all reach the components.
  • The data table's logic is framework-independent. Filtering, sorting, pagination and URL state live in @shining-technologies/ui/core and give the same result in the browser and on a server.
  • Tree-shakeable. One ES module per source file, sideEffects limited to CSS.

Upgrading from @shining-technologies/ui-kit-*? Read MIGRATION.md.

Install

npm install @shining-technologies/ui

Peer dependencies: react and react-dom 18.3 or 19. Optional: recharts for @shining-technologies/ui/charts, @tanstack/react-virtual for @shining-technologies/ui/virtualized.

TypeScript needs moduleResolution set to "bundler", "node16" or "nodenext". The package is ESM only.

Quick start

Next.js (App Router)

// app/layout.tsx — a Server Component
import '@shining-technologies/ui/styles.css'
import { ColorModeScript } from '@shining-technologies/ui'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en" suppressHydrationWarning>
      <head>
        <ColorModeScript defaultMode="system" />
      </head>
      <body className="sui-scope">{children}</body>
    </html>
  )
}
// app/page.tsx — also a Server Component
import { Badge, Button, Card, CardContent, CardHeader, CardTitle } from '@shining-technologies/ui'

export default function Page() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Orders</CardTitle>
      </CardHeader>
      <CardContent>
        <Badge tone="success">Live</Badge> <Button>New order</Button>
      </CardContent>
    </Card>
  )
}

No provider is needed. See the Next.js guide for data tables driven by the URL, per-tenant themes and Content-Security-Policy.

Vite

// src/main.tsx
import '@shining-technologies/ui/styles.css'
import { createRoot } from 'react-dom/client'
import { App } from './App'

createRoot(document.getElementById('root')!).render(<App />)

Entry points

| Import | Contents | React | | ---------------------------------------- | -------------------------------------------------------------------- | ----- | | @shining-technologies/ui | All components, hooks and every core function | yes | | @shining-technologies/ui/<family> | One component family: button, data-table, sidebar, form, … | yes | | @shining-technologies/ui/core | Filtering, sorting, pagination, selection, applyQuery, URL query | no | | @shining-technologies/ui/theme | createThemeCss, createTheme, presets, colour utilities | no | | @shining-technologies/ui/charts | Recharts-based charts (requires recharts) | yes | | @shining-technologies/ui/virtualized | Virtualized table body (requires @tanstack/react-virtual) | yes | | @shining-technologies/ui/csv | CSV and TSV export | no | | @shining-technologies/ui/styles.css | Theme, tokens and all component styles | | | @shining-technologies/ui/theme.css | The default theme tokens only | | | @shining-technologies/ui/presets.css | Eleven named themes, applied with data-theme | | | @shining-technologies/ui/tailwind.css | Tailwind CSS v4 mapping of the tokens | |

Component families: avatar, badge, button, card, color-mode, data-table, date-time, feedback, form, icons, layout, navigation, overlay, separator, sidebar, table, visually-hidden.

Server and client

Nothing in this package is marked 'use client' as a whole. Each module that needs the browser (state, effects, context, event handlers, Radix primitives) declares it, and nothing else does.

| In a Server Component you can… | Examples | | ------------------------------------------------- | ------------------------------------------------------------------------ | | render pure components with no client JavaScript | Button, Badge, Card, Alert, Skeleton, Empty, Spinner, StatusDot, Kbd, Separator, Table, Breadcrumb, VerticalNav, NavigationRail, AppShell layout parts, icons | | render interactive components with serialisable props | Tabs, Accordion, Dialog, Tooltip, Sidebar | | call any function | applyQuery, parseQuerySearchParams, createColumnHelper, getPageNumbers, createThemeCss |

Pass functions (a column's cell renderer, onClick, renderLink) only from a client component, as React requires.

Theming

/* your globals.css */
:root {
  --primary: oklch(0.55 0.18 262);
  --radius: 0.5rem;
}
.dark {
  --primary: oklch(0.72 0.14 262);
}

Your definitions win over the defaults regardless of import order, and Tailwind utilities override component styles. Dark mode is the .dark class. Generate a whole contrast-checked theme from a brand colour with createThemeCss({ primary: '#be123c' }).

Full guide: docs/theming.md.

Data table

'use client'
import { DataTable, type ColumnDef } from '@shining-technologies/ui'

const columns: ColumnDef<Order>[] = [
  { accessorKey: 'customer', header: 'Customer', filter: { type: 'text' } },
  { accessorKey: 'status', header: 'Status', filter: { type: 'multiSelect', options } },
  { accessorKey: 'total', header: 'Total', sortingFn: 'number', filter: { type: 'number' } },
  { accessorKey: 'placedAt', header: 'Placed', filter: { type: 'date' } },
]

export function Orders({ rows }: { rows: Order[] }) {
  return (
    <DataTable
      data={rows}
      columns={columns}
      getRowId={(row) => row.id}
      timeZone="Australia/Sydney"
      locale="en-AU"
    />
  )
}

Server-side filtering with the same columns and the same results:

import { applyQuery, parseQuerySearchParams } from '@shining-technologies/ui/core'

const query = parseQuerySearchParams(await searchParams, { columns })
const { rows, total } = applyQuery(allOrders, query, { columns, timeZone: 'Australia/Sydney' })

Full guide, including URL-driven tables with useDataTableQueryState: docs/data-table.md.

Documentation

| Guide | | | ----------------------------------------------- | ------------------------------------------------------------- | | Getting started | Install, stylesheet, first page and table, TypeScript, tests | | Theming | Tokens, dark mode, named themes, brand colours, Tailwind | | Next.js | Server Components, URL-driven tables, per-tenant themes, CSP | | Data table | Columns, filters, server mode, selection, customisation | | Charts | Trend, bar, donut, gauge, scatter and sparkline charts | | Accessibility | What the components guarantee | | Troubleshooting | Common errors and their fixes |

Every component family has its own page, and /core, /theme, /csv and the utility hooks have API references: see the documentation index.

Browser support

Chrome and Edge 111+, Safari 16.4+, Firefox 113+. The styles use cascade layers, :where() and color-mix().

Testing your application

Radix primitives and the responsive table use browser APIs that jsdom lacks (ResizeObserver, matchMedia, pointer capture). happy-dom works without polyfills for most of them; otherwise polyfill them in your test setup. CSS imports need a stub in Jest (moduleNameMapper).

Licence

MIT