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

swigg

v0.2.8

Published

>

Readme

Swigg Component Library

A modern React component library built with styled-components

NPM JavaScript Style Guide

Installation

npm install --save swigg

Components

Button

A flexible button component with hover effects and customizable styles.

import { Button } from 'swigg'

const Example = () => (
  <Button
    bgOverlay="#7162e8"
    customStyles="max-width: 200px;"
    onClick={() => console.log('clicked')}
  >
    Click Me
  </Button>
)

MainNav

A responsive navigation component with mobile support and sticky positioning.

import { MainNav } from 'swigg'

const Example = () => (
  <MainNav
    bg="#f8f8f8"
    fontColor="slateblue"
    breakPoint="900px"
    isSticky={true}
    logo={{
      url: '/logo.png',
      alt: "Company Logo"
    }}
  >
    <ul>
      <li><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
  </MainNav>
)

AutoGrid

A responsive grid layout that automatically adjusts columns based on container width.

import { AutoGrid } from 'swigg'

const Example = () => (
  <AutoGrid
    bg="#f5f5f5"
    minWidth="250px"
    spacing="25px"
    padding="25px"
  >
    {/* Grid items */}
    <div>Item 1</div>
    <div>Item 2</div>
    <div>Item 3</div>
  </AutoGrid>
)

Gallery

A responsive image gallery with optional click callbacks.

import { Gallery } from 'swigg'

const Example = () => (
  <Gallery
    bg="#fcfcfc"
    padding="45px"
    spacing="25px"
    colSize="350px"
    items={[
      {
        image: "/image1.jpg",
        clickCallback: () => console.log('Image 1 clicked')
      },
      {
        image: "/image2.jpg"
      }
    ]}
  />
)

Skeleton

Loading placeholder components with shimmer effect.

import { Skeleton, ProductSkeleton, CardSkeleton } from 'swigg'

// Basic skeleton
const LoadingText = () => (
  <Skeleton
    width="200px"
    height="20px"
    borderRadius="4px"
  />
)

// Pre-built product card skeleton
const LoadingProduct = () => (
  <ProductSkeleton
    width="300px"
    padding="20px"
  />
)

// Pre-built card skeleton
const LoadingCard = () => (
  <CardSkeleton
    width="300px"
    padding="20px"
  />
)

Available skeleton templates:

  • ProductSkeleton
  • CardSkeleton
  • BlogPostSkeleton
  • CartItemSkeleton
  • ProfileSkeleton

Props

Button Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | bgOverlay | string | '#7162e8' | Background color | | customStyles | string | '' | Additional CSS styles | | children | node | required | Button content | | onClick | function | undefined | Click handler |

MainNav Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | bg | string | '#fff' | Background color | | fontColor | string | '#333' | Text color | | breakPoint | string | '800px' | Mobile breakpoint | | isSticky | boolean | false | Enable sticky positioning | | logo | object | required | Logo configuration |

AutoGrid Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | minWidth | string | '350px' | Minimum column width | | spacing | string | '25px' | Gap between items | | padding | string | '25px' | Grid padding | | bg | string | 'white' | Background color | | customStyles | string | '' | Additional CSS styles |

Skeleton Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | width | string | '100%' | Element width | | height | string | '20px' | Element height | | borderRadius | string | '4px' | Border radius | | margin | string | '0' | Margin | | baseColor | string | '#eeeeee' | Base color | | highlightColor | string | '#f5f5f5' | Shimmer color | | circle | boolean | false | Circular shape | | customStyles | string | '' | Additional CSS styles |

License

MIT © raymondware

Setup

Wrap your app with the ThemeProvider: