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-event

v0.3.0

Published

Proto UI module that provides event capability for adapters.

Readme

@proto.ui/module-event

Proto UI module for setup-time Event registration, runtime dispatch planning, scoped binding lifetime, and precise listener removal.

Purpose

The standard runtime projects the author facade as def.event.on, def.event.onGlobal, and token-based def.event.off. Runtime, modules, and privileged hooks consume a separate port for internal listeners, binding, root redirection, default-action requests, and diagnostics.

Adapters provide the host interaction capabilities needed by the registrations a prototype actually declares. With no registrations, Event binding is a no-op and no root or global target is required.

Package Role

Runtime module package with distinct author-facade, privileged-port, and host-capability boundaries. Concrete native event routing remains adapter-owned; the portable contract does not require prototype authors to access DOM EventTarget, window, or native event objects.

Expose Event is implemented by the standalone @proto.ui/module-expose-event package. This package retains deprecated source re-exports of ExposeEventFacade, EXPOSE_EVENT_SINK_CAP, and EVENT_EMIT_CAP for migration, but EventFacade contains only the Event channel surface. Adapter sinks must be wired to expose-event; attaching the sink to event fails with a migration diagnostic.

The machine-governed semantic entity realized by this package is spec/modules/M-EVENT-0001.yaml.

Install

Unpublished release preparation: 0.3.0 has not been published. The command below is an example for use after publication; it is not currently an installable version.

npm install @proto.ui/[email protected]

Internal Structure

  • src/caps.ts
  • src/create.ts
  • src/error.ts
  • src/impl.ts
  • src/index.ts
  • src/kernel.ts
  • src/types.ts

Related Internal Packages

  • @proto.ui/core
  • @proto.ui/module-base
  • @proto.ui/module-expose-event
  • @proto.ui/types

License

MIT