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 🙏

© 2024 – Pkg Stats / Ryan Hefner

gopx-webui

v1.0.7

Published

CLI tool for installing GOPX WEBUI Components.

Downloads

25

Readme

gopx-webui CLI

Use the CLI to add GOPX WEBUI components to your project.

Options

Usage: gopx-webui [options] [command]

add components and dependencies to your project

Options:
  -v, --version                  display the version number
  -h, --help                     display help for command

Commands:
  init [options]                 Initialize your project with shadcn-ui config & gopx-webui
  add [options] [components...]  Add ui components to your project
  diff [options] [component]     Check for updates against the registry
  help [command]                 display help for command

init

Use the init command to initialize configuration and dependencies for a new project.

The init command installs dependencies, adds the cn util, configures tailwind.config.js, and CSS variables for the project.

npx gopx-webui@latest init

You will be asked a few questions to configure components.json:

Which style would you like to use? › Default
Which color would you like to use as base color? › Slate
Would you like to use CSS variables for colors? … no / yes

shadcn-ui project?

If your project is already using the shadcn-ui, don't worry! You can still use gopx-webui.

Just add these line(s) to your components.json file:

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "default",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "app/globals.css",
    "baseColor": "slate",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui"
  }
}

Options

Usage: gopx-webui init [options]

Initialize your project with shadcn-ui config & gopx-webui

Options:
  -y, --yes        skip confirmation prompt. (default: false)
  -d, --defaults,  use default configuration. (default: false)
  -c, --cwd <cwd>  the working directory. defaults to the current directory.
  -h, --help       display help for command

add

Use the add command to add components to your project.

The add command adds a component to your project and installs all required dependencies.

npx gopx-webui add [component]

Usage

npx gopx-webui add bento-grid

You can use the optional --all flag to install all components:

npx gopx-webui add --all

You can use the optional --example flag to select and install example & demo you saw on website:

npx gopx-webui add --example

You will be presented with a list of components to choose from:

? Which components would you like to add? › Space to select. A to toggle all. Enter to submit.
◯   avatar-stack-demo
◯   copyable-input-demo
◯   ghost-label-demo
◯   gopx-accordion-demo
◯   gopx-dropdown-demo
◯   image-tooltip-demo
◯   infinite-carousel-demo
◯   text-tooltip-demo
◯   torsional-link-demo

You can use the optional --block flag to select and install blocks you saw on website:

npx gopx-webui add --block

You will be presented with a list of components to choose from:

? Which components would you like to add? › Space to select. A to toggle all. Enter to submit.
◯   gopx-faqs
◯   gopx-hero
◯   gopx-pricing

You can also run the command without any arguments to view a list of all available components:

npx gopx-webui add

You will be presented with a list of components to choose from:

? Which components would you like to add? › Space to select. A to toggle all. Enter to submit.
◯   accordion
◯   avatar-stack
◯   bento-grid
◯   bg-bricks
◯   bg-check
◯   bg-cross
◯   bg-dots
◯   bg-grid
◯   bg-matrix
◯ ↓ bg-nosignal

Options

Usage: gopx-webui add [options] [components...]

Add ui components to your project

Arguments:
  components         the components to add

Options:
  -y, --yes          skip confirmation prompt. (default: true)
  -o, --overwrite    overwrite existing files. (default: false)
  -c, --cwd <cwd>    the working directory. defaults to the current directory.
  -a, --all          add all available components (default: false)
  -e, --example      include available examples & demos (default: false)
  -b, --block        include available blocks (default: false)
  -s, --shadcn       include available components from shadcn-ui (default: false)
  -p, --path <path>  the path to add the component to.
  -h, --help         display help for command

diff (experimental)

You can use the diff command to check for updates against the registry.

Run the following command to get a list of components that have updates available:

npx gopx-webui diff
The following components have updates available:
- alert
  - /path/to/my-app/components/ui/alert.tsx
- button
  - /path/to/my-app/components/ui/button.tsx
- toast
  - /path/to/my-app/components/ui/use-toast.ts
  - /path/to/my-app/components/ui/toaster.tsx

Then run diff [component] to see the changes:

const alertVariants = cva(
- "relative w-full rounded-lg border",
+ "relative w-full pl-12 rounded-lg border"
)

Options

Usage: gopx-webui diff [options] [component]

Check for updates against the registry

Arguments:
  component        the component name

Options:
  -y, --yes        skip confirmation prompt. (default: false)
  -c, --cwd <cwd>  the working directory. defaults to the current directory.
  -h, --help       display help for command