liberusoftware/theme-support-livewire
Livewire bindings for Liberu's theme support package, helping Laravel apps build dynamic, theme-aware interfaces. Keeps Livewire components in sync with the active theme, so users can switch themes without losing state—ideal for dashboards and settings UIs.
Architecture fit The package is a presentation adapter, not a theme engine. It sits on top of Liberu Theme Support and contributes Livewire components, Blade views, and a service provider that wires theme selection into a Livewire-rendered UI. That is architecturally clean — it keeps switching logic out of the domain layer and matches Laravel's preference for thin, replaceable presentation packages. The fit is good only if the host application already uses Livewire for chrome-level UI (nav, settings, layouts). If the app is Blade-only or Inertia/Vue-driven, this package adds a runtime dependency for a feature that a 30-line controller plus a session key would cover.
Integration feasibility
Mechanically trivial: composer require, auto-discovery, optionally publish config/views, drop the component into the base layout. The real feasibility question is the coupling to the Liberu theme-support core package — the adapter is unlikely to be useful standalone, so adoption is a two-package commitment plus whatever conventions Liberu imposes on module registration. With 0 stars and 0 dependents, there is no public evidence of anyone running this in production, so integration feasibility is "probable but unproven."
Technical risk
wire: directives, component registration). With a single maintainer and no downstream users, an upstream Livewire release can strand this package silently.Key questions
liberusoftware/theme-support, and at what constraint? Can it function against a custom theme resolver?composer.json or merely documented?Stack fit Strong fit for Laravel 10/11/12 + Livewire 3 + Blade + Tailwind shops that already render global chrome through Livewire. Poor fit for API-only services, Inertia/SPA frontends, or apps with an existing theme resolver — in those cases the adapter competes with code you already own and control.
Migration path Do not rip out an existing switcher. Run a parallel spike:
theme-support + this adapter at pinned, verified versions.packages/ from day one — MIT makes this free, and it converts an unmaintained dependency into owned code.Compatibility
Verify against Packagist, not the repo listing: real latest tag, composer.json constraints, and whether the service provider uses boot/register correctly for the target Laravel. Check for view-namespace collisions (theme-support-livewire::) and asset-tag collisions with existing theme CSS. Confirm the Tailwind build picks up the adapter's Blade paths, or theme class names will be purged in production.
Sequencing Dependency verification → sandbox spike → parity diff → flagged integration → persistence and regression tests → full rollout. Budget roughly 2–4 engineer-days for a competent Laravel dev, doubled if a fork is required. Gate the rollout on a documented rollback (feature flag off + restore prior switcher), not on the package behaving.
Maintenance
This is the dominant cost. A 0-star, 0-dependent, single-vendor package with no community means you are the maintenance plan. Assume ownership: pin versions, watch Livewire majors, and be prepared to patch the component in a fork. The code surface is small — that is the one thing in its favor — so fork maintenance is hours per year, not weeks, provided the core theme-support package is stable.
Support MIT, no warranty, no SLA. Upstream support is best-effort GitHub issues at whatever responsiveness a small vendor offers. Escalation paths are effectively internal. Do not place this on a critical path without an internal owner named.
Scaling Runtime cost is negligible — one Livewire component, a session/cookie read, and a CSS swap. The scaling concerns are asset-side: each theme is a CSS payload, so N themes multiply cache variants and CDN keys. Ensure theme CSS is immutable-hashed and served from CDN; avoid per-request asset publishing. Livewire's own request overhead applies to the switch action only, not page loads, so traffic scaling is a non-issue.
Failure modes
theme-support constraint conflict blocks composer update across the app.Ramp-up Low for a Laravel developer — a day to read the adapter, half a day to wire it. The non-obvious cost is learning the surrounding Liberu module conventions and the theme asset pipeline, which is where the undocumented risk concentrates. Plan a short internal write-up after the spike so the fork owner isn't a single point of failure.
How can I help you explore Laravel packages today?