You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Meal planner for the week with shopping list integration #385
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.
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.
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.
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.
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}.
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 fortnightservings: 2plan:
start: 2026-10-07# any day of the weekdays: 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:
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.
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.
The proposal above is now split into draft PRs, each reviewable on its own:
Meal plans
feat(ui): meal plans laid out as a calendar #596 — a .menu with a plan: block (first day, number of days, meals) is shown as a calendar; New Meal Plan creates one with a section a day. Merge this one first.
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!
Activity
[-][Feature Request] Meal Planner[/-][+]Meal planner for the week with shopping list integration[/+]daviddehoog commentedon Aug 8, 2026
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.
dubadub commentedon Aug 8, 2026
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.
dubadub commentedon Aug 8, 2026
Here's an example file https://github.com/dubadub/cookbook/blob/main/Plans/3%20Day%20Plan%20XIV.menu#L5
daviddehoog commentedon Aug 10, 2026
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.
daviddehoog commentedon Sep 10, 2026
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}.LeMyst commentedon Sep 30, 2026
A proposal for the planner, building on
.menufiles 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:Because the days are ordinary dated sections, the shopping list, the Today's menu banner,
cook shopping-listand other Cooklang apps keep reading a plan like any menu. Only the server's menu page changes: a menu with aplan: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:
@./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.LeMyst commentedon Oct 1, 2026
The proposal above is now split into draft PRs, each reviewable on its own:
Meal plans
.menuwith aplan:block (first day, number of days, meals) is shown as a calendar; New Meal Plan creates one with a section a day. Merge this one first.Menus and the shopping list
- @./Brunches/Sunday.menu{}): links, menu API, shopping list (with a cycle guard) and the recipe picker..menuthat adds the same list back later (the request carried over from Export/import shopping lists as .menu files from the server UI #380).- @./Lunch/Cheese, tomato and avocado sandwich{1%servings}, at the amount the page shows.Still open after these: a day filter for
cook shopping-liston a plan (--from/--to), and reordering lines within a meal in the calendar.dubadub commentedon Oct 1, 2026
Not sure why do we need
plan:block? The sections convey dates and it should be enough to map to calendar, isn't it?feat(ui): meal plans laid out as a calendar
feat(ui): change a meal plan from its calendar
feat: add some days of a meal plan to the shopping list
feat(ui): change a meal plan from its calendar
feat: add some days of a meal plan to the shopping list
feat(ui): meal plans laid out as a calendar (#596)
feat(ui): change a meal plan from its calendar
feat(ui): change a meal plan from its calendar (#610)
feat(shopping-list): --from / --to for some days of a menu
feat: a menu can use another menu as one of its meals
feat: a menu can use another menu as one of its meals (#609)
feat(shopping-list): --from / --to for some days of a menu (#612)
LeMyst commentedon Oct 10, 2026
The meal planner asked for here is in main:
cook shopping-list --from / --tokeeps only some days of it (feat(shopping-list): --from / --to for some days of a menu #612).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!
feat(ui): copy a recipe's line for a hand-written menu
feat: add some days of a meal plan to the shopping list
feat: add some days of a meal plan to the shopping list (#611)