You generate a PDF and need to preview it on your web page. You realize you can't. Not without a giant PDF.js. Or perhaps you made a nice preview on Canvas, then you realize you can't do anything useful with it—it won't give you a PDF that looks the same.
I've bundled the entire VMPrint engine—a DTP-grade layout virtual machine—into a compact, 1.7MB standalone NPM package you can embed even in a static HTML page. It gives you accurate document preview and PDF/SVG output that look exactly the same.
Enjoy!