John Koster
johnmkoster.bsky.social
John Koster
@johnmkoster.bsky.social
Doing things with Laravel and Statamic
A fun look at something I've been chipping away at: leveling up the View Scaffolding feature in #statamic

It generates templates, taking your blueprints and field configuration into consideration!
October 26, 2025 at 10:29 PM
This is one of my favorite things: being able to pause/resume wire:polls.
September 28, 2025 at 11:12 PM
An inspector panel also provides an overview of all detected Alpine and Livewire attributes:
September 28, 2025 at 11:12 PM
The tool also supports bi-directional state management for Alpine and Livewire. Switch between component states, and even edit the state in arbitrary ways (fun to see what breaks if you throw in unexpected values haha)
September 28, 2025 at 11:12 PM
The tool opens in a new tab or window - this way I don't have to worry about adding too much stuff to the DOM, or modals covering the debug tool. Here is a demo of it being able to detect regular Blade components, and pull up the source for them directly in the tool:
September 28, 2025 at 11:12 PM
Implemented another built-in transformer. This one tidies passed values to certain directives, smoothing out a few papercuts 💅
August 30, 2025 at 11:43 PM
And another quick example - Forte can also be used to make existing Blade features play nice together.

This example demonstrates using it to allow the PHP directive with arguments, and the block-style to exist in the same file:
August 30, 2025 at 7:06 PM
Here's a small preview of the Forte feature I'm currently working on: Enclaves.

In this demo, I'm using them to add support for server-side conditional elements and loops.
August 30, 2025 at 5:56 PM
The next obvious thing to experiment with was relative performance data - visually see where the time is going!
August 29, 2025 at 1:44 AM
I built a thing that lets you peek into the #laravel Blade that was used to render a page. It tracks component hierarchy, includes, etc. - works with Blade components, Flux, etc.

All without runtime overhead! Might continue this experiment in the future
August 28, 2025 at 10:23 PM
Another experiment testing out node swapping - I'm collecting a rather large amount of these experiments 😅
August 27, 2025 at 12:05 AM
Another random experiment to make sure the AST produced by Forte is useful.

This one was really fun to make!
August 26, 2025 at 10:27 PM
Chipping away at Forte's Blade AST infrastructure.

It's adding the Blade directives/rewriting some HTML before handing it off to Laravel's compiler.

Not saying you should do this... but you could lol
August 23, 2025 at 9:15 PM