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

@neowhale/ui

v0.1.7

Published

Shared React component library for WhaleTools storefronts

Downloads

272

Readme


Install

npm install @neowhale/ui

Peer dependencies: react >=18, react-dom >=18, framer-motion >=12, @neowhale/storefront >=0.1.0, and optionally next >=14.

Entry Points

| Import | Description | |--------|-------------| | @neowhale/ui | Everything (re-exports all subpaths) | | @neowhale/ui/animation | Scroll reveals, parallax, cursors, magnetic buttons, text effects | | @neowhale/ui/commerce | Cart, checkout, product cards, search, navbar, account | | @neowhale/ui/layout | Provider factory, footer | | @neowhale/ui/utility | Lightbox, lazy video, scroll progress, focus trap | | @neowhale/ui/theme | Theme provider, tokens, dark theme defaults |

Quick Start

import { createProviders } from '@neowhale/ui/layout'
import { ThemeProvider } from '@neowhale/ui/theme'
import { CartDrawer, ProductCard } from '@neowhale/ui/commerce'
import { ScrollReveal } from '@neowhale/ui/animation'

const Providers = createProviders({
  storeId: 'your-store-id',
  apiKey: 'your-api-key',
})

export default function App({ children }) {
  return (
    <Providers>
      <ThemeProvider>
        <CartDrawer />
        {children}
      </ThemeProvider>
    </Providers>
  )
}

Components

Animation

| Component | Description | |-----------|-------------| | ScrollReveal | Intersection-observer animations — fadeUp, fadeIn, scaleIn, blurIn, stagger | | ParallaxSection | Image parallax with configurable speed and overlay | | TextReveal | Word-by-word or line-by-line text reveal on scroll | | MagneticButton | Cursor-attracted button with configurable strength | | CustomCursor | Custom cursor overlay with configurable color and size | | FilmGrain | Film grain texture overlay | | SmoothScroll | Smooth scroll wrapper |

Commerce

| Component | Description | |-----------|-------------| | CartDrawer | Slide-out cart with quantity controls, promo slots, shipping info | | CartButton | Cart icon with item count badge | | AddToCart | Add-to-cart button with product binding | | ProductCard | Product card with image, price, tag | | CheckoutForm | Full checkout flow with address, payment, order creation | | PaymentForm | Standalone payment form (card/cash) | | SearchBar | Product search with keyboard shortcuts | | Navbar | Storefront navigation bar | | StatusBadge | Order/status badge with automatic color mapping | | AccountDashboard | Customer account overview | | OrderHistory | Order list with status tracking |

Layout

| Export | Description | |--------|-------------| | createProviders(config) | Factory — creates a configured Providers wrapper with storefront SDK | | Footer | Storefront footer with sections, social links, legal notice |

Utility

| Export | Description | |--------|-------------| | Lightbox | Image lightbox with keyboard navigation and swipe | | LazyVideo | Lazy-loaded video with poster image fallback | | ScrollProgress | Fixed scroll progress bar | | useFocusTrap(ref, isOpen) | Hook — traps keyboard focus within a container |

Theme

| Export | Description | |--------|-------------| | ThemeProvider | Wraps app with theme context, injects CSS variables | | useTheme() | Hook — returns current ThemeTokens | | defaultDarkTheme | Default dark theme object | | ThemeTokens | TypeScript interface for theme configuration |

interface ThemeTokens {
  background: string
  foreground: string
  surface: string
  accent: string
  muted: string
  border: string
  fontDisplay: string
  fontBody: string
  cursorColor?: string
  grainOpacity?: number
  radius?: string
  shadow?: string
  statusSuccess?: string
  statusWarning?: string
  statusError?: string
}

Tree-Shakeable

All exports support tree-shaking. Import from subpaths to minimize bundle size:

// Only pulls in animation code
import { ScrollReveal } from '@neowhale/ui/animation'

// Only pulls in commerce components
import { ProductCard, CartDrawer } from '@neowhale/ui/commerce'

All components include the "use client" directive for Next.js App Router compatibility.

License

MIT