zairigimad/ux-haptics
zairigimad/ux-haptics is a Laravel package for adding haptic feedback to your UI. It offers simple Blade/UX helpers to trigger device vibrations on interactions, making buttons, toggles, and navigation feel more tactile and responsive. Ideal for mobile-friendly Laravel apps.
Caveat for the PM: the release notes contain only "Initial Release." There is no documented API surface, browser-support statement, config, or test coverage in what we've seen. Treat every capability claim below as to be verified in a timeboxed spike, not as assessed fact.
Consider it when:
navigator.vibrate() calls across templates.Look elsewhere (or build in-house) when:
prefers-reduced-motion-style user preferences, or an explicit opt-out). Verify this exists; if not, you must implement the opt-out yourself, which erodes the "buy" case.Decision rule: adopt as a timeboxed spike behind an internal interface, not as a direct dependency in production templates. Promote to a real dependency only after the package demonstrates a clear API, documented browser-support posture, and a maintenance signal (issues triaged, tests present).
For executives (30 seconds): A small Laravel package that adds tactile feedback — a short vibration — to mobile web interactions like confirming a payment or flagging a form error. It's a cheap way to test whether "native-feel" polish improves conversion, before we spend on a native app. Cost is a day of engineering, it's reversible, and it can't break the product because it's invisible on devices that don't support it. Recommendation: fund a one-day spike, measure on Android traffic only, decide with data.
For engineering: Initial v1.0.0 release, single maintainer, release notes are literally "Initial Release" — no API docs, no stated browser-support matrix, no evidence of a test suite. It's Laravel-flavored sugar over the browser Vibration API. Proposal: wrap it behind an internal Haptics facade/service with a config flag and a navigator.vibrate feature check, so the package is swappable in an afternoon. Timebox a spike to confirm: (1) what it actually exposes, (2) PHP/Laravel version constraints, (3) silent degradation on iOS Safari, (4) whether an opt-out exists for accessibility. If any of those are missing, we implement ~30 lines ourselves and drop the dependency.
For design/UX: Haptics here are a confirmation channel, not decoration. Reserve them for high-intent moments — success, failure, destructive confirmation — and never as the only signal. Assume a large share of users feel nothing (iOS) and that some users will find vibration unpleasant; an opt-out is required regardless of what the package offers.
Bottom line: Interesting, low-risk, low-cost — but unproven and thinly documented. Worth a bounded experiment; not worth a roadmap commitment until the spike reports back.
How can I help you explore Laravel packages today?