Another example is Auto Encrypt – automatically-provisioned TLS certificates for Node.js servers using Let’s Encrypt:
https://codeberg.org/small-tech/auto-encrypt
Similarly, Auto Encrypt Localhost does the same thing – in pure JavaScript, without using mkcert, etc. – for keeping your dev and production environments identical:
https://codeberg.org/small-tech/auto-encrypt-localhost
And the @small-tech/https module replaces Node’s https module to transparently provision certs during dev/production: