For the past couple of months, I've been working on something I'm very excited about and extremely proud of
Something I've been thinking about since the inception of @NativePHP
It's a protocol that lets your server apps securely drive the UI of your client apps so you can easily build apps that mix server-driven, generative UI with bundled, offline-first views and logic
So you can get the flexibility of SSR with the power and performance of fully native UI (and none of the overhead of HTML, CSS and JavaScript)
*without you having to define and maintain your own custom approach* – no API, no client SDKs; just a package on your server and a package in your client
Think of it like Livewire or Inertia, but for apps, not just the web, and fleshed out into a fully documented protocol (hopefully to become an RFC for official review and standardisation at some point)
I'm calling it The Asgard Protocol
https://github.com/nativephp/asgard-protocol
I've built the first reference implementations of it to work in PHP with @laravel and SuperNative (linked in the README), but the protocol is completely language agnostic, which means clients and servers running completely different stacks could speak to each other
The protocol is still in draft and very much open to feedback, comments, improvements and of course implementations in other languages and frameworks
I can't wait to show you the cool things you can do with it!!
GitHubGitHub - NativePHP/asgard-protocol: A protocol for servers to render parts of a native app's UIA protocol for servers to render parts of a native app's UI - NativePHP/asgard-protocol
commit 681e363