My solution was to build a visual, drag-and-drop designer component that you can embed directly into a React app. It empowers your users to create their own templates, which can then be generated on the backend with a headless engine.
The project is fully open-source, and I'd be grateful for any feedback you have on the live demo. I wrote a more detailed post about the journey here: https://dev.to/aavanamkit/stop-building-invoices-give-your-u...