finds.dev← search

// the find

wire-elements/spotlight

★ 947 · PHP · MIT · updated Mar 2026

Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.

A Livewire component that adds a Spotlight/Alfred-style command palette to Laravel apps, letting users trigger a `CTRL+K` search bar to run app-specific commands. It's aimed at Laravel developers who already use Livewire and want a quick-action UI without hand-rolling the keyboard shortcuts, fuzzy search, and modal plumbing themselves.

The command dependency system is the standout piece — commands can declare typed, chained dependencies (e.g. pick a team, then search users within that team) with per-step `search{Name}` resolution methods, which is a genuinely useful pattern for multi-step actions. Commands are resolved through Laravel's container, so `execute()` and `shouldBeShown()` can type-hint any service or the current request/user, keeping authorization logic (`$request->user()->can(...)`) out of the component itself. Synonym support on commands is a small but practical touch for search UX that a lot of similar packages skip.

It's hard-coupled to Livewire and Alpine — there's no headless/JS-only mode, so anything outside a Livewire app is a non-starter, and the Livewire v2 vs v3 event API split (`dispatchBrowserEvent` vs `dispatch`) is left for the user to figure out per version. Search itself is just `fuse.js` doing client-side fuzzy matching on whatever the `search{Dependency}` methods return, so it doesn't scale past small, mostly-static command sets — there's no debounce/pagination story described for large result sets. The README shows CSS toggle options but doesn't mention accessibility (focus trapping, ARIA roles for the palette/listbox), which matters for a keyboard-driven UI like this. Last push is 2026-03-31 with the repo otherwise looking fairly stable/low-churn, so check open issues before assuming active maintenance if you hit an edge case.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →