daagaak··on Phase Locked State MachinesEmbassy (https://embassy.dev/) is really close to that and really nice to use.