finds.dev

wire-elements/spotlight

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

View on GitHub

★ 947PHPMITupdated Mar 2026

// the take

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.

We read the README, the directory tree and a key source file in September 2026. Nobody pays to be listed. How we judge →

search the same ground:

// at a glance

Stars
947
Forks
74
Language
PHP
License
MIT
Last commit
31 Mar 2026

// nearby

If spotlight isn't quite it.

All repos →