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

@tower_74/cms-ui

v0.31.0

Published

Shared Vue 3 component & widget library for the Base CMS.

Downloads

6,205

Readme

@tower_74/cms-ui

Shared Vue 3 component & widget library for the Base CMS — developed and documented in Storybook, consumed by every client site as a versioned package. See base-cms ADR-0007 and §10 component inventory.

Status: v0.4.0 — primitives, form/data widgets, content blocks (incl. data-driven PostList) + page templates. Build whole pages in Storybook under Pages/Landing / Pages/Detail.

Requirements

Node ≥ 18 (repo pins Node 22 via .nvmrc; run nvm use). Vue ^3.4 (peer dependency).

Develop

nvm use
npm install
npm run storybook     # http://localhost:6006 — component catalog
npm run lint          # ESLint (--fix)
npm test              # Vitest
npm run build         # build the library into dist/

Use in an app

  1. Install from the private registry: npm install @tower_74/cms-ui
  2. Import the design tokens once (e.g. in your CSS entry): @tower_74/cms-ui/tokens.css
  3. Add the Tailwind preset and include the package in content:
    // tailwind.config.js
    module.exports = {
      presets: [require('@tower_74/cms-ui/tailwind-preset')],
      content: [
        './node_modules/@tower_74/cms-ui/dist/**/*.{js,cjs}',
        // ...your app paths
      ],
    };
  4. Use components:
    <script setup>
    import { Button, Card } from '@tower_74/cms-ui';
    </script>
    <template>
      <Card title="Hello"><Button>Click</Button></Card>
    </template>

Components are theme-only via CSS variables — override the tokens (per site) to re-skin everything with no rebuild.

Local cross-development with a site (yalc)

# in cms-ui
npm run build && yalc publish        # then `yalc push` on each change
# in the consuming site
yalc add @tower_74/cms-ui

Publish

npm version <patch|minor|major>
npm publish        # runs the build via prepublishOnly

Components

Primitives | Component | Notes | |---|---| | Button | variants: primary / secondary / danger / ghost; sizes sm/md/lg | | Badge | neutral / success / warning / danger / info | | Card | title + header / default / footer slots | | Input | v-model, invalid state | | Textarea | v-model, rows, invalid | | Select | v-model, options: {label,value}[], invalid | | Checkbox | v-model (boolean), label |

Widgets | Component | Notes | |---|---| | FormField | label + required + help/error wrapper around any control | | FormBuilder | schema-driven form: fields[] + v-model + errors; text/textarea/select/checkbox/number | | DataTable | columns[] + rows[]; per-column #cell-<key> slots; empty state |

Blocks (data-driven, themeable page sections) | Component | Notes | |---|---| | Section / Container | layout primitives (padding/background; max-width) | | Hero, PageHeader | page intros | | RichText | renders editor HTML | | FeatureGrid, Stats, LogoCloud, Testimonial, FAQ | marketing sections | | PostList | grid of post cards (data-driven; fed by a server data provider) | | ImageWithText, Gallery, CallToAction | content sections | | BlockRenderer | renders a blocks: { type, data }[] array via blockRegistry |

Page templatesLandingPageTemplate, DetailPageTemplate (compose blocks; demoed under Pages/ in Storybook with the blocks array editable in the Controls panel).

Commerce (Tailwind UI ecommerce patterns, themed via tokens; data-driven, events-out) | Component | Notes | |---|---| | ProductCard / ProductGrid | catalog grid of product cards | | ProductOverview | product detail with variant picker; emits add-to-cart { variantId, quantity } | | CartLineItem | cart row; emits update:quantity and remove | | CartSummary | totals (subtotal/discount/shipping/tax/total) + actions slot |

Conventions

  • Vue 3 <script setup> + typed props/emits; data via props (SSR-safe, Storybook-mockable).
  • No hard-coded colors — read tokens via the Tailwind preset.
  • Every component ships a *.stories.ts; a11y checked via the Storybook a11y addon.