Probably could never make that kind of thing work at scale, but maybe as something within the maker community, perhaps adjacent to the world of 3d printing, Arduino, and RPi.
There'd probably be a few liability concerns at scale. Like if you made a replacement board for a Keurig to allow aftermarket k-cups, it'd likely be a matter of time before Keurig sued you, or someone burnt their house down.