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

@stimulus-plumbers/controllers

v0.3.3

Published

Stimulus controllers following WCAG standards

Downloads

831

Readme

@stimulus-plumbers/controllers

Version CI Coverage

Accessible Stimulus controllers following WCAG 2.1+ standards.

Requirements

  • Node.js >= 18
  • @hotwired/stimulus ^2.0 or ^3.0 (peer dependency)

Installation

npm install @stimulus-plumbers/controllers

Setup

Register the controllers you need with your Stimulus application:

import { Application } from '@hotwired/stimulus'
import {
  InputComboboxController,
  InputFormatterController,
  InputClearableController,
  ComboboxDateController,
  ComboboxTimeController,
  ComboboxDropdownController,
  CalendarMonthController,
  CalendarMonthObserverController,
  ModalController,
  PopoverController,
  DismisserController,
  FlipperController,
  ClipboardController,
  PannerController,
} from '@stimulus-plumbers/controllers'

const application = Application.start()

application.register('input-combobox',           InputComboboxController)
application.register('input-formatter',          InputFormatterController)
application.register('input-clearable',          InputClearableController)
application.register('combobox-date',            ComboboxDateController)
application.register('combobox-time',            ComboboxTimeController)
application.register('combobox-dropdown',        ComboboxDropdownController)
application.register('calendar-month',           CalendarMonthController)
application.register('calendar-month-observer',  CalendarMonthObserverController)
application.register('modal',                    ModalController)
application.register('popover',                  PopoverController)
application.register('dismisser',                DismisserController)
application.register('flipper',                  FlipperController)
application.register('clipboard',                ClipboardController)
application.register('panner',                   PannerController)

Controllers

| Controller | Description | Docs | |-----------|-------------|------| | input-combobox | Wrapper: trigger, popover, hidden value | docs/component/combobox.md | | input-formatter | Formats and displays values | docs/component/combobox.md | | input-clearable | Input with clear button | docs/component/input-clearable.md | | combobox-date | Calendar grid date picker | docs/component/combobox.md | | combobox-time | Drum/scroll-wheel time picker | docs/component/combobox.md | | combobox-dropdown | Listbox with fuzzy filter or server fetch | docs/component/combobox.md | | calendar-month | Calendar grid renderer | docs/component/calendar.md | | calendar-month-observer | Click-to-select handler for calendar grids | docs/component/calendar.md | | modal | Native <dialog> or custom overlay | docs/component/modal.md | | popover | Show/hide content with optional remote load | docs/component/popover.md | | dismisser | Click-outside dismissal | docs/component/dismisser.md | | flipper | Floating element positioning | docs/component/flipper.md | | clipboard | Copy-to-clipboard and paste interception | docs/component/clipboard.md | | panner | Draggable/pannable content area | — |

Method naming convention

Controllers follow a consistent naming pattern:

| Pattern | Parameter | Role | Example | |---------|-----------|------|---------| | x(value) | raw value | Programmatic API — pure logic, callable directly | select('us'), format('4242…'), step(1), filter('query') | | onX(event) | DOM event | Event adapter — extracts payload, calls programmatic API | onSelect(event), onChange(event), onPaste(event), onInput(event), onNavigate(event) | | past() | — | Plumber callback — called by plumber after async operation completes | shown(), dismissed(), flipped(), contentLoaded() |

Wire event adapters via data-action; call programmatic APIs directly from other controllers or outlets.

Development

npm install

npm test              # run all tests (Vitest)
npm run test:ui       # Vitest UI
npm run test:coverage # coverage report
npm run lint          # ESLint
npm run format:write  # Prettier (write)
npm run build         # build dist/

License

MIT © Ryan Chang