Mine is a WIP for automation but has similar concepts to what you're looking for: https://github.com/rush86999/atom