PHPackages                             mrshanebarron/command-palette - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mrshanebarron/command-palette

ActiveLibrary

mrshanebarron/command-palette
=============================

Command palette Cmd+K component for Laravel - supports Livewire and Vue

v1.0.9(4mo ago)016MITVuePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

[ Source](https://github.com/mrshanebarron/command-palette)[ Packagist](https://packagist.org/packages/mrshanebarron/command-palette)[ RSS](/packages/mrshanebarron-command-palette/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (11)Used By (0)

Command Palette
===============

[](#command-palette)

A Cmd+K style command palette for Laravel applications. Quick access to actions and navigation. Works with Livewire and Vue 3.

Installation
------------

[](#installation)

```
composer require mrshanebarron/command-palette
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### With Groups

[](#with-groups)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`commands`array`[]`Available commands`placeholder`string`'Type a command...'`Search placeholder`shortcut`string`'k'`Keyboard shortcut keyVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbCommandPalette } from './vendor/sb-command-palette';
app.component('SbCommandPalette', SbCommandPalette);
```

### Basic Usage

[](#basic-usage-1)

```

const commands = [
  { id: 'dashboard', label: 'Go to Dashboard', icon: 'home' },
  { id: 'new-post', label: 'Create New Post', icon: 'plus' },
  { id: 'settings', label: 'Open Settings', icon: 'cog' }
];

const handleCommand = (command) => {
  console.log('Selected:', command);
};

```

### With Groups

[](#with-groups-1)

```

const commands = [
  { group: 'Navigation', id: 'home', label: 'Home', action: '/' },
  { group: 'Navigation', id: 'dashboard', label: 'Dashboard', action: '/dashboard' },
  { group: 'Actions', id: 'new', label: 'Create New...', shortcut: 'N' },
  { group: 'Actions', id: 'search', label: 'Search', shortcut: '/' }
];

```

### With Keyboard Shortcuts

[](#with-keyboard-shortcuts)

```

const commands = [
  { id: 'save', label: 'Save', shortcut: 'Cmd+S' },
  { id: 'undo', label: 'Undo', shortcut: 'Cmd+Z' },
  { id: 'search', label: 'Search', shortcut: '/' }
];

```

### Dynamic Commands

[](#dynamic-commands)

```

import { ref, computed } from 'vue';

const searchQuery = ref('');
const allCommands = [...];

const filteredCommands = computed(() => {
  if (!searchQuery.value) return allCommands;
  return allCommands.filter(cmd =>
    cmd.label.toLowerCase().includes(searchQuery.value.toLowerCase())
  );
});

const handleSearch = (query) => {
  searchQuery.value = query;
};

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`commands`Array`[]`Command list`placeholder`String`'Type a command...'`Input placeholder`shortcut`String`'k'`Trigger key (with Cmd/Ctrl)### Events

[](#events)

EventPayloadDescription`select``command`Command selected`search``query`Search input changed`open`-Palette opened`close`-Palette closedCommand Object
--------------

[](#command-object)

```
{
  id: 'unique-id',       // Required
  label: 'Command Name', // Required
  group: 'Group Name',   // Optional grouping
  icon: 'icon-name',     // Optional icon
  shortcut: 'Cmd+K',     // Optional shortcut display
  action: '/path',       // URL or action identifier
  disabled: false        // Optional disabled state
}
```

Features
--------

[](#features)

- **Cmd+K Trigger**: Opens with keyboard shortcut
- **Search**: Filter commands by typing
- **Groups**: Organize commands by category
- **Shortcuts**: Display keyboard shortcuts
- **Keyboard Navigation**: Arrow keys + Enter

Keyboard Shortcuts
------------------

[](#keyboard-shortcuts)

KeyAction`Cmd/Ctrl+K`Open palette`Escape`Close palette`↑/↓`Navigate items`Enter`Select itemStyling
-------

[](#styling)

Uses Tailwind CSS:

- Centered modal overlay
- Search input at top
- Grouped results
- Highlighted selection

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance74

Regular maintenance activity

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

10

Last Release

149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

### Embed Badge

![Health badge](/badges/mrshanebarron-command-palette/health.svg)

```
[![Health](https://phpackages.com/badges/mrshanebarron-command-palette/health.svg)](https://phpackages.com/packages/mrshanebarron-command-palette)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
