How to integrate into hexo or hugo ?
I'm not intimately familiar with either of those. You could use the CLI to output html and include that in the static assets for your site