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

@bloxanaut/ui

v0.1.0

Published

BLOXANAUT Design System - Space-themed UI components for React

Readme

@blox/ui

🚀 BLOXANAUT Design System - Space-themed UI components for React

A collection of accessible, customizable UI components built with:

Installation

# npm
npm install @blox/ui

# pnpm
pnpm add @blox/ui

# yarn
yarn add @blox/ui

Peer Dependencies

pnpm add react react-dom

Setup

1. Import styles

Add the design tokens CSS to your app's entry point:

// app/layout.tsx or _app.tsx
import '@blox/ui/styles.css';

2. Configure Tailwind (if using Tailwind)

Add the package to your content configuration:

// tailwind.config.js
module.exports = {
  content: [
    // ... your content paths
    './node_modules/@blox/ui/dist/**/*.js',
  ],
  // ...
};

Usage

import { Button, Card, Input, Badge } from '@blox/ui';

export default function MyComponent() {
  return (
    <Card>
      <Input placeholder="Enter your email" />
      <Button variant="default">Subscribe</Button>
      <Badge variant="solar">NEW</Badge>
    </Card>
  );
}

Components

| Component | Description | |-----------|-------------| | Alert | Notification messages | | Avatar | User avatars with fallback | | Badge | Status indicators and labels | | Button | Interactive buttons with variants | | Calendar | Date picker calendar | | Card | Content containers | | Collapsible | Expandable content sections | | Dialog | Modal dialogs | | Drawer | Bottom/side sheets | | DropdownMenu | Context menus | | Input | Text input fields | | Label | Form labels | | Popover | Floating content panels | | Progress | Progress bars | | Select | Dropdown selections | | Separator | Visual dividers | | Sheet | Side panels | | Skeleton | Loading placeholders | | Slider | Range input | | Tabs | Tabbed navigation |

Button Variants

<Button variant="default">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="outline">Outline</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="solar">Solar ⭐</Button>
<Button variant="destructive">Delete</Button>
<Button variant="link">Link</Button>

Badge Variants

<Badge variant="default">Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="solar">NEW ⭐</Badge>
<Badge variant="success">Success</Badge>
<Badge variant="warning">Warning</Badge>
<Badge variant="destructive">Error</Badge>
<Badge variant="outline">Outline</Badge>

Theming

The design system uses CSS custom properties for theming. Override in your CSS:

:root {
  --blox-blue-bright: #00A3FF;  /* Your primary color */
  --blox-amber-solar: #FFBC00;  /* Accent color */
  /* ... see tokens.css for all variables */
}

Dark Mode

Add the dark class to your root element:

<html class="dark">
  <!-- Your app -->
</html>

Or use data-theme="dark":

<html data-theme="dark">
  <!-- Your app -->
</html>

Utility Function

The cn utility helps merge Tailwind classes:

import { cn } from '@blox/ui';

function MyComponent({ className }) {
  return (
    <div className={cn('base-classes', className)}>
      Content
    </div>
  );
}

Publishing to npm

First-time Setup

  1. Create npm account at npmjs.com

  2. Login to npm

    npm login
  3. Verify login

    npm whoami

Publishing

# Build the package
pnpm build

# Publish (first time - creates the package)
npm publish --access public

# Publish updates (bump version first)
npm version patch  # or minor, major
npm publish

Scoped Package Setup

Since @blox/ui is a scoped package, you need to either:

Option A: Use your npm username as scope

{
  "name": "@yourusername/ui"
}

Option B: Create an npm organization

  1. Go to npmjs.com → Your Avatar → Organizations → Create
  2. Name it "blox"
  3. Then publish with --access public

Versioning

npm version patch  # 0.1.0 → 0.1.1 (bug fixes)
npm version minor  # 0.1.0 → 0.2.0 (new features)
npm version major  # 0.1.0 → 1.0.0 (breaking changes)

Project Structure

blox-design-system/
├── src/
│   ├── components/       # UI components
│   │   ├── button.tsx
│   │   ├── card.tsx
│   │   └── ...
│   ├── lib/
│   │   └── utils.ts      # cn() utility
│   ├── styles/
│   │   └── tokens.css    # Design tokens
│   └── index.ts          # Main entry
├── dist/                 # Built output
├── package.json
├── tsconfig.json
└── tsup.config.ts

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Build in watch mode
pnpm dev

# Typecheck
pnpm typecheck

License

MIT © Blox Team