blaze-optimize

Optimizes Blaze-enabled apps by compiling anonymous components.

733|35|Updated Aug 8, 2025
One-click install
npx skills add https://github.com/livewire/blaze --skill blaze-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blaze-optimize
Source: https://github.com/livewire/blaze/tree/main/resources/boost/skills/blaze-optimize
Command: npx skills add https://github.com/livewire/blaze --skill blaze-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines your Laravel application's performance by optimizing how Blade components are rendered, reducing overhead and improving load times.

Core Features & Use Cases

  • Automated Compilation: Replaces standard Blade component rendering with optimized PHP functions.
  • Strategy Configuration: Supports memoization and folding for further performance gains.
  • Use Case: After installing Blaze, use this Skill to automatically optimize all anonymous components within your resources/views/components directory, significantly speeding up your application's view rendering.

Quick Start

Use the blaze-optimize skill to install Blaze and optimize all components in resources/views/components.

Frequently Asked Questions about blaze-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Blade component rendering in Laravel?

Blade component rendering is optimized by replacing standard anonymous components with compiled PHP functions. This Skill automates installing the Blaze package, scanning your codebase for compatibility, and integrating compilation into the AppServiceProvider to speed up view rendering.

What is Blaze for Laravel and how does it improve performance?

Blaze is an optimization package for Laravel that replaces standard Blade component rendering with optimized PHP functions. It reduces rendering overhead and improves application load times by automating component compilation and supporting strategies like memoization and folding.

How do I install and configure Blaze for anonymous Blade components?

To configure Blaze for anonymous Blade components, this Skill automates the livewire/blaze package installation, scans the codebase for compatibility, and integrates Blaze compilation into the AppServiceProvider to optimize components in resources/views/components.

Can I exclude specific files or directories from Blade component optimization?

Blade component optimization supports excluding specific files or directories from the compilation process. This Skill configures Blaze to respect these exclusions while automatically optimizing the remaining anonymous components in your Laravel application.

Does Blaze work with existing Laravel projects and AppServiceProvider setup?

Blaze works with existing Laravel projects by scanning the codebase for compatibility before automatically integrating its compilation logic into the AppServiceProvider. This ensures your current anonymous Blade components are safely optimized without breaking existing functionality.

How do I enable debug mode for tracing Blade optimization performance?

Debug mode for tracing Blade optimization performance can be enabled during the Blaze configuration process. This Skill sets up performance tracing to help you monitor the rendering speed improvements of your compiled anonymous Blade components.