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-axis-input

v0.3.0

Published

Experimental normalized axis input for host-mediated controls.

Readme

Experimental normalized axis input

This Finf development slice converts a bounded Move Gesture into dimensionless logical input. It is WIP pending independent consumer/catalog admission, not a stable Move, Drag and Drop, native, or compiler guarantee.

Use asAxisInput() on the anatomy input part. During setup, call configure({ anatomy, inputRole, geometryRole }) and on((run, sample) => ...). During a lifecycle/props callback, call sync({ axis, direction, disabled, readOnly, reverse }). It starts disabled until explicitly enabled. The geometry part is either the input itself or its nearest same-family ancestor, never an unrelated matching role.

Samples contain only phase, normalized position in [0, 1], and signed delta/totalDelta fractions of the geometry span captured at start. Deltas are not clamped; a contact can travel farther than one span. Horizontal RTL reverses the logical direction; vertical increases downwards. reverse adds an independent reversal. Cancellation contains only phase: 'cancel' and reason.

The domain consumer owns quantization, value limits, resize limits, carousel thresholds, commit/rollback and accessibility. Keyboard input should call the same logical requests. No DOM objects, contacts, timestamps or pixel measurements enter Props, State or ProtoEventPayload.

The Web host reuses Move Gesture, validates nonzero finite geometry, observes geometry detach, rejects disabled/read-only input, and cancels on replacement or changed configuration. A fixed start-time span prevents resizing a root during dragging from changing the delta unit. Missing host capability stays inert. React, Vue, Vue2 and Web Component adapters are wired; synthetic geometry integration tests exercise their actual runtime callback path. Native, GPUI, Flutter and compiler input providers are not implemented here.

Optional contact-basis interruption

sync({ contactBasis: 'cancel-on-extent-change' }) opts into cancellation when the finite positive physical axis span differs exactly from the accepted start span. The default is preserve-start; a partial sync omitting the field or passing undefined retains the current policy. Reset explicitly to preserve-start. Invalid policy values are rejected without changing configuration.

The host checks at active-contact rendering cadence and before every move/end. Translation with unchanged span stays live; scale and layout changes that alter span cancel with basis-changed. Missing frame observation refuses the opt-in contact before start. End, cancellation, replacement and disposal release frame work and capture; no idle sampling remains. The prototype owns any preview rollback, controlled-state refusal and commit policy.

This bounded extension does not expose geometry or implement auto-sized Drawer behavior. Root-text metrics and safe-region changes that leave the physical span unchanged have no dependency signal here. Compiler and non-Web realization remain separately unverified; four Web-runtime tests use synthetic geometry, not native layout evidence. See C-AXIS-INPUT-CONTACT-BASIS-0001 and T-AXIS-INPUT-CONTACT-BASIS-0001.

Authored part origin

configure({ anatomy, inputRole, geometryRole, originRole }) opts into the draft C-AXIS-INPUT-ORIGIN-0001 observation. One input/capture owner receives originIndex on start/move/end: an index into that role's current public Anatomy order, or null for a direct background hit. The closest matching part on the original input path wins. Capture retargeting never changes that origin. Membership, order, target or logical-owner changes retire the contact; absent or invalid opted-in facts fail closed. No raw target or pointer ID reaches a consumer.

Slider Values uses this generic fact to distinguish direct Track seek from an off-center Thumb grab. Slot mapping, numeric rounding, collision, focus, controlled acceptance and completion remain prototype behavior. This does not imply Compiler or non-Web support.