The Blade Prettier Plugin

Beautiful, Consistent Formatting

A fast, opinionated Prettier plugin for Laravel's Blade templating language. Chisel understands Blade, while providing all the things you love about Prettier, such as whitespace sensitivity.

140x faster* opinionated defaults Prettier v3 native works out of the box

Why Chisel

prettier-plugin-blade
got an upgrade

Chisel is the next major version of prettier-plugin-blade, rebuilt from the ground up on Forte's parser. The result is dramatically faster formatting, stable output, improved structural awareness and yes, whitespace sensitivity support.

IMPROVED PERFORMANCE

Chisel v3 is faster than ever

Chisel v3 is a ground-up rewrite, focused on stability, reliability and performance. Chisel v3 performs up to 140x* faster on real-world templates, compared to v2.

ground-up rewrite powered by Forte consistent output

Benchmark Results

Measured against real workloads

16.4s 116ms Chisel v2 Chisel v3

Overall

100+x faster

BLADE FIRST

Chisel gets it

Chisel understands Blade and handles custom directives, components, nested directives, orphaned HTML and much more with precision. HTML and Blade is the focus, but Chisel is also safe in other contexts, like Markdown.

structural awareness directive-safe components

What Chisel Handles

Structural formatting

Custom Directives

smarter

Components

nested too

HTML/JS/CSS/PHP

and more

Nested directives and components are indented correctly

Handles deeply nested structures with confidence

Built on Forte's Blade parser

OPINIONATED

Beautiful output, out of the box

Based on years of feedback, Chisel v3 ships with the defaults that resonate, with the flexibility to fine-tune some behaviors.

consistent output sane HTML indentation ecosystem aware

Formatting Rules

Opinionated by design

Consistent

indentation

Smart

wrapping

Unified

spacing

Intelligent intention-based wrapping

Consistent directive spacing

Sane HTML indentation

Stop debating formatting

Your team has things to build.

* Benchmark methodology

Performance improvements were measured on both Windows and macOS systems, using Filament's table view as a stress test. Performance claims compare prettier-plugin-blade v2 against v3. Windows performance improvements have demonstrated a 212x improvement on complex views, with an overall improvement of 140x. Benchmarks were run with 2 warmup runs and 14 measured runs per plugin per fixture. Fixtures include real-world templates from Laravel and Filament, as well as synthetic stress tests covering interpolations and dense Tailwind attributes. Results may vary depending on template complexity and hardware.

macOS benchmarks done on Apple M1 MacBook Pro running Sequoia 15.5

Windows benchmarks done on AMD Ryzen 9 3900X 12-Core running Windows 11.