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

@lenso/ui

v0.11.3

Published

Lenso React components with StyleX and UI SDK interactions.

Readme

@lenso/ui

Components use StyleX and native UI SDK interaction contracts. Forms, selection, floating overlays and notifications import SDK parts directly. Date, time and color families retain their domain value models. Product-specific collection and gesture behavior remains in its owning components.

Use Content for floating surfaces, native controllers for imperative actions, and createToaster with Toast.Region for notifications. Autocomplete edits free text; ComboBox selects options and supports multiple values. Former Base UI Portal/Positioner/Popup compositions and manager APIs are removed.

Controls expose the SDK agent registry through createAgent, agentTools and registerTools from @lenso/ui/agent. Custom product behavior is not implicitly covered by the SDK registry. See migration notes for breaking contracts and the unpatched upstream strict declaration issue.

Import themes and component styles once:

import "@lenso/tokens/styles.css";
import { Button } from "@lenso/ui";

<Button variant="prominent" size="md">
  Save
</Button>;

Components retain native props such as disabled, onClick and render. Date/time/color parts compose native fields, inputs, number fields, sliders, radio groups, buttons and popovers. xstyle is a typed StyleX override; native runtime styles and state-dependent style callbacks remain available.

Components use shared materials and motion. Use data-lenso-backdrop to mark a bounded background for refraction. Switches retain native semantics, drag and keyboard interaction. Consumers using StyleX maps directly can compose buttonStyles.glass and buttonStyles.material; React components apply their own styles.

Package artifacts include THIRD_PARTY_NOTICES.md, including the original Apache and MIT license texts for retained adaptations.

Toolbar button defaults

Toolbar.Button uses native SDK toolbar-button behavior and Lenso toolbar styles. It does not expose the variant prop of Button or GlassButton. Use Toolbar.Group to group related actions:

<Toolbar aria-label="Page actions">
  <Toolbar.Group>
    <Toolbar.Button>Previous</Toolbar.Button>
    <Toolbar.Button>Next</Toolbar.Button>
    <Toolbar.Button>Publish</Toolbar.Button>
  </Toolbar.Group>
</Toolbar>

Shared glass runtime

Glass optics and common motion now come from @lenso/glass. Existing component imports are unchanged; migrated controls use UI SDK interaction contracts and @lenso/tokens retains material recipes. See packages/glass/README.md for direct runtime use and browser limits. Local tarball consumers must include the new package; it is not yet published and requires a separately authorized release.