I would like to experiment with a feature for a website. Suppose there is a frontend script which has interactive features (changing colors of some divs, or changing some text for example). I would like to apply those changes not only locally, but to the content files on the server.
Bonus: I would love these changes to be dynamically fetched, so that each time any user updates the website, it is changed for all active users currently looking at the site.
For the first approach, I could probably impersonate the Kirby user similar to what is described here https://getkirby.com/docs/cookbook/forms/creating-pages-from-frontend
and each time the page is refreshed, the latest changes will be loaded.
The more complicated part would be the dynamic updating of the website. I have heard of https://socket.io/ but never used it. It works with node.js and express. My current take on the idea would be to create a socket app on a different server and embed it on the original website… Maybe somebody has experience with something similar and could help me how to integrate it on a Kirby site?