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

@xenosystem/elements

v0.0.10

Published

The XENO element contract — declarations, schema, state model. Framework-free, platform-free.

Readme

@xenosystem/elements

The XENO element contract — the source of truth.

Status: 🟡 Phase 1 — schema written, declarations not yet drawn. Not published.

Framework-free, platform-free, zero dependencies. This package is a contract, not a component library — it contains no React, no rendering, and nothing platform-specific. Every renderer on every platform is an interpretation of what is declared here.

What lives here

| | | |---|---| | src/schema.ts | The contract: state axes, signals, transitions, bindings, compatibility | | src/elements/ | Element declarations — the glyphs and composites (Phase 1, in progress) | | src/tokens/ | Design tokens, resolved from DESIGN_SYSTEM.md (Phase 1) |

The two properties to preserve

1. There is no "icon" type. An icon is the degenerate ElementDeclaration — no children, pure geometry. A button is the compound one. They share one schema and one release path, which is what makes "edit one icon" and "edit one button" the identical operation. A refactor that gives icons their own type has thrown away the reason this repo exists.

2. A declaration contains data, never code. No functions, no expressions, no executable animation. Binding is a description a renderer interprets. This is an architectural boundary with a legal edge — see docs/STATE-MODEL.md §4.1.

The state model, briefly

Three orthogonal axes, because a single enum cannot express a disabled toggle that is on:

{ availability: 'enabled' | 'disabled' | 'busy'
  selection:    'off' | 'on' | 'mixed'      // semantic, persists
  interaction:  'idle' | 'engaged' | 'pressed' }  // transient

Plus continuous signals (progress 0…1, activity) and momentary transitions (commit, reject, toggle).

engaged = hover on pointer devices, nothing on touch. Full model: docs/STATE-MODEL.md.

Contract compatibility

checkCompatibility() answers the question behind automatic propagation: may this change reach a shipped product without that product rebuilding?

Refinements pass — redrawn geometry, retuned timings, added variants, new elements. Breaks are refused — a dropped axis, a changed viewBox, a removed element, a renamed id.

It fails closed: anything it does not positively understand is a break. A permissive contract checker is worse than none, because it produces evidence of safety it has not established.

Never barrel the declarations

src/index.ts re-exports the schema — small, tree-shakes cleanly. Element declarations get per-element entry points. A single index importing every element is exactly why lucide-react weighs 2.4 MB, and lucide-react/dynamic collapses to an empty chunk in production.


Part of xeno-elements. Visual authority: DESIGN_SYSTEM.md — LOCKED.