Isn’t Gemini a transport protocol? It can transport binary data and text data. Wouldn’t it be easy to send JavaScript? If there’s a browser on the other end that supports JavaScript, it can be executed.
But setting up even a simple HTTP server is a lot of work.
How so? python3 - m http.server
and you’re done. The text can be read even by CLI browsers that don’t depend on javascript.
Or do you have some other scenario in mind? Does Gemini support SSL?
all hail lynx