ChefPad — Recipe Manager
A local-first recipe management tool. Add recipes with cuisine and cooking time, build ingredient lists and step-by-step instructions, rate your favorites, search by keyword or ingredient, and get random meal suggestions — all from the command line.
Commands
| Command | Description |
|---|
| INLINECODE0 | Add a new recipe with optional cuisine type and cooking time (default: general, 30min) |
| INLINECODE1 |
Add an ingredient to an existing recipe by its ID |
|
chefpad step <id> <text> | Add a cooking step to an existing recipe by its ID |
|
chefpad list | List all saved recipes with ratings, ingredient and step counts |
|
chefpad show <id> | Show full recipe details — ingredients, steps, cuisine, time, rating |
|
chefpad search <keyword> | Search recipes by name, cuisine, or ingredient |
|
chefpad rate <id> <1-5> | Rate a recipe from 1 to 5 stars |
|
chefpad random | Get a random recipe suggestion from your collection |
|
chefpad suggest <ingredients...> | Find recipes that match the ingredients you have on hand |
|
chefpad info | Show version and branding info |
|
chefpad help | Show all available commands |
Data Storage
- - Location: INLINECODE11
- INLINECODE12 — Stores all recipes with their ingredients, steps, ratings, cuisine, and cooking time
- INLINECODE13 — Reserved for favorite recipe tracking
- Both files are auto-created as empty JSON arrays on first run
- All data is stored locally as JSON — no external APIs, no network calls, no accounts needed
Requirements
- - bash (any modern version)
- python3 (standard library only — uses
json, time, random) - No external dependencies or API keys required
When to Use
- 1. Building a personal recipe collection — Add recipes you discover or create, complete with ingredients and step-by-step instructions, all stored locally.
- Meal planning with what you have — Use
suggest with ingredients in your fridge to find matching recipes from your collection. - Quick dinner decisions — Use
random when you can't decide what to cook and want a surprise pick from your saved recipes. - Searching by cuisine or ingredient — Quickly find all Italian recipes or everything that uses chicken with the
search command. - Rating and tracking favorites — Rate recipes after cooking them to build a curated list of your best dishes over time.
Examples
CODEBLOCK0
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
ChefPad — 食谱管理器
一款本地优先的食谱管理工具。添加带有菜系和烹饪时间的食谱,构建食材清单和分步说明,为你喜欢的食谱评分,通过关键词或食材进行搜索,以及获取随机餐食推荐——所有这些都可以在命令行中完成。
命令
| 命令 | 描述 |
|---|
| chefpad add <名称> [菜系] [分钟] | 添加新食谱,可指定菜系类型和烹饪时间(默认:通用,30分钟) |
| chefpad ingredient <ID> <文本> |
按ID向现有食谱添加食材 |
| chefpad step
<文本> | 按ID向现有食谱添加烹饪步骤 |
| chefpad list | 列出所有已保存的食谱,包括评分、食材和步骤数量 |
| chefpad show | 显示完整的食谱详情——食材、步骤、菜系、时间、评分 |
| chefpad search <关键词> | 按名称、菜系或食材搜索食谱 |
| chefpad rate <1-5> | 为食谱评分,1到5星 |
| chefpad random | 从你的食谱库中获取随机食谱推荐 |
| chefpad suggest <食材...> | 查找与你手头食材匹配的食谱 |
| chefpad info | 显示版本和品牌信息 |
| chefpad help | 显示所有可用命令 |
数据存储
- - 位置: ~/.chefpad/
- recipes.json — 存储所有食谱及其食材、步骤、评分、菜系和烹饪时间
- favorites.json — 预留用于收藏食谱追踪
- 首次运行时,两个文件会自动创建为空JSON数组
- 所有数据以JSON格式本地存储——无需外部API、无需网络调用、无需账户
系统要求
- - bash(任何现代版本)
- python3(仅使用标准库——json、time、random)
- 无需外部依赖或API密钥
使用场景
- 1. 建立个人食谱库 — 添加你发现或创建的食谱,包含完整的食材和分步说明,全部本地存储。
- 利用现有食材规划餐食 — 使用冰箱里的食材配合suggest命令,从你的食谱库中找到匹配的食谱。
- 快速决定晚餐 — 当你无法决定做什么菜时,使用random命令从已保存的食谱中随机挑选一个惊喜。
- 按菜系或食材搜索 — 使用search命令快速找到所有意大利菜或所有使用鸡肉的食谱。
- 评分和追踪收藏 — 烹饪后为食谱评分,逐步建立你最佳菜品的精选列表。
示例
bash
添加新食谱
chefpad add 宫保鸡丁 chinese 25
向食谱添加食材(使用添加后显示的ID)
chefpad ingredient 1710000000 500克鸡胸肉,切丁
chefpad ingredient 1710000000 100克烤花生
chefpad ingredient 1710000000 3个干辣椒
chefpad ingredient 1710000000 2汤匙酱油
添加烹饪步骤
chefpad step 1710000000 用酱油腌制鸡肉15分钟
chefpad step 1710000000 将鸡肉炒至金黄,盛出备用
chefpad step 1710000000 炒辣椒,加入鸡肉和花生,翻炒均匀
列出所有食谱
chefpad list
显示完整食谱详情
chefpad show 1710000000
为食谱评分
chefpad rate 1710000000 5
搜索鸡肉食谱
chefpad search chicken
查找与手头食材匹配的食谱
chefpad suggest chicken peanuts
获取随机餐食推荐
chefpad random
由 BytesAgain 提供技术支持 | bytesagain.com | hello@bytesagain.com