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

webcomp-ui-cli

v0.0.2

Published

CLI tool to install webcomp_ui components

Readme

WebComp UI CLI

A lightweight CLI tool to install and manage Web Components from the webcomp-ui library.
It helps you add individual components to your project and set up framework-specific configurations, making it easy to integrate these components with popular frontend frameworks such as React, Angular, and Vue.


Features

  • Add Web Components to your project in one command
  • Auto-configures framework-specific JSX/TSX types (for React TypeScript)
  • Creates necessary folder structure and import scaffolding
  • Pulls components directly from the remote GitHub repository
  • Framework-aware setup and DX enhancements

Installation

You can use the CLI without installing it globally:

npx webcomp-ui-cli

Or install globally:

npm install -g webcomp-ui-cli

Usage

1. Initialize your project with framework selection

npx webcomp-ui-cli

You'll see an interactive prompt to select your framework:

Select a framework:
> React JavaScript
  React TypeScript
  Angular
  Vue

After selection, a .webcomp-ui.json config file and the src/webcomp/ui.ts scaffold are generated.

2. Add a Web Component

npx webcomp-ui-cli add button
  • Downloads the button component from the GitHub repository
  • Adds it to src/webcomp/button.ts
  • Auto-imports it in src/webcomp/ui.ts
  • Injects React JSX type definitions (if applicable)

3. Import the component

Just import the ui.ts file wherever you bootstrap your app, and all registered components will then be available across your entire application.

import "./webcomp/ui";

4. Use the Web Component.

"Use the Web Component in your code as you would use any HTML element."

<w-button variant="secondary" onclick="handleClick">Button</w-button>

Supported Components

| Component | Tag | Attributes | | --------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Accordion | <w-accordion> | header="Section 1"(used on slotted items as a label) | | Button | <w-button> | variant="default / outline / secondary / danger"width="200px" | | Card | <w-card> | card-title="My Card Title"card-title-color="#303131"card-content="Lorem ipsum dolor sit amet"card-content-color="#303131"card-img-src="https://example.com/image.jpg" | | Input | <w-input> | input-label="Username"input-placeholder="Enter your username"input-width="25rem" | | Spinner | <w-spinner> | (no attributes) | | Textarea | <w-textarea> | input-label="Description"input-placeholder="Write something..."input-width="25rem"rows="4" | | Tooltip | <w-tooltip> | position="top / right / bottom / left" |

More components coming soon!


For React (TypeScript)

If you selected React TypeScript:

  • JSX support is added automatically
  • The ui.ts file declares custom JSX.IntrinsicElements so that your components work out of the box with full IntelliSense

Project Structure

After using the CLI, your project will have:

src/
└── webcomp/
    ├── ui.ts               # Entry point for all web components
    ├── button.ts           # Example: dynamically added component
.webcomp-ui.json            # Framework config

CLI Commands

webcomp-ui-cli             # Launch framework selection UI
webcomp-ui-cli add <name>  # Add a component

Remote Component Source

Components are fetched from:

https://github.com/marceloxhenrique/webcomp-ui/tree/main/src/components/

License

MIT License — built by @marceloxhenrique