Skip to content

Ingredient substitutions: treat interchangeable ingredients as in stock for pantry recipes #436

Description

@dubadub

From a trialing user (Discord, 2026-08-11), as a follow-on to global aisle aliases (see the alias issue). Aliases cover same item, different name (bell pepper / capsicum); this is about different items that substitute for each other in a recipe:

I could use butter or oil for certain cooking process. If I'm out of butter, but do have oil, I would want the API to count that ingredient as in stock!

Sketch from the conversation: some way to declare substitutions — either in the .cook file itself (e.g. an @butter|oil{}-style alternative) or in workspace config — so that pantry recipes counts a recipe as cookable when any acceptable substitute is in the pantry, and the shopping list / recipe display can show the alternative.

Needs discussion on where the declaration lives (recipe syntax would require a spec update; a workspace-level substitutions config would not) and how it interacts with aisle aliases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions