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

@proto.ui/module-control-label

v0.3.0

Published

Proto UI explicit independent control-label association protocol.

Readme

Control Label

Draft portable association owner for independent labels and opt-in controls.

The App Maker supplies a factory-branded ControlLabelRef through the typed InstanceAssociations input, outside JSON Props. Label naming and activation are independent. Pairing requires exactly one live participant of each kind plus one host accessibility tree scope; missing or duplicate participants fail closed. Targets retain their existing disabled, controlled value, focus and outward event logic.

The opted-in targets are Checkbox, Switch, Radio Group Item, Input, Textarea, Button, Toggle and Toggle Group Item. Each target declares its own participation and keeps its existing operation owners. Icon-only commands use the same independent Label relation; Button emits its ordinary click, Toggle proposes activeChange, and Toggle Group Item requests its Group's existing selection operation. Text editors request focus only. No host-attribute pass-through or new portable label prop is required.

These associations are exercised through the Prototype packages and their Adapters. The old private compiler is retired; the 0.4 compiler foundation does not yet implement any source backend.

The Web provider uses disposable current-view leases and pointer and trusted non-pointer intent interpretation. Eligible click intent is synchronous to preserve the originating user-activation turn. Cancellation is checked at the host listener; a later listener cannot roll back a committed operation. This is a bounded custom intent, not a native HTML label default-action implementation. Shared tree-scope observers cover shadow-tree detachment without one full-document observer per participant. A previously connected view that remains live while physically detached joins one shared animation-frame check per Window, so delayed insertion into an otherwise unknown open or closed ShadowRoot can rebind its scope observer. Reconnection, target replacement and disposal remove that membership; connected and never-connected views are not polled. It never scans all trees, queries for a nearby control, dispatches synthetic clicks, clears selection or stores DOM objects in portable state. Existing A11y owns semantic identity and derived IDREF projection. Unsupported host capabilities remain diagnostic.

See C-CONTROL-LABEL-0001, M-CONTROL-LABEL-0001, HC-CONTROL-LABEL-0001 and T-CONTROL-LABEL-0001. Current tests distinguish owner and synthetic Adapter fixtures from still-pending native-browser/assistive-technology admission. Private-source design families are not automatically published packages.

The Module passes initial activation and current-lease setActivation updates to each host. Native hosts can project an enabled action on the same visible text node; passive naming-only labels have no such action. Neither text styling nor select-none is an authority for activation. Old cleanup cannot revoke a reentrantly installed newer association.