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

@lyra-ds/alpine

v0.6.0

Published

Lyra DS — Alpine.js plugin porting the exact state machines of the interactive @lyra-ds/react components. All appearance comes from @lyra-ds/styles .lyra-* classes; one Alpine.data() per component.

Readme

@lyra-ds/alpine

Alpine.js plugin for Lyra DS — the behavior layer of the CSS-first design system. One Alpine.data() per interactive component, porting the exact state machine of its @lyra-ds/react counterpart: same modifier classes, same ARIA, same inert, same focus/scroll-lock/keyboard handling. All appearance comes from @lyra-ds/styles; this package ships behavior only.

Installation

npm install @lyra-ds/styles @lyra-ds/alpine alpinejs

alpinejs (>= 3.13) is a peer dependency — this package never bundles Alpine.

Usage

// e.g. resources/js/app.js
import Alpine from 'alpinejs';
import lyra from '@lyra-ds/alpine';

Alpine.plugin(lyra);
Alpine.start();

Then use the registered components in your markup:

<div x-data="lyraDropdown({ align: 'end' })" class="lyra-dropdown">
  <button x-bind="trigger">Actions</button>
  <div x-bind="menu" x-cloak>
    <button x-bind="item">Edit</button>
  </div>
</div>

Put x-cloak on initially-hidden parts (like the menu above): bindings only apply once Alpine starts, and without it a server-rendered page flashes the raw markup. Add the standard [x-cloak] { display: none !important; } rule to your CSS.

Initial state is seeded through the x-data arguments (defaultOpen, active, …). Every controllable state is exposed via x-modelable, so x-model — and Livewire's wire:model / $wire.entangle — work with no extra code.

This package is ESM-only: consume it through a bundler (Vite, esbuild, webpack) or a Node version with ESM support. There is no CommonJS build.

Components (wave 1)

| Alpine.data() | Named bindings | Controllable state (x-modelable) | | --------------- | --------------------------------------- | ---------------------------------- | | lyraDropdown | trigger, menu, item | open | | lyraDialog | overlay, panel, title, close | open | | lyraDrawer | overlay, panel, title, close | open | | lyraTabs | list, tab, panel | active | | lyraAccordion | item, trigger, panelWrap, panel | openItems (array) | | lyraTooltip | root, target, bubble | — (parity: React exposes none) | | lyraPopover | trigger, panel | open |

Each component lands with a browser test suite (keyboard, focus, inert, axe) run against the real @lyra-ds/styles CSS.

Compatibility

Every release of @lyra-ds/alpine records which @lyra-ds/styles version it was tested against. The Blade package's README carries the full matrix (blade 0.x ⇄ styles ^0.4 ⇄ alpine 0.x).

| @lyra-ds/alpine | tested against @lyra-ds/styles | | --------------- | ------------------------------ | | 0.1.0 | ^0.4 (validated on 0.4.1) |

License

MIT