Psd2HTML was possibly my first macOS App, you could feed in a PSD file and it would output HTML
The caveat being that you had to have a very good layer system.
No data ever left your mac, as it ran, it downloaded a script to splice your PSD and output the HTML