Skip to content

Meal planner for the week with shopping list integration #385

Closed

Description

@Qwekkeboom

I am currently using an app called recipe keeper which is quite nice and has a lot of the features this project has. However, one feature this project lacks is a meal planner. I would like to be able to have an overview of the next few day or week where I can plan ahead what i will eat. This can also be linked to the shopping list so you can plan your meal, add all to the shopping list, review and go shop for your groceries.

Activity

  1. added
    area: server
    needs discussion
    on Aug 7, 2026
  2. changed the title [-][Feature Request] Meal Planner[/-] [+]Meal planner for the week with shopping list integration[/+] on Aug 7, 2026
  3. daviddehoog commented on Aug 8, 2026

    @daviddehoog

    I'm new to cookcli and to cooklang generally.

    I think some of this functionality is available in the cookcli server, though it's perhaps not clearly advertised.

    If you create/put a .cook file under the base recipes directory then it should appear in the cookcli server web interface, alongside the sub folders and individual recipes. If the .cook file includes a meal plan for today's date, the server web interface will also highlight that at the top of the page. You can see examples of these in some of the screenshots in the documentation in the repository.

    Each .cook meal plan then appears as a consolidated, single item in the shopping list bit of the web interface.

    You can edit existing .cook files using the server web interface too. (I haven't tried using the "Add recipe" feature to create a .cook file, yet.

  4. dubadub commented on Aug 8, 2026

    @dubadub
    Member

    Yes, that's correct. If file has a '*.menu' extension it will be recognised as a meal plan. Essentially it's the same Cooklang format, but apps render it differently.

  5. daviddehoog commented on Aug 10, 2026

    @daviddehoog

    Just bringing across relevant bit of discussion from 380:

    I was imagining adding recipes to a shopping list using the web interface, and then having a button to "save" that collection as a .menu file. (So essentially, compiling a .menu file with the web interface recipe selections, rather than marking up a .menu file manually through text input.) Then, the .menu file would be saved and I could open it and convert it to a shopping list again, based on the current pantry at another time.

  6. daviddehoog commented on Sep 10, 2026

    @daviddehoog

    Another option to consider would be adding a UI element for each recipe that the user could use to copy the path to that recipe file in a format that could be pasted into a manually authored .menu file, such as:
    - @./Lunch/Cheese, tomato and avocado sandwich{1%serving}.

  7. LeMyst commented on Sep 30, 2026

    @LeMyst
    Collaborator

    A proposal for the planner, building on .menu files as they are, so nothing else has to learn a new format.

    A plan is a menu with a plan: block. The frontmatter only frames it in time; what is eaten each day stays in dated sections, as in any menu today:

    ---
    title: October fortnight
    servings: 2
    plan:
      start: 2026-10-07    # any day of the week
      days: 10             # 1 to 62: a week, a fortnight, 10 days from a Wednesday...
      meals: [Breakfast, Lunch, Dinner]
    ---
    
    == Wednesday (2026-10-07) ==
    
    Dinner: \
    - @./Risotto{2%servings}

    Because the days are ordinary dated sections, the shopping list, the Today's menu banner, cook shopping-list and other Cooklang apps keep reading a plan like any menu. Only the server's menu page changes: a menu with a plan: block is shown as a calendar, one card a day in weekday columns (stacked on a phone), each planned meal with its slot, today highlighted.

    Suggested in three steps:

    1. New Meal Plan (first day, number of days, meals, servings) and the calendar view, read-only; days are filled in the existing editor. Draft PR to follow.
    2. Editing in the calendar: add a recipe to a meal with the recipe picker from feat(ui): create and edit menus with a recipe picker #558, move or copy it to another day.
    3. Shopping list for a range of days (e.g. only this week of a fortnight), and a whole menu as a day's meal (@./Brunches/Sunday.menu{}).

    The comments' other asks — saving the shopping list as a .menu (from #380) and copying a recipe's @./path{} for hand-written menus — would fit alongside step 2.

  8. LeMyst commented on Oct 1, 2026

    @LeMyst
    Collaborator

    The proposal above is now split into draft PRs, each reviewable on its own:

    Meal plans

    Menus and the shopping list

    Still open after these: a day filter for cook shopping-list on a plan (--from / --to), and reordering lines within a meal in the calendar.

  9. dubadub commented on Oct 1, 2026

    @dubadub
    Member

    Not sure why do we need plan: block? The sections convey dates and it should be enough to map to calendar, isn't it?

  10. added
    area: shopping-list
    on Oct 10, 2026
  11. LeMyst commented on Oct 10, 2026

    @LeMyst
    Collaborator

    The meal planner asked for here is in main:

    The extras from this thread that are still open (some days of a plan to the list from the web UI, Save as Menu, Copy for a Menu, reordering lines within a meal) are now tracked in #671, with their draft PRs. Closing this one in favour of it — thanks @Qwekkeboom for the request and @daviddehoog for the ideas along the way!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: serverarea: shopping-listfeature requestneeds discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions