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

v0.3.0

Published

Proto UI module that provides anatomy capability for adapters.

Readme

@proto.ui/module-anatomy

Proto UI module that provides anatomy capability for adapters.

Purpose

Owns family role claims, nearest-root domains, Expose-backed part views, diagnostics and host order. It consumes static Core family declarations and depends on Expose.

The bounded catalog is M-ANATOMY-0001, with logical structure facts, private host order observation, and T-ANATOMY-0004. These entities remain draft.

claim and subscribeParts registration are setup-only. The unsubscribe function returned to an author is also setup-only. Queries are runtime reads; public PartView never exposes host targets.

An exposed method read through a PartView runs in the target part's callback scope. Its synchronous return or thrown value reaches the caller unchanged, including undefined, null, and other falsy values.

Claims and subscription declarations survive repeatable view detach/remount; host observers stop while detached. Terminal disposal removes owner claims and releases listeners. Internal domain and target ports serve downstream modules without becoming author APIs.

After updating logical ancestry, the Web Component Adapter calls the internal AnatomyPort.syncStructure() ingress. Retained membership subscriptions reconcile independently of view mounting; this does not restart detached host-order observers or add an author API or Host Capability.

On reconnect, the Web Component Adapter recomputes its inferred logical parent, including moves outside all Proto ancestors. If syncStructure() rejects a reused owner's structural admission, the Adapter restores the previously accepted logical binding and reconciles membership before propagating the original error. A failure of that restoration is reported together with the admission error. This is not a transaction for author-owned DOM moves; other Adapters' explicit logical ancestry remains unchanged.

Family derivation, non-hook requirements and ordinary author missing-query policy remain outside this slice. Anatomy does not own A11y relationship semantics, collection interaction policy or host materialization.

Package Role

Adapter-facing module package used by the Proto UI runtime and adapter layer.

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/types.ts
  • src/web/

Related Internal Packages

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

License

MIT