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

@webspire/cli

v0.9.2

Published

Add Webspire snippets, patterns, and templates to your project — copy-paste UI for Tailwind v4

Readme

@webspire/cli

Add Webspire snippets, patterns, canvas effects, templates, and motion recipes to your Tailwind v4 project. 3-layer token system for brand customization.

Install

npx @webspire/cli init

Commands

Initialize

webspire init                           # Create webspire.json + CSS directory
webspire init --tokens                  # Generate webspire token + component CSS
webspire init --css-dir ./src/css       # Custom CSS directory

Add Content

webspire add glass/frosted              # CSS snippet by full ID
webspire add frosted                    # By name (auto-resolves)
webspire add animations/fade-in         # Animation snippet
webspire add hero/split                 # UI pattern
webspire add hero/developer             # Developer tool hero with install block

On first add, webspire-tokens.css is automatically created if it doesn't exist. If a snippet declares dependencies, webspire add installs them automatically.

Browse Content

webspire list                           # List snippets by category
webspire list -c glass                  # Filter by category
webspire list --patterns                # List UI patterns
webspire list --patterns -f hero        # Filter by family
webspire list --json                    # JSON output

Content

| Type | Count | Description | |------|-------|-------------| | CSS Snippets | 144 | Effects across 12 categories: glass, animations, scroll, decorative, interactions, text, and more | | UI Patterns | 519+ | Token-based page sections and elements across 170+ families | | Canvas Effects | 3 | Dynamic JS visuals with mountCanvas runtime | | Page Templates | 42 | Complete standalone pages (SaaS, agency, portfolio, shop, company) | | Motion Recipes | 3 | Framework-agnostic animation patterns using GSAP and Motion One |

The CLI always fetches the current registry when run, so you get newly added patterns and snippets without updating the package.

Token System

Patterns use a 3-layer token architecture:

Your Tokens → WebSpire Alias Tokens → Component Tokens → Markup

Setup

webspire init --tokens
# Creates ./src/styles/webspire/webspire-tokens.css
# Creates ./src/styles/webspire/webspire-components.css

Customize

/* Override alias tokens — every Webspire pattern adapts */
:root {
  --ws-color-primary: #2563eb;
  --ws-color-primary-hover: #1d4ed8;
  --ws-color-surface: #fafaf9;
}

/* Override a single component */
.ws-cta {
  --ws-cta-action-bg: #dc2626;
}

How It Works

  1. webspire init creates config + CSS directory
  2. webspire init --tokens generates token CSS files
  3. webspire add <id> fetches from the registry and writes a standalone file
  4. Import the CSS files — no build plugin needed
  5. Override --ws-color-* tokens to match your brand

Docs & visual configurator: https://webspire.de/tokens