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

webable-ui

v0.1.4

Published

Lightweight, accessible UI component library for React.

Readme

webable-ui

Lightweight, accessible UI component library for React + TypeScript (Vite-powered).

This repository contains the source components (in src/components), Storybook stories, and build configuration used to publish the packaged library (webable-ui).

Contents

  • Source components: src/components/*
  • Stories: src/components/*/*.stories.tsx and src/stories
  • Build output: dist/ (published files)

Key scripts (run from repository root)

  • npm install — install dependencies
  • npm run dev — start the dev server (Vite)
  • npm run storybook — run Storybook (component explorer) on port 6006
  • npm run build — build library (tsc -b && vite build)
  • npm run build-storybook — build Storybook static site
  • npm run preview — preview the Vite production build
  • npm run lint — run ESLint

See package.json for full script list and devDependencies.

Quick start (consume the package)

Install from npm (when published):

npm install webable-ui
# or
yarn add webable-ui

Then import webable styles in your React app main.js/index.js:

import "webable-ui/dist/webable-ui.css";

Then import in your React app:

import React from "react";
import { ActionButton } from "webable-ui";

export default function Example() {
 return (
  <div>
   <ActionButton
    variant="primary"
    label="Click me"
    onClick={() => alert("Clicked")}
   />
  </div>
 );
}

Notes:

  • Most components provide both named and default exports (e.g., export function ActionButton and export default ActionButton). You can import either as a named import or default import depending on your bundler configuration.
  • Type definitions are included in the published package (types in package.json points to dist/index.d.ts).

Local development

  1. Clone the repo and install dependencies:
git clone <repo-url>
cd webable
npm install
  1. Start a development site (Vite) while you iterate on components:
npm run dev
  1. Run Storybook to see components and examples:
npm run storybook
  1. Build the library for publishing:
npm run build

If you want to test the built package in a local project, you can npm pack or use npm link from the built output.

Example component usage

ActionButton (JSX examples):

import React from "react";
import { ActionButton } from "webable-ui";

export default function Sample() {
 return (
  <>
   <ActionButton label="Primary" variant="primary" />
   <ActionButton elementType="link" href="/about" label="Go" />
   <ActionButton icon={<svg />} iconPosition="right" label="With icon" />
  </>
 );
}

Other components follow a similar pattern — look in src/components for props and examples in the corresponding *.stories.tsx files.

Publishing

  • The package name is webable-ui (see package.json).
  • npm run build is executed automatically before publish (prepublishOnly runs npm run build).
  • To publish: npm publish --access public (requires npm auth and proper version in package.json).

Contributing

  • Please open issues or PRs on the repository. Follow existing code style and run npm run lint before submitting.
  • Component stories live next to components; add or update stories when adding features or examples.

License

This repository includes a top-level LICENSE file — see that file for licensing details.


File locations to check:

Happy building!