livewire/blaze
Blaze is a drop-in replacement for anonymous Blade components, compiling templates into optimized PHP functions and eliminating 91–97% of rendering overhead. Optional memoization and folding deliver even faster repeated renders.
BLAZE_DEBUG=true, browse slow pages, analyze trace data, apply targeted memo/fold) creates a repeatable performance-tuning loop that can be owned by engineering without PM intervention.View::share() auto-injection, view composers/creators, view() rendering, $component) surface concrete refactor candidates — e.g., pass data via props instead of shared views — which can be sequenced into roadmap work.Consider adoption when:
resources/views/components directory or a design system built on anonymous Blade components.<x-...>), which is Blaze's supported path.Look elsewhere or defer when:
app/View/Components) — unsupported without conversion to anonymous components.View::share() variables inside components.view('components.…') or View::make(...) rather than component tags.@aware between Blaze and non-Blaze parents/children.now(), @csrf). Misuse produces subtle, hard-to-diagnose bugs.For executives — the one-liner: Blaze is a free, MIT-licensed Laravel package that makes Blade component rendering dramatically faster with no template rewrites. Benchmarks show 91–97% less rendering overhead, and the safest mode is a drop-in replacement enabled per directory.
Business case:
For engineering — the honest caveats:
$component, view composers/creators, auto-injected shared variables, view()-rendered components, and cross-boundary @aware. These are exclusion/refactor decisions, not blockers for a phased rollout.compile: false, turn on debug tracing, then apply targeted memo/fold only to measured hotspots. This keeps risk low and gains attributable.Ask: Approve a time-boxed pilot — install Blaze, enable compilation on one high-traffic component directory, measure before/after rendering time and error rates, and report back before expanding coverage or enabling advanced strategies.
How can I help you explore Laravel packages today?