The Invokers Are Coming
The fine folks at Open UI have been working hard on a lot of exciting new proposals to make building web interfaces easier, and my absolute favorite so far has been Invokers.
That’s what invokers are for. And here’s a CodePen showing this off (you’ll need something like Firefox Nightly with a flag switched on—go to about:config for that and search for “invokers”). In this example, an <h1> tag of all things is listening for the invoke event, and when you click the various buttons which point to that heading using invoketarget and invokeaction , stuff happens. It feels positively magical!
Between the zeroJS built-in use-cases and the ones you can write yourself for your custom components, I think it’s obvious that the invokers mechanism—should it eventually roll out to all browsers mostly along these lines—is an absolute game changer for how interactive UI on the web gets built. And yet another nail in the coffin of needing bespoke frameworks & DSLs to accomplish common tasks. I am incredibly, incredibly excited about this!