I made it because I was always copy/pasting the same code each time I needed to generate images from content. It also comes with handlebars to enable reusing a template to make multiple images (example for meetup flyers).
I totally agree but in some case a simple and quick solution is enough. I found this strategy in GCP documentation https://cloud.google.com/functions/docs/bestpractices/tips. I also warn in the article that the function execution environment isn't always preserved.