This is the exact kind of unhinged that belongs on HN. Naturally, it's written in typescript.