You can already do something similar manually with an app called Grocy.
I tried it and didn't last two week, too much time spent scanning barcodes and dealing with inventory. I was hoping to save time to generate grocery list faster, not spend my life on it.