Today I pushed an update that makes insights fully server-side rendered. Before it was just the text of the insight. Now it’s everything! This required me to add some handling to cause a re-render of the insight list iff it changed because of something someone else did.
I’m using the Twinspark library for now. However, the maintainer isn’t all that responsive, and there is zero documentation for the JavaScript API, so I’m tempted to switch to htmx in the near future.
For folks who are curious, you can see the change here: https://fossil.calmabiding.me/coffeetime/info/b43f96ceab09292f
I continue to ponder whether it is worth it to maintain end-to-end encryption for chat messages. However, it is possible to convert much of the chat functionality to server-side rendering. I’m just not quite ready to think about it yet!