If you are interested I can take the time to publish a draft of a profile which you could use as starting point, and IMO it's better and easily than other solution that I could have tested. Basically it use a modified version of InertiaAdapter made by @clsource and let you code your app inside ProcessWire's template and using pages for everything fetched dynamicaly and internally, as JSON.
You can see it "in action" in this example url: https://blog.sekretservices.com/
(Do not take care of the issue while refreshing the blog post due to hanna codes, it's an old version)
For example, from your template you build the page properties as a simple PHP array, let's say I want to fetch the title of the page:
$component = "Home/BlogPost";
$properties = [ // accessible from app components with $page.props
'name' => $page->name,
'title' => $page->title,
'subtitle' => $page->subtitle,
'content' => $page->body,
'author' => ucFirst($page->createdUser->fullname[0])."."." ".ucFirst($page->createdUser->surname),
'date_created' => $page->created,
'date_relative' => $datetime->relativeTimeStr($page->created)
];
Then from a component BlogPost.`{svelte, vue, react}` (or whatever) you can simply retrieve the page's props like:
(Svelte example)
<script>
import {inertia, page} from '@inertiajs/inertia-svelte';
export const { title:title, body:body } = $page.props
</script>
<div class="blog-post">
<h1 class="font-sans mt-8 text-center font-bold">{@html title}</h1>
<div>{@html body}</div>
</div>
Look at this sample, at the page's tree and the routes prop from the console :
About the workflow, it's not really different from what you should be used to. You write your logic in template in PHP then write some HTML/JS in your component.
Also, hot module replacement (HMR) is working ?
A word about server side rendering (called SSR and which is needed to get best SEO results), it's working for React and VUE, still a WIP for Svelte ?
Get a note of ?on every lighthouse performance.
Bundled with ViteJS, powered by ProcessWire, I am glad to say that it's the best stack I have ever built and used ??
Edit:
A small note, but the better one. You don't have to build your app again on every change on the backend, I mean for example when you add a new page, it's work out-of-the-box, you create and page, and it's available to your JS components.
Edit2:
To understand better, here we can achieve what you already used/saw with Laravel. Having a `src` folder with the JS things, another folder with the Laravel `app` and running artisan and some npm command.
Here, in dev mode, you run `yarn dev` and you are ready. Simple as that.