I've done this simple site using emscripten
The main.wasm file is a binary fail supoported by every browser.
The js file is not an instruction script trying to recreate C, it has a particular structure for understanding that WASM code.
This way we can get a website coding it only in C.
For running the site you can just run a http.server using any service. Python can be used:
python3 -m http.server --bind 127.0.0.1 8000
You can just create a simple C file:
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
And run this commands:
emcc main.c -o index.html
emcc main.c -o index.js
If you dont have emcc installed:
sudo apt install emscripten