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

@kagu-project/8bit-ui

v0.2.1

Published

Retro-styled React component library inspired by classic handheld gaming.

Readme

8bit-ui

Build retro-styled web apps with this pixelated React component library inspired by the golden age of handheld gaming.

Retro Style React

8bit-ui is a lightweight, zero-config component library designed to bring the nostalgic aesthetic of classic handheld gaming and geometric pixel art to modern React applications. It features authentic "pressed" states, notched corners, and blocky typography without sacrificing accessibility or performance.

Features

  • 🎮 Authentic Retro Styling: Pixel-perfect borders, notched corners, and tactile depth.
  • ⌨️ Accessible: Fully supports keyboard navigation and screen readers (focus rings, ARIA attributes).
  • 🎨 Themable: Built on CSS Variables for easy runtime customization (Themes, Dark Mode).
  • ⚛️ Modern React: Optimized for React 19+ with functional components and hooks.
  • 🧠 TypeScript Ready: Includes first-party .d.ts typings for all exported components.
  • Lightweight: Zero heavy dependencies.

Installation

pnpm add @kagu-project/8bit-ui
# or
npm install @kagu-project/8bit-ui
# or
yarn add @kagu-project/8bit-ui

Setup

Import the global styles in your application's entry point (e.g., main.tsx, main.jsx, App.tsx, or index.js):

import '@kagu-project/8bit-ui/style.css';
// Note: If running locally without a build step, import './src/theme/index.css' from this package.

Note: You may also need to provide fonts if they aren't bundled by your app. The library uses Press Start 2P for headers and VT323 for body text.

Recommended (privacy + reliability): self-host local .woff2 files and map them to the CSS variables:

:root {
  --8bit-font-header: 'Press Start 2P', cursive;
  --8bit-font-body: 'VT323', monospace;
}

Optional fallback: load from Google Fonts in your HTML head:

<link
  href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap"
  rel="stylesheet"
/>

Usage

import React from 'react';
import { Button, Input, Card, Menu } from '@kagu-project/8bit-ui';

const LoginForm = () => {
  return (
    <Card title="Player Login">
      <div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
        <Input placeholder="Username" fullWidth />
        <Input type="password" placeholder="Password" fullWidth />

        <div style={{ display: 'flex', justifyContent: 'space-between', gap: '8px' }}>
          <Menu>
            <Menu.Trigger ariaLabel="Open actions">...</Menu.Trigger>
            <Menu.Content>
              <Menu.Item>Rename</Menu.Item>
              <Menu.Item>Duplicate</Menu.Item>
              <Menu.Separator />
              <Menu.Item danger>Delete</Menu.Item>
            </Menu.Content>
          </Menu>

          <div style={{ display: 'flex', gap: '8px' }}>
            <Button variant="link">Cancel</Button>
            <Button variant="solid" color="primary">
              Start Game
            </Button>
          </div>
        </div>
      </div>
    </Card>
  );
};

TypeScript

Type definitions are bundled and exported from the package entrypoint. You can import prop types directly:

import { Button, type ButtonProps, Menu, type MenuItemProps } from '@kagu-project/8bit-ui';

Export Conditions

This package uses conditional exports:

  • import / require resolve to built files in dist/ for production/runtime usage.
  • development resolves to src/index.ts to improve local DX in toolchains that support conditional exports.

This behavior is intentional and is validated by the consumer smoke test (pnpm test:consumer).

Validation Scripts

pnpm typecheck        # strict TS check (library + stories + tests)
pnpm test:coverage    # unit tests with coverage
pnpm build            # runtime bundles + declaration emit
pnpm build-storybook  # storybook static build
pnpm test:consumer    # pack+install+typecheck in a consumer fixture
pnpm lint             # eslint checks
pnpm format:check     # prettier check (no writes)
pnpm lint:fix         # auto-fix eslint findings
pnpm format           # apply prettier formatting
pnpm validate         # runs all of the above in sequence

Releases (Changesets)

pnpm changeset         # add a release note + bump type for a change
pnpm version-packages  # apply pending changesets to package version/changelog
pnpm release           # build + publish (used when package is publishable)

Release flow:

  • Add one changeset per PR that should ship.
  • On merge to main, .github/workflows/release.yml opens/updates a "version packages" PR automatically.
  • Merge that PR to apply version/changelog updates.
  • Publishing can be enabled once this package is no longer private.

Components

| Component | Description | Variants | | --------------- | ---------------------------------------------------------- | ------------------------------------- | | BottomNav | Mobile-style bottom navigation bar. | standard, floating | | Button | Clickable action element with deep press effect. | solid, outline, link | | Card | Content container with headers and heavy borders. | solid, outline | | Checkbox | Pixel-art checkbox with custom checkmark. | - | | DataTable | Data grid with sorting, global/column filters, and paging. | client, server (modes) | | Drawer | Slide-in panel for contextual navigation and actions. | left, right, top, bottom | | Grid | Responsive retro grid system. | columns, minWidth, gap | | Header | Fixed top bar for navigation/branding. | primary, secondary, transparent | | IconButton | Compact icon-only action button. | default, outline, ghost | | Input | Text field with notched corners. | solid, ghost | | Layout | App shell with flexible padding management. | - | | Menu | Context/action menu with keyboard and portal positioning. | - | | Modal | Retro dialog with backdrop and animations. | sm, md, lg | | ProgressBar | Retro health/mana/xp bars with striped animations. | solid, striped | | Radio | Pixel-art radio button. | - | | Screen | Fullscreen retro background with grid/CRT overlays. | - | | Select | Custom dropdown with pixel-perfect menu. | solid, outline, ghost | | Table | Low-level notched table primitives for custom grids. | - | | Tag | Small status/label component (Pills). | solid, outline | | TextArea | Multi-line input with notched corners. | solid, ghost | | Toast | Notifications with mechanical "stepped" entrance. | step, smooth, pop, none | | Typography | <Heading> (8-bit) and <Text> (Terminal) components. | - |

Theming

Customize the look and feel by overriding CSS variables in your index.css:

:root {
  /* Colors */
  --8bit-primary: #ff0055; /* Main Action Color */
  --8bit-secondary: #00bef4; /* Secondary Action */
  --8bit-bg: #f0f0f0; /* App Background */
  --8bit-text: #2d2d2d; /* Text Color */

  /* Fonts */
  --8bit-font-header: 'Press Start 2P', cursive;
  --8bit-font-body: 'VT323', monospace;

  /* Dimensions */
  --8bit-pixel-size: 4px; /* Controls the "chunkiness" of borders */
}