I don't think I understood the proposal correctly, can this be something that comes close? https://github.com/Myzel394/locus