I would think saving any recipe with a list for ingredient and amount along with how many people that recipe should serve as an input. When I save the recipe I’d convert everything to the equivalent of 1 serving.

Then when I recall and display the amounts

I’d have an input for how many servings I want to cook

And multiply the saved amount by that input.