@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.
Files changed (89) hide show
  1. package/data/README.md +107 -0
  2. package/data/detailed-recipes-bs-complete.json +744 -0
  3. package/data/detailed-recipes-bs-full.json +744 -0
  4. package/data/detailed-recipes-bs.json +417 -0
  5. package/data/detailed-recipes.json +744 -0
  6. package/data/recipes.json +902 -0
  7. package/dist/bmr.d.ts +3 -0
  8. package/dist/bmr.js +14 -0
  9. package/dist/dailyMealPlanGenerator.d.ts +3 -0
  10. package/dist/dailyMealPlanGenerator.js +211 -0
  11. package/dist/data/detailed-recipes-bs.json +417 -0
  12. package/dist/data/detailed-recipes.json +744 -0
  13. package/dist/foodConversion.d.ts +55 -0
  14. package/dist/foodConversion.js +200 -0
  15. package/dist/index.d.ts +12 -0
  16. package/dist/index.js +27 -0
  17. package/dist/planner.d.ts +2 -0
  18. package/dist/planner.js +24 -0
  19. package/dist/recipeBasedMealPlanGenerator.d.ts +17 -0
  20. package/dist/recipeBasedMealPlanGenerator.js +255 -0
  21. package/dist/recipeService.d.ts +28 -0
  22. package/dist/recipeService.js +136 -0
  23. package/dist/rules/cholesterol.d.ts +2 -0
  24. package/dist/rules/cholesterol.js +7 -0
  25. package/dist/rules/diabetes.d.ts +2 -0
  26. package/dist/rules/diabetes.js +7 -0
  27. package/dist/rules/fattyLiver.d.ts +2 -0
  28. package/dist/rules/fattyLiver.js +7 -0
  29. package/dist/rules/index.d.ts +7 -0
  30. package/dist/rules/index.js +47 -0
  31. package/dist/rules/lowCarb.d.ts +2 -0
  32. package/dist/rules/lowCarb.js +7 -0
  33. package/dist/rules/triglycerides.d.ts +2 -0
  34. package/dist/rules/triglycerides.js +7 -0
  35. package/dist/src/bmr.d.ts +3 -0
  36. package/dist/src/bmr.js +13 -0
  37. package/dist/src/dailyMealPlanGenerator.d.ts +3 -0
  38. package/dist/src/dailyMealPlanGenerator.js +210 -0
  39. package/dist/src/foodConversion.d.ts +55 -0
  40. package/dist/src/foodConversion.js +199 -0
  41. package/dist/src/index.d.ts +12 -0
  42. package/dist/src/index.js +27 -0
  43. package/dist/src/planner.d.ts +2 -0
  44. package/dist/src/planner.js +23 -0
  45. package/dist/src/recipeBasedMealPlanGenerator.d.ts +17 -0
  46. package/dist/src/recipeBasedMealPlanGenerator.js +254 -0
  47. package/dist/src/recipeService.d.ts +28 -0
  48. package/dist/src/recipeService.js +136 -0
  49. package/dist/src/rules/cholesterol.d.ts +2 -0
  50. package/dist/src/rules/cholesterol.js +6 -0
  51. package/dist/src/rules/diabetes.d.ts +2 -0
  52. package/dist/src/rules/diabetes.js +6 -0
  53. package/dist/src/rules/fattyLiver.d.ts +2 -0
  54. package/dist/src/rules/fattyLiver.js +6 -0
  55. package/dist/src/rules/index.d.ts +7 -0
  56. package/dist/src/rules/index.js +46 -0
  57. package/dist/src/rules/lowCarb.d.ts +2 -0
  58. package/dist/src/rules/lowCarb.js +6 -0
  59. package/dist/src/rules/triglycerides.d.ts +2 -0
  60. package/dist/src/rules/triglycerides.js +6 -0
  61. package/dist/src/types/firestore.d.ts +100 -0
  62. package/dist/src/types/firestore.js +2 -0
  63. package/dist/src/types/openfoodfacts.d.ts +113 -0
  64. package/dist/src/types/openfoodfacts.js +3 -0
  65. package/dist/src/types/recipe.d.ts +36 -0
  66. package/dist/src/types/recipe.js +2 -0
  67. package/dist/src/types.d.ts +24 -0
  68. package/dist/src/types.js +2 -0
  69. package/dist/src/variety.d.ts +17 -0
  70. package/dist/src/variety.js +129 -0
  71. package/dist/src/weeklyMealPlanGenerator.d.ts +3 -0
  72. package/dist/src/weeklyMealPlanGenerator.js +477 -0
  73. package/dist/src/weeklyPlanner.d.ts +12 -0
  74. package/dist/src/weeklyPlanner.js +31 -0
  75. package/dist/types/firestore.d.ts +100 -0
  76. package/dist/types/firestore.js +2 -0
  77. package/dist/types/openfoodfacts.d.ts +113 -0
  78. package/dist/types/openfoodfacts.js +3 -0
  79. package/dist/types/recipe.d.ts +36 -0
  80. package/dist/types/recipe.js +2 -0
  81. package/dist/types.d.ts +24 -0
  82. package/dist/types.js +2 -0
  83. package/dist/variety.d.ts +17 -0
  84. package/dist/variety.js +130 -0
  85. package/dist/weeklyMealPlanGenerator.d.ts +3 -0
  86. package/dist/weeklyMealPlanGenerator.js +469 -0
  87. package/dist/weeklyPlanner.d.ts +12 -0
  88. package/dist/weeklyPlanner.js +32 -0
  89. 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