Maybe this? GitHub - lindig/hello: A minimal OCaml project . I am using this as a stepping stone when I start something new. Dune now has some project setup functionality (but I’m not familiar with it).
Dune has dune init project NAME which is basically a ‘glorified hello-world project’. It’s the recommended layout for new projects–not too complex, but reasonably scalable.
This looks pretty good! The only possible improvement I spotted is that you could get rid of the build.sh/ml and use dune-build-info to embed the version module directly.
What is the connection between form validation and a hello world program? I suspect we are talking past each other. What is it that you are trying to do?
The Dream web framework has a hello world example - and examples for forms and other typical web components.