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

astrix-labs-uitk

v0.2.0

Published

Astrix Labs UI Toolkit - Reusable design system components for React

Readme

astrix-labs-uitk

Astrix Labs UI Toolkit - A reusable design system with React components and SCSS styles.

Installation

npm install astrix-labs-uitk

Requirements

  • React 18 or 19
  • A bundler that supports SCSS (e.g., Next.js, Vite with sass)
  • For Next.js: Add to transpilePackages in your config

Next.js Setup

// next.config.ts
const nextConfig = {
  transpilePackages: ['astrix-labs-uitk'],
};

Usage

Import Styles

Add the design system styles to your global stylesheet:

// globals.scss or globals.css
@use 'astrix-labs-uitk/styles';

Import Components

import {
  DataTable,
  StatusBadge,
  Pagination,
  EmptyState,
  SearchInput,
  PageHeader,
  Sidebar,
  ThemeToggle,
  Spinner,
  PageLoader,
  SkeletonLoader,
  ErrorBoundary,
  ErrorMessage,
  ErrorPage,
  Markdown,
  MetadataPanel,
} from 'astrix-labs-uitk';

Components

DataTable

A sortable, paginated data table with loading states.

import { DataTable, Column } from 'astrix-labs-uitk';

const columns: Column<User>[] = [
  { key: 'name', header: 'Name', sortable: true },
  { key: 'email', header: 'Email' },
];

<DataTable
  data={users}
  columns={columns}
  loading={isLoading}
  onRowClick={(row) => console.log(row)}
  onSort={(column, direction) => handleSort(column, direction)}
/>

StatusBadge

Displays status with color-coded indicators.

import { StatusBadge } from 'astrix-labs-uitk';

<StatusBadge status="running" />
<StatusBadge status="completed" size="sm" />

Supported statuses: running, completed, failed, pending, awaiting_confirmation, cancelled

Pagination

Page navigation with size selector.

import { Pagination } from 'astrix-labs-uitk';

<Pagination
  currentPage={1}
  totalPages={10}
  pageSize={25}
  totalItems={250}
  onPageChange={(page) => setPage(page)}
  onPageSizeChange={(size) => setPageSize(size)}
/>

EmptyState

Placeholder for empty content areas.

import { EmptyState } from 'astrix-labs-uitk';

<EmptyState
  icon={<SearchIcon />}
  title="No results found"
  description="Try adjusting your search criteria"
  action={{ label: 'Clear filters', onClick: clearFilters }}
/>

SearchInput

Debounced search input with clear button.

import { SearchInput } from 'astrix-labs-uitk';

<SearchInput
  value={search}
  onChange={setSearch}
  placeholder="Search..."
  debounceMs={300}
/>

PageHeader

Page title with breadcrumbs and actions.

import { PageHeader } from 'astrix-labs-uitk';
import Link from 'next/link';

<PageHeader
  title="Users"
  subtitle="Manage your team members"
  breadcrumbs={[
    { label: 'Home', href: '/' },
    { label: 'Users' },
  ]}
  actions={<button>Add User</button>}
  LinkComponent={Link}
/>

Sidebar

Navigation sidebar with collapse functionality.

import { Sidebar, SidebarProvider } from 'astrix-labs-uitk';
import Link from 'next/link';

const navItems = [
  { label: 'Dashboard', href: '/', icon: <DashboardIcon /> },
  { label: 'Users', href: '/users', icon: <UsersIcon /> },
];

<SidebarProvider>
  <Sidebar
    navItems={navItems}
    currentPath={pathname}
    logo={<Logo />}
    LinkComponent={Link}
  />
</SidebarProvider>

ThemeToggle

Dark/light mode toggle button.

import { ThemeToggle, ThemeProvider } from 'astrix-labs-uitk';

<ThemeProvider>
  <ThemeToggle size="md" showLabel />
</ThemeProvider>

Loading Components

import { Spinner, PageLoader, SkeletonLoader } from 'astrix-labs-uitk';

<Spinner size="md" />
<PageLoader message="Loading data..." />
<SkeletonLoader width="100%" height="20px" variant="text" />

Error Components

import { ErrorBoundary, ErrorMessage, ErrorPage } from 'astrix-labs-uitk';

<ErrorBoundary fallback={<ErrorPage message="Something went wrong" />}>
  <App />
</ErrorBoundary>

<ErrorMessage message="Failed to load" onRetry={refetch} />

Markdown

Renders markdown with GitHub Flavored Markdown support.

import { Markdown } from 'astrix-labs-uitk';

<Markdown>{`# Hello World\n\nThis is **bold** text.`}</Markdown>

MetadataPanel

Displays key-value metadata with nested object support.

import { MetadataPanel } from 'astrix-labs-uitk';

<MetadataPanel
  title="Details"
  metadata={{
    id: '123',
    status: 'active',
    config: { timeout: 30 },
  }}
/>

Design Tokens

The package includes CSS custom properties for theming:

:root {
  --accent-primary: #4A9DEA;
  --bg-primary: #0D1117;
  --text-primary: #FFFFFF;
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Libre Baskerville', serif;
  --font-mono: 'JetBrains Mono', monospace;
  // ... and more
}

Light mode is supported via [data-theme="light"] attribute on the root element.

License

MIT