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

@eprabhu/modus-wc-cli

v2.2.1

Published

CLI for setting up Modus Web Components in your project

Readme

@eprabhu/modus-wc-cli

CLI for setting up Modus Web Components in your project — one command to install packages, configure styles, set up themes, and add pre-built UI templates and patterns.

Install

npm install -g @eprabhu/modus-wc-cli

Or run without installing:

npx @eprabhu/modus-wc-cli <command>

Quick Start

# 1. Scaffold a new React app (or use an existing one)
npm create vite@latest my-app -- --template react-ts
cd my-app
npm install

# 2. Set up Modus WC
modus-wc init

# 3. Add a template
modus-wc add dashboard-analytics

# 4. Add a pattern
modus-wc add --pattern modal

# 5. Start the dev server
npm run dev

Commands

modus-wc init

Sets up Modus WC in an existing project. Detects your framework automatically from package.json.

modus-wc init

What it does:

  • Detects React, Angular, Vue, or Vanilla JS
  • Installs the correct framework wrapper package
  • Installs Tailwind CSS
  • Creates public/modus-web-components/modus-icons.css (icon fonts)
  • Updates index.html with icon preloads and theme initialization script
  • Injects CSS imports in the correct order
  • Creates src/styles/globals.css with Modus overrides
  • Adds @tailwindcss/vite plugin to vite.config.ts
  • Optionally configures MCP server + Cursor rules for AI-assisted development

modus-wc add [ids...]

Add UI templates or patterns to your project from the bundled registry.

Templates — full-page layouts with shared dependencies (layouts, navbar):

modus-wc add dashboard-analytics          # add one
modus-wc add app-shell calendar-view      # add multiple
modus-wc add --all                        # add all templates

Patterns — self-contained, composable UI components:

modus-wc add --pattern modal              # add one
modus-wc add --pattern modal tabs         # add multiple
modus-wc add --pattern --all             # add all 93 patterns

modus-wc help add

List all available templates:

modus-wc help add

List all available patterns:

modus-wc help add --pattern
Available patterns:

  Layout Patterns
    drag-drop-grid        Dashboard grid with drag-and-drop reorder
    resizable-card        Snap-grid cards with pointer-driven resize
    grid-layout           Responsive grid layout
    masonry               Masonry layout
    ...

  Navigation Patterns
    sidebar-navigation    Sidebar nav with collapsible sections
    breadcrumbs           Breadcrumb trail
    tabs                  Tab bar with panel switching
    accordion             Expandable accordion sections
    pagination            Page navigation controls
    ...

  AI Patterns
    ai-chat-interface     Conversational AI chat UI
    ai-model-selection    Model picker with capability comparison
    ai-smart-suggestions  Inline AI suggestions
    ai-ux-nudge           Subtle AI prompt nudge
    ... (40+ AI/UX patterns)

modus-wc setup mcp

Configure MCP server and Cursor rules for AI-assisted development.

modus-wc setup mcp

Writes:

  • .cursor/mcp.json — registers the Modus Docs MCP server
  • .cursor/rules/modus-wc.mdc — Cursor rules for Modus conventions
  • .cursor/skills/modus-wc/SKILL.md — Cursor skill for component usage

modus-wc info

Show setup status for the current project, including installed templates and patterns.

modus-wc info

modus-wc docs [component]

View component documentation.

modus-wc docs button
modus-wc docs --open    # open Storybook

Templates vs Patterns

| | Templates | Patterns | |---|---|---| | Scope | Full-page layouts | Single composable UI unit | | Shared deps | Layouts, navbar | Self-contained | | Output dir | src/templates/ | src/patterns/ | | Count | 17 | 93 |

Supported Frameworks

| Framework | Package installed | |-----------|------------------| | React 19 | @trimble-oss/moduswebcomponents-react@latest | | Angular 19 | @trimble-oss/moduswebcomponents-angular@latest | | Vue | @trimble-oss/moduswebcomponents-vue@latest | | Vanilla JS | @trimble-oss/moduswebcomponents@latest |

Links