@usamir/healthy-meals-core 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/README.md +107 -0
- package/data/detailed-recipes-bs-complete.json +744 -0
- package/data/detailed-recipes-bs-full.json +744 -0
- package/data/detailed-recipes-bs.json +417 -0
- package/data/detailed-recipes.json +744 -0
- package/data/recipes.json +902 -0
- package/dist/bmr.d.ts +3 -0
- package/dist/bmr.js +14 -0
- package/dist/dailyMealPlanGenerator.d.ts +3 -0
- package/dist/dailyMealPlanGenerator.js +211 -0
- package/dist/data/detailed-recipes-bs.json +417 -0
- package/dist/data/detailed-recipes.json +744 -0
- package/dist/foodConversion.d.ts +55 -0
- package/dist/foodConversion.js +200 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +27 -0
- package/dist/planner.d.ts +2 -0
- package/dist/planner.js +24 -0
- package/dist/recipeBasedMealPlanGenerator.d.ts +17 -0
- package/dist/recipeBasedMealPlanGenerator.js +255 -0
- package/dist/recipeService.d.ts +28 -0
- package/dist/recipeService.js +136 -0
- package/dist/rules/cholesterol.d.ts +2 -0
- package/dist/rules/cholesterol.js +7 -0
- package/dist/rules/diabetes.d.ts +2 -0
- package/dist/rules/diabetes.js +7 -0
- package/dist/rules/fattyLiver.d.ts +2 -0
- package/dist/rules/fattyLiver.js +7 -0
- package/dist/rules/index.d.ts +7 -0
- package/dist/rules/index.js +47 -0
- package/dist/rules/lowCarb.d.ts +2 -0
- package/dist/rules/lowCarb.js +7 -0
- package/dist/rules/triglycerides.d.ts +2 -0
- package/dist/rules/triglycerides.js +7 -0
- package/dist/src/bmr.d.ts +3 -0
- package/dist/src/bmr.js +13 -0
- package/dist/src/dailyMealPlanGenerator.d.ts +3 -0
- package/dist/src/dailyMealPlanGenerator.js +210 -0
- package/dist/src/foodConversion.d.ts +55 -0
- package/dist/src/foodConversion.js +199 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.js +27 -0
- package/dist/src/planner.d.ts +2 -0
- package/dist/src/planner.js +23 -0
- package/dist/src/recipeBasedMealPlanGenerator.d.ts +17 -0
- package/dist/src/recipeBasedMealPlanGenerator.js +254 -0
- package/dist/src/recipeService.d.ts +28 -0
- package/dist/src/recipeService.js +136 -0
- package/dist/src/rules/cholesterol.d.ts +2 -0
- package/dist/src/rules/cholesterol.js +6 -0
- package/dist/src/rules/diabetes.d.ts +2 -0
- package/dist/src/rules/diabetes.js +6 -0
- package/dist/src/rules/fattyLiver.d.ts +2 -0
- package/dist/src/rules/fattyLiver.js +6 -0
- package/dist/src/rules/index.d.ts +7 -0
- package/dist/src/rules/index.js +46 -0
- package/dist/src/rules/lowCarb.d.ts +2 -0
- package/dist/src/rules/lowCarb.js +6 -0
- package/dist/src/rules/triglycerides.d.ts +2 -0
- package/dist/src/rules/triglycerides.js +6 -0
- package/dist/src/types/firestore.d.ts +100 -0
- package/dist/src/types/firestore.js +2 -0
- package/dist/src/types/openfoodfacts.d.ts +113 -0
- package/dist/src/types/openfoodfacts.js +3 -0
- package/dist/src/types/recipe.d.ts +36 -0
- package/dist/src/types/recipe.js +2 -0
- package/dist/src/types.d.ts +24 -0
- package/dist/src/types.js +2 -0
- package/dist/src/variety.d.ts +17 -0
- package/dist/src/variety.js +129 -0
- package/dist/src/weeklyMealPlanGenerator.d.ts +3 -0
- package/dist/src/weeklyMealPlanGenerator.js +477 -0
- package/dist/src/weeklyPlanner.d.ts +12 -0
- package/dist/src/weeklyPlanner.js +31 -0
- package/dist/types/firestore.d.ts +100 -0
- package/dist/types/firestore.js +2 -0
- package/dist/types/openfoodfacts.d.ts +113 -0
- package/dist/types/openfoodfacts.js +3 -0
- package/dist/types/recipe.d.ts +36 -0
- package/dist/types/recipe.js +2 -0
- package/dist/types.d.ts +24 -0
- package/dist/types.js +2 -0
- package/dist/variety.d.ts +17 -0
- package/dist/variety.js +130 -0
- package/dist/weeklyMealPlanGenerator.d.ts +3 -0
- package/dist/weeklyMealPlanGenerator.js +469 -0
- package/dist/weeklyPlanner.d.ts +12 -0
- package/dist/weeklyPlanner.js +32 -0
- package/package.json +67 -0
package/data/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Recipe Data Files
|
|
2
|
+
|
|
3
|
+
This directory contains the recipe databases for the Healthy Meals application.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
### `recipes.json`
|
|
8
|
+
Original simple recipe database with basic nutritional information (100 recipes in Bosnian/Croatian).
|
|
9
|
+
|
|
10
|
+
### `detailed-recipes.json`
|
|
11
|
+
**NEW** - Comprehensive recipe database with:
|
|
12
|
+
- Complete ingredient lists with quantities and units
|
|
13
|
+
- Step-by-step cooking instructions
|
|
14
|
+
- Detailed nutritional information (calories, protein, carbs, fat, fiber, sugar, sodium)
|
|
15
|
+
- Preparation and cooking times
|
|
16
|
+
- Difficulty levels (easy, medium, hard)
|
|
17
|
+
- Health tags and dietary classifications
|
|
18
|
+
- Serving sizes
|
|
19
|
+
|
|
20
|
+
Currently contains 20 detailed recipes:
|
|
21
|
+
- 5 Breakfast recipes
|
|
22
|
+
- 5 Lunch recipes
|
|
23
|
+
- 5 Dinner recipes
|
|
24
|
+
- 5 Snack recipes
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
The detailed recipes are accessed through the `RecipeService` class:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { recipeService } from '@healthy-meals/core';
|
|
32
|
+
|
|
33
|
+
// Get all recipes
|
|
34
|
+
const recipes = recipeService.getAllRecipes();
|
|
35
|
+
|
|
36
|
+
// Filter by category
|
|
37
|
+
const breakfastRecipes = recipeService.getRecipesByCategory('breakfast');
|
|
38
|
+
|
|
39
|
+
// Filter by health goals
|
|
40
|
+
const diabeticRecipes = recipeService.getRecipesForHealthGoals(['diabetes']);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Recipe Structure
|
|
44
|
+
|
|
45
|
+
Each detailed recipe includes:
|
|
46
|
+
- **id**: Unique identifier
|
|
47
|
+
- **name**: Recipe name
|
|
48
|
+
- **category**: breakfast, lunch, dinner, or snack
|
|
49
|
+
- **prepTime**: Preparation time in minutes
|
|
50
|
+
- **cookTime**: Cooking time in minutes
|
|
51
|
+
- **servings**: Number of servings
|
|
52
|
+
- **difficulty**: easy, medium, or hard
|
|
53
|
+
- **ingredients**: Array of ingredients with quantity and unit
|
|
54
|
+
- **instructions**: Step-by-step cooking instructions
|
|
55
|
+
- **nutrition**: Complete nutritional breakdown
|
|
56
|
+
- **tags**: Health and dietary tags
|
|
57
|
+
|
|
58
|
+
## Adding New Recipes
|
|
59
|
+
|
|
60
|
+
To add new recipes to `detailed-recipes.json`, follow the existing structure:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"id": "unique-id",
|
|
65
|
+
"name": "Recipe Name",
|
|
66
|
+
"category": "breakfast|lunch|dinner|snack",
|
|
67
|
+
"prepTime": 10,
|
|
68
|
+
"cookTime": 15,
|
|
69
|
+
"servings": 2,
|
|
70
|
+
"difficulty": "easy|medium|hard",
|
|
71
|
+
"ingredients": [
|
|
72
|
+
{
|
|
73
|
+
"name": "Ingredient name",
|
|
74
|
+
"quantity": 100,
|
|
75
|
+
"unit": "g|ml|tbsp|tsp|piece|etc"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"instructions": [
|
|
79
|
+
"Step 1",
|
|
80
|
+
"Step 2"
|
|
81
|
+
],
|
|
82
|
+
"nutrition": {
|
|
83
|
+
"calories": 350,
|
|
84
|
+
"protein": 20,
|
|
85
|
+
"carbs": 40,
|
|
86
|
+
"fat": 10,
|
|
87
|
+
"fiber": 5,
|
|
88
|
+
"sugar": 8,
|
|
89
|
+
"sodium": 200
|
|
90
|
+
},
|
|
91
|
+
"tags": ["tag1", "tag2"]
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Health Tags
|
|
96
|
+
|
|
97
|
+
Available tags for recipes:
|
|
98
|
+
- **Dietary**: vegetarian, vegan, gluten-free, dairy-free
|
|
99
|
+
- **Health**: heart-healthy, diabetes, cholesterol, fatty_liver, triglycerides
|
|
100
|
+
- **Nutritional**: high-protein, low-carb, high-fiber, low-fat, omega-3
|
|
101
|
+
- **Other**: mediterranean, portable, no-bake, post-workout, probiotic
|
|
102
|
+
|
|
103
|
+
## Documentation
|
|
104
|
+
|
|
105
|
+
For more information, see:
|
|
106
|
+
- `/RECIPES.md` - Complete recipe system documentation
|
|
107
|
+
- `/RECIPE_EXAMPLES.md` - Practical examples and meal plans
|