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

@hamiltondynamic/hdux

v0.2.1

Published

Hamilton Dynamic User Experience — A React component framework

Readme

HDUX — Hamilton Dynamic User Experience

A React component framework for building dynamic, animated user interfaces with a distinctive sci-fi aesthetic.

Installation

npm install hdux

Peer dependencies: React 18+

Quick Start

import {
  HduxThemeProvider,
  TopBar, BottomBar, BarLeft, BarRight, BarElement,
  Box, Text, ThemeSelector,
} from "hdux";

function App() {
  return (
    <HduxThemeProvider>
      <TopBar>
        <BarLeft>
          <BarElement><Text variant="body">MY APP</Text></BarElement>
        </BarLeft>
        <BarRight>
          <BarElement borderless><ThemeSelector /></BarElement>
        </BarRight>
      </TopBar>

      <Box animation="standard" hasLoaded={true} fullBorder>
        <Text variant="h3" animation="print">SYSTEM ONLINE</Text>
        <Text variant="body" animation="sweep">
          All subsystems initialized and operational.
        </Text>
      </Box>

      <BottomBar>
        <BarLeft>
          <BarElement><Text variant="body">v0.1.0</Text></BarElement>
        </BarLeft>
      </BottomBar>
    </HduxThemeProvider>
  );
}

Theme System

HDUX is built around a layered theme system. Wrap your app in <HduxThemeProvider> and optionally provide a config with up to 4 theme layers:

  • light / dark / custom — color-only mode themes (mainColor, textColor, background, customColors)
  • master — includes colors plus structural tokens (typography, borderWidth, boxCorners)

Provide only a master to skip light/dark modes, or combine all four for full theme switching. Transitions between modes are smooth — colors fade via CSS custom properties.

<HduxThemeProvider config={{
  master: {
    mainColor: "#00d4ff",
    background: "#0a0a1a",
    typography: { mainFont: '"Quantico", sans-serif' },
    borderWidth: "2px",
    boxCorners: { length: "16px", width: "3px" },
  },
  light: { mainColor: "#1a1a2e", background: "#f0f0f0" },
  dark: { mainColor: "#00d4ff", textColor: "#e0e0e0", background: "#0a0a1a" },
  transitionDuration: "400ms",
}}>

Use useTheme() to access { theme, mode, setMode, availableModes } from any child component.

Components

Box

The signature HDUX surface — a container demarcated by 90-degree corner pieces. Oriented around loading-to-reveal animations.

<Box
  animation="standard"       // "static" | "standard" | "verticalFirst" | "horizontalFirst"
  hasLoaded={isReady}         // triggers transition to full size
  loadingText="LOADING"       // text shown during loading state
  fullBorder                  // extend corner lines to a full outline after settling
  loadingAnimations={{
    textPulse: { duration: 800 },
    cornerSpin: { duration: 400 },
    cornerBlinkStart: { iterations: 2 },
  }}
>
  {children}
</Box>

Animation modes:

  • static — no animation, renders immediately
  • standard — corners start centered, slide out to final positions
  • verticalFirst — corners move to top/bottom edges first, then horizontally
  • horizontalFirst — corners move to left/right edges first, then vertically

Loading animations: textPulse, cornerPulse, cornerSpin, textBlink, cornerBlinkStart, cornerBlinkEnd, contentBlink

Text

The default typographical component. If placed inside a Box, it automatically sequences its intro animation to play after the Box settles.

<Text variant="h2" animation="print" color="#00d4ff">
  SYSTEM STATUS
</Text>

Props:

  • varianth1h6, subheading, body (sets size, weight, and HTML element)
  • animation"none", "print" (typewriter effect), "sweep" (diagonal mask reveal)
  • color, fontSize, fontFamily — manual overrides (variant and theme are defaults)

TopBar & BottomBar

Fixed header and footer bars demarcated by a solid theme-colored border.

<TopBar>
  <BarLeft>   {/* aligns content left */}
  <BarCenter> {/* centers content */}
  <BarRight>  {/* aligns content right */}
</TopBar>

Each bar accepts up to 3 children: BarLeft, BarCenter, BarRight (each used at most once). Pass static prop to disable fixed positioning.

BarElement

The basic UI unit for bars — transparent background with side borders in the theme color. Borders span the full height of the bar.

<BarElement onClick={handleClick}>
  <Text variant="body">DASHBOARD</Text>
</BarElement>

<BarElement borderless>  {/* no side borders */}
<BarElement color="#ff6f00" background="#1a0a00">  {/* custom colors */}

ThemeSelector

A three-position theme mode switcher rendered as a pseudo-triangle with gap-cut corners. The active mode is indicated by a filled triangle at the corresponding corner. Clicking cycles through available modes.

<BarElement borderless>
  <ThemeSelector size={36} />
</BarElement>

Corner mapping: top = custom, bottom-left = light, bottom-right = dark.

Default Font

HDUX uses Quantico as the default framework font. The HduxThemeProvider automatically loads it from Google Fonts. Override via the typography.mainFont theme config.

Development

npm run storybook       # dev server on port 6006
npm run build           # library build (CJS + ESM + types)
npm run build-storybook # static Storybook build
npm run typecheck       # TypeScript checking

License

MIT