I built something similar on top of Cloudflare’s Browser Run service. It’s a code pen-like tool for generating PDF docs with HTML and CSS. https://htmlcsspdf.ben2.com/
I switched to DDG for a week. I found the results very good considering they don't track at all and can't improve ambiguous terms. I found the performance a bit disappointing however and the lack of Chrome instant suggestions a minor annoyance.