Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Spotlight Laravel Package

wire-elements/spotlight

Livewire Spotlight brings Alfred/Spotlight-style search and command palette to Laravel. Install via Composer, add the @livewire('livewire-ui-spotlight') directive, and open with customizable shortcuts (Ctrl/Cmd+K, Ctrl/Cmd+/) or toggle via events.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enhancing User Experience (UX) for Power Users:

    • Implement a Spotlight/Alfred-like search to reduce friction for frequent actions (e.g., navigation, settings, or workflows) in Laravel-based admin dashboards or SaaS platforms.
    • Aligns with productivity-focused roadmaps (e.g., "Reduce time-to-action for power users by 30%").
  • Build vs. Buy Decision:

    • Buy: Avoid reinventing a complex search/modal system from scratch. This package provides a pre-built, extensible solution with Livewire integration, reducing dev time by ~80%.
    • Custom Build: Only consider if Spotlight requires highly specialized UI/UX (e.g., voice integration, custom animations) or offline-first functionality.
  • Key Use Cases:

    • Admin Panels: Replace dropdown menus with searchable commands (e.g., "Create User," "View Reports").
    • SaaS Platforms: Enable quick access to settings, billing, or support (e.g., "Update Subscription," "Contact Support").
    • Internal Tools: Accelerate workflows for employees (e.g., "Generate Invoice," "Reset Password").
    • E-Commerce: Streamline order management (e.g., "Search Order #12345," "Refund Transaction").
  • Roadmap Prioritization:

    • Phase 1: Integrate core commands (e.g., auth, navigation) to reduce onboarding time.
    • Phase 2: Extend with dynamic commands (e.g., user-specific actions) via shouldBeShown().
    • Phase 3: Add multi-step workflows (e.g., "Create User → Assign Role → Send Welcome Email") using dependencies.
  • Monetization/Feature Flags:

    • Use shouldBeShown() to gate commands by user roles (e.g., hide "Delete Account" for free-tier users).
    • A/B test shortcut visibility (e.g., show CMD+K only to power users via feature flags).

When to Consider This Package

Adopt This Package If:

  • Your Laravel app uses Livewire (v2 or v3) and you want to leverage its reactivity for Spotlight.
  • You need a lightweight, keyboard-driven interface to reduce mouse clicks (ideal for dashboards).
  • Your team lacks bandwidth to build a custom search/modal system from scratch.
  • You want extensibility (e.g., add commands dynamically, support dependencies like the example above).
  • Your users perform repetitive actions (e.g., navigating between pages, triggering workflows).

Look Elsewhere If:

  • You’re not using Livewire: This package is tightly coupled with Livewire. For non-Livewire apps, consider:
    • Alpine.js + Custom JS: For lightweight search modals.
    • Telescope.js or Fuse.js: For standalone search functionality.
  • You need offline support: Spotlight relies on server-side command resolution.
  • Your design system requires deep customization (e.g., non-Tailwind CSS, unique animations).
  • You’re building a public-facing app where SEO is critical (Spotlight is client-side only).
  • Your use case involves complex voice commands or NLP (consider integrating with a dedicated service like Dialogflow).

How to Pitch It (Stakeholders)

For Executives (Business Leaders):

*"Spotlight is a productivity multiplier for our power users. By implementing this Laravel package, we can:

  • Cut navigation time by 50% for admins/SaaS users, directly improving retention and satisfaction.
  • Reduce support tickets by surfacing self-service actions (e.g., 'Reset Password' via CMD+K).
  • Accelerate feature adoption: Users can discover and use advanced features faster (e.g., 'Create Report' without clicking through menus).
  • Low-risk, high-reward: Built on Livewire (already in our stack), with minimal dev effort. We can pilot it in one module (e.g., admin panel) before scaling."*

Ask:

  • "Which user segments would benefit most from faster workflows?"
  • "Are there any high-impact actions we can surface via Spotlight to drive [KPI]?"

For Engineering (Tech Leads/Devs):

*"This package gives us a pre-built, Livewire-native Spotlight search with:

  • Zero backend changes needed for basic commands (just register classes).
  • Dependency support: Build multi-step workflows (e.g., 'Create User → Assign Role') without reinventing the wheel.
  • Conditional logic: Hide/show commands based on user roles/permissions (e.g., shouldBeShown()).
  • Tailwind-compatible: Minimal CSS/JS overhead if we’re already using Tailwind.

Implementation Plan:

  1. Week 1: Integrate core commands (auth, navigation) using the @livewire directive.
  2. Week 2: Add 3–5 custom commands (e.g., 'Generate Invoice,' 'Search Orders').
  3. Week 3: Extend with dependencies for complex workflows (e.g., 'Create Project → Add Team Members').*

Trade-offs:

  • Pros: 80% faster than building from scratch; leverages Livewire’s reactivity.
  • Cons: Limited to Livewire apps; requires Alpine.js for Livewire v2."*

Ask:

  • "Should we prioritize this for [Module X] first, or start with a shared component?"
  • "Are there any Livewire-specific constraints we should test early (e.g., performance with 100+ commands)?"

For Design (UX/UI Teams):

*"Spotlight will overlay a search bar (like macOS Spotlight or VS Code’s CMD+P). Key considerations:

  • Default UI: Uses Tailwind, so it’ll blend with our design system if we’re using Tailwind.
  • Customization: We can publish the views to override the modal’s look/feel.
  • Keyboard-first: Focus on discoverability of shortcuts (e.g., tooltips, onboarding).

Recommendations:

  1. Test shortcuts: CMD+K vs. CMD+/ for our target audience.
  2. Prioritize commands: Start with actions users perform daily (e.g., 'View Profile,' 'New Ticket').*
  3. Accessibility: Ensure the modal is keyboard-navigable and screen-reader-friendly."*

Ask:

  • "What’s our top 5 list of ‘must-have’ commands for [User Persona]?"
  • "Should we add a ‘?’ button to show a list of available shortcuts?"
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime