@dang seeing as this is a derivative of https://news.ycombinator.com/item?id=28472170 but the credit isn't very clear, could you give the original Show HN another repost perhaps?
Seems a shame that the author of the majority of this work (pieterhg) didn't get a lot of credit here or the same level of interest in their original Show HN.