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

@sheaf/rover

v1.0.1

Published

Headless DOM navigation engine for Alpine.js — powers keyboard navigation, search, and activation state for combobox, select, and listbox patterns.

Downloads

189

Readme

Alpine Rover

One directive. Many components. Fully declarative. Zero JavaScript required.

The most powerful and flexible activation engine for Alpine.js. Build comboboxes, selects, autocompletes, command palettes, tag inputs, time pickers and more, fully declarative, keyboard-friendly, and accessible.

The Why

At SheafUI, we kept duplicating activation logic across multiple components: selects, command palettes, autocompletes, tag inputs… Each needed keyboard navigation, search filtering, activation management, and accessibility. This plugin consolidates it all.

In short: Alpine Rover brings the combobox pattern to any component in a clean, declarative way.

Features

  • One Engine, Many Components – A single directive powers all selection patterns.
  • Keyboard Navigation – Arrows, Enter, Escape, Home, End fully supported.
  • Smart Search – Built-in filtering with unicode and accent normalization.
  • WCAG Accessible – ARIA attributes managed automatically.
  • Headless – Style freely with Tailwind or custom CSS.
  • Zero Dependencies – Only requires Alpine.js.
  • Livewire Ready – Works seamlessly with Livewire.
  • Flexible Modes – Single-select, multi-select, tags, autocomplete, command palette, and more.

Combobox Example

<div x-data="selectComponent" x-rover>

    <input x-rover:input placeholder="Search..." />
    <button x-rover:button type="button">▼</button>

    <ul x-rover:options>
        <li x-rover:empty>No results found</li>
        <li x-rover:loading>Searching...</li>

        <template x-for="item in items" :key="item.value">
            <li
                x-rover:option
                x-bind:value="item.value"
                x-bind:data-label="item.label"
                x-text="item.label"
            ></li>
        </template>
    </ul>
    
</div>
Alpine.data('selectComponent', () => ({
    items: [
        { value: 'apple',  label: 'Apple'  },
        { value: 'banana', label: 'Banana' },
        { value: 'cherry', label: 'Cherry' },
    ],
    selected: null,

    init() {
        // keyboard navigation, typing, focus/blur
        this.$rover.input.enableDefaultInputHandlers();

        // hover activation, mouse, keyboard on the list
        this.$rover.options.enableDefaultOptionsHandlers();

        // select on Enter
        this.$rover.input.on('keydown', (e, activeValue) => {
            if (e.key === 'Enter' && activeValue) {
                this.selected = activeValue;
            }
        });

        // select on click
        this.$rover.options.on('click', (e, optionEl) => {
            if (optionEl?.dataset.value) {
                this.selected = optionEl.dataset.value;
            }
        });
    }
}));

What rover handles automatically:

  • Hiding/showing options based on search results
  • Hiding groups with no visible children (x-rover:group)
  • Scroll into view on keyboard navigation
  • Full ARIA attributes (role, aria-activedescendant, aria-controls)
  • Normalized search — accents, unicode, case insensitive

🚧 Development Status

Alpine Rover is actively developed and will reach its first stable release soon.

License

MIT License — see LICENSE.md

Contributing

Contributions are welcome after the first stable release. Your patience is appreciated while the core API stabilizes.

Credits

Part of SheafUI — accessible, headless components for Laravel and Alpine.js. Built by Mohamed Charrafi.

Made with ❤️ for the Laravel community.