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

snake-eater-ui

v0.0.13

Published

Snake Eater UI Component Library

Readme

Snake Eater UI

A dark-themed React component library built with TypeScript and Storybook, featuring a minimalist cyberpunk aesthetic with sharp corners and thin borders. Based off of Steve Lauda design work.

npm version NPM Last Update NPM Downloads license typescript

Features

  • Dark Theme - Optimized for dark mode applications
  • 45+ Components - Comprehensive UI component collection organized by category
  • Edgy Design - Sharp corners and thin borders for a distinctive look
  • Zero Runtime Dependencies - Lightweight and performant
  • TypeScript Support - Full type definitions included
  • Storybook Documentation - Interactive component playground
  • Organized Structure - Components grouped into logical categories

Installation

npm install snake-eater-ui

or

yarn add snake-eater-ui

Usage

import { Button, Card, Alert } from 'snake-eater-ui';
import 'snake-eater-ui/styles'; // Import CSS styles

function App() {
  return (
    <Card>
      <Alert variant="success">Welcome to Snake Eater UI!</Alert>
      <Button variant="primary">Get Started</Button>
    </Card>
  );
}

Components

Data Visualization

  • BarGraph - Bar chart with interactive features
  • DonutGraph - Donut/pie chart visualization
  • HexagonalBinningGraph - Hexagonal binning for density visualization
  • LineGraph - Line chart with multiple series support
  • RidgelineGraph - Ridge plot for distribution visualization
  • SpiderGraph - Radar/spider chart for multidimensional data
  • StreamGraph - Stream graph for temporal data

UI Components

Buttons

  • Button - Primary interactive element with multiple variants
  • IconButton - Compact button for icon-only actions

Data Display

  • Badge - Status indicators and labels
  • Stat - Statistical data presentation
  • Table - Data tables with sorting and selection

Feedback

  • Alert - Contextual feedback messages
  • Loading - Loading indicators
  • Modal - Overlay dialogs
  • Progress - Progress indicators
  • Skeleton - Loading placeholders
  • Toast - Temporary notifications

Forms

  • Checkbox - Multi-selection control
  • ColorPicker - Color selection tool
  • Input - Text input fields
  • PinInput - PIN/OTP input control
  • RadioButton - Single selection control
  • Select - Dropdown selection
  • Slider - Range selection
  • Textarea - Multi-line text input
  • Toggle - On/off switch

Layout

  • Accordion - Collapsible content panels
  • Card - Content containers with decorative corners
  • Divider - Visual separation with multiple styles
  • Drawer - Sliding panel overlays
  • Filter - Filter controls with count badges
  • Grid - CSS Grid layout system
  • SubCard - Nested content containers with accent corners

Navigation

  • Breadcrumb - Navigation hierarchy
  • Link - Text links with hover effects
  • Menu - Dropdown navigation menus
  • Stepper - Multi-step navigation
  • Tabs - Tabbed navigation

Typography

  • Heading - Section headers (h1-h6)
  • KeyboardKey - Keyboard key representation
  • List - Styled lists with custom markers
  • Text - Body text with variants

Design System

Color Palette

--color-bg-base: #0b0b0d; /* Base background */
--color-bg-card: #1f1d20; /* Card background */
--color-bg-elevated: #2a282b; /* Elevated elements */
--color-text-primary: #bdbdbd; /* Primary text */
--color-text-secondary: #8a8a8a; /* Secondary text */
--color-text-muted: #5a5a5a; /* Muted text */

State Colors

--color-danger: #ff5555; /* Error states */
--color-success: #50fa7b; /* Success states */
--color-warning: #f1fa8c; /* Warning states */

Package Contents

The published package includes:

  • Bundled JavaScript (ESM, CJS, and UMD formats)
  • TypeScript declarations
  • Bundled CSS styles
  • Source maps for debugging

Development

Prerequisites

  • Node.js 16+
  • npm 7+

Setup

# Clone the repository
git clone https://github.com/asynchronousx/snake-eater-ui.git
cd snake-eater-ui

# Install dependencies
npm install

# Start Storybook
npm run storybook

Commands

# Development
npm run storybook     # Start Storybook dev server
npm run dev          # Alias for storybook

# Building
npm run build        # Build static Storybook
npm run build-storybook # Alias for build
npm run build:lib    # Build the npm package

# Testing
npm test             # Run all tests
npm test Button      # Run specific component tests

# Code Quality
npm run lint         # Run ESLint with auto-fix
npm run lint:check   # Check linting without fixing
npm run format       # Format code with Prettier
npm run format:check # Check formatting without fixing

Project Structure

snake-eater-ui/
├── .storybook/          # Storybook configuration
├── stories/             # Component library
│   ├── Component.tsx    # Component implementation
│   ├── Component.stories.tsx # Storybook stories
│   └── component.css    # Component styles
├── package.json
└── tsconfig.json

Contributing

Contributions are welcome! Please follow these guidelines:

  1. TypeScript First - All components must be written in TypeScript
  2. Storybook Stories - Every component needs comprehensive stories
  3. Accessibility - Ensure keyboard navigation and ARIA support

License

GPL-3.0

Acknowledgments

Built with: