soustack 0.4.0 → 0.4.1

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 (146) hide show
  1. package/README.md +4 -4
  2. package/dist/cli/index.js +4412 -1275
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/index.d.mts +106 -80
  5. package/dist/index.d.ts +106 -80
  6. package/dist/index.js +4527 -1360
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +4527 -1360
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/scrape/index.d.mts +86 -74
  11. package/dist/scrape/index.d.ts +86 -74
  12. package/dist/scrape/index.js +91 -64
  13. package/dist/scrape/index.js.map +1 -1
  14. package/dist/scrape/index.mjs +91 -64
  15. package/dist/scrape/index.mjs.map +1 -1
  16. package/package.json +15 -6
  17. package/spec/.sync-meta.json +149 -0
  18. package/spec/SOUSTACK_SPEC_VERSION +1 -0
  19. package/spec/defs/common.schema.json +46 -0
  20. package/spec/defs/duration.schema.json +33 -0
  21. package/spec/defs/entities.schema.json +111 -0
  22. package/spec/defs/ingredientQuantified.schema.json +9 -0
  23. package/spec/defs/quantity.schema.json +16 -0
  24. package/spec/defs/scalingRule.schema.json +127 -0
  25. package/spec/defs/temperature.schema.json +63 -0
  26. package/spec/fixtures/content/illustrated-step.valid.json +24 -0
  27. package/spec/fixtures/invalid/equipment-unknown-reference.invalid.json +38 -0
  28. package/spec/fixtures/invalid/mise-en-place-unknown-equipment.invalid.json +37 -0
  29. package/spec/fixtures/invalid/mise-en-place-unknown-input.invalid.json +41 -0
  30. package/spec/fixtures/invalid/storage-leftovers-missing-method.invalid.json +31 -0
  31. package/spec/fixtures/invalid/storage-leftovers-wrong-type.invalid.json +23 -0
  32. package/spec/fixtures/level/base-full.valid.json +162 -0
  33. package/spec/fixtures/level/base-missing-yield.invalid.json +12 -0
  34. package/spec/fixtures/level/lite-min.valid.json +14 -0
  35. package/spec/fixtures/profile/profile-base.valid.json +20 -0
  36. package/spec/fixtures/profile/profile-equipped.valid.json +28 -0
  37. package/spec/fixtures/profile/profile-illustrated.valid.json +28 -0
  38. package/spec/fixtures/profile/profile-lite.valid.json +13 -0
  39. package/spec/fixtures/profile/profile-prepped.valid.json +31 -0
  40. package/spec/fixtures/profile/profile-scalable-missing-scaling.invalid.json +29 -0
  41. package/spec/fixtures/profile/profile-scalable.valid.json +49 -0
  42. package/spec/fixtures/profile/profile-timed-missing-structured.invalid.json +30 -0
  43. package/spec/fixtures/scaling/bakers-percent-missing-ref.invalid.json +41 -0
  44. package/spec/fixtures/scaling/bakers-percent.valid.json +51 -0
  45. package/spec/fixtures/scaling/discrete-range.invalid.json +36 -0
  46. package/spec/fixtures/scaling/missing-quantified.invalid.json +40 -0
  47. package/spec/fixtures/scaling/reject-bakersPercentage.invalid.json +50 -0
  48. package/spec/fixtures/stacks/compute-missing-timed.invalid.json +32 -0
  49. package/spec/fixtures/stacks/dietary-no-signal.invalid.json +16 -0
  50. package/spec/fixtures/stacks/illustrated-empty.invalid.json +13 -0
  51. package/spec/fixtures/stacks/quantified-string.invalid.json +22 -0
  52. package/spec/fixtures/stacks/referenced-missing-input.invalid.json +32 -0
  53. package/spec/fixtures/stacks/storage-min.valid.json +20 -0
  54. package/spec/fixtures/stacks/storage-no-duration.invalid.json +16 -0
  55. package/spec/fixtures/stacks/timed-implies-structured.valid.json +50 -0
  56. package/spec/fixtures/stacks/timed-range.invalid.json +33 -0
  57. package/spec/fixtures/valid/equipment-scaling-rules.valid.json +76 -0
  58. package/spec/fixtures/valid/equipment-strings.valid.json +31 -0
  59. package/spec/fixtures/valid/equipment-structured-uses.valid.json +47 -0
  60. package/spec/fixtures/valid/mise-en-place-basic.valid.json +31 -0
  61. package/spec/fixtures/valid/mise-en-place-referenced-equipment.valid.json +51 -0
  62. package/spec/fixtures/valid/prep-ingredient-strings.valid.json +48 -0
  63. package/spec/fixtures/valid/prep-ingredient-structured.valid.json +45 -0
  64. package/spec/fixtures/valid/profile-equipped.valid.json +29 -0
  65. package/spec/fixtures/valid/profile-prepped.valid.json +32 -0
  66. package/spec/fixtures/valid/quantified-nested-ingredient-sections.valid.json +61 -0
  67. package/spec/fixtures/valid/referenced-scaling.valid.json +67 -0
  68. package/spec/fixtures/valid/storage-leftovers-simple.valid.json +27 -0
  69. package/spec/fixtures/valid/storage-leftovers-structured.valid.json +43 -0
  70. package/spec/fixtures/valid/structured-nested-step-sections.valid.json +84 -0
  71. package/spec/schemas/stacks-registry.schema.json +108 -0
  72. package/spec/soustack.schema.json +2379 -0
  73. package/spec/stacks/compute.schema.json +7 -0
  74. package/spec/stacks/compute@1.md +22 -0
  75. package/spec/stacks/dietary.schema.json +45 -0
  76. package/spec/stacks/dietary@1.md +24 -0
  77. package/spec/stacks/equipment.schema.json +98 -0
  78. package/spec/stacks/equipment@1.md +244 -0
  79. package/spec/stacks/illustrated.schema.json +54 -0
  80. package/spec/stacks/illustrated@1.md +24 -0
  81. package/spec/stacks/prep.schema.json +76 -0
  82. package/spec/stacks/prep@1.md +276 -0
  83. package/spec/stacks/quantified.schema.json +74 -0
  84. package/spec/stacks/quantified@1.md +24 -0
  85. package/spec/stacks/referenced.schema.json +96 -0
  86. package/spec/stacks/referenced@1.md +23 -0
  87. package/spec/stacks/registry.json +112 -0
  88. package/spec/stacks/scaling.schema.json +99 -0
  89. package/spec/stacks/scaling@1.md +238 -0
  90. package/spec/stacks/storage.schema.json +132 -0
  91. package/spec/stacks/storage@1.md +256 -0
  92. package/spec/stacks/structured.schema.json +48 -0
  93. package/spec/stacks/structured@1.md +24 -0
  94. package/spec/stacks/substitutions.schema.json +43 -0
  95. package/spec/stacks/substitutions@1.md +24 -0
  96. package/spec/stacks/techniques.schema.json +28 -0
  97. package/spec/stacks/techniques@1.md +23 -0
  98. package/spec/stacks/timed.schema.json +60 -0
  99. package/spec/stacks/timed@1.md +23 -0
  100. package/src/defs/common.schema.json +46 -0
  101. package/src/defs/duration.schema.json +33 -0
  102. package/src/defs/entities.schema.json +111 -0
  103. package/src/defs/ingredientQuantified.schema.json +9 -0
  104. package/src/defs/quantity.schema.json +16 -0
  105. package/src/defs/scalingRule.schema.json +127 -0
  106. package/src/defs/temperature.schema.json +63 -0
  107. package/src/profiles/base.schema.json +2 -2
  108. package/src/profiles/equipped.schema.json +10 -0
  109. package/src/profiles/illustrated.schema.json +4 -4
  110. package/src/profiles/lite.schema.json +10 -0
  111. package/src/profiles/prepped.schema.json +10 -0
  112. package/src/profiles/scalable.schema.json +6 -6
  113. package/src/profiles/timed.schema.json +10 -0
  114. package/src/schema.json +2271 -248
  115. package/src/schemas/stacks-registry.schema.json +108 -0
  116. package/src/soustack.schema.json +2271 -248
  117. package/src/stacks/compute.schema.json +7 -0
  118. package/src/stacks/compute@1.md +22 -0
  119. package/src/stacks/dietary.schema.json +45 -0
  120. package/src/stacks/dietary@1.md +24 -0
  121. package/src/stacks/equipment.schema.json +98 -0
  122. package/src/stacks/equipment@1.md +244 -0
  123. package/src/stacks/illustrated.schema.json +54 -0
  124. package/src/stacks/illustrated@1.md +24 -0
  125. package/src/stacks/prep.schema.json +76 -0
  126. package/src/stacks/prep@1.md +276 -0
  127. package/src/stacks/quantified.schema.json +74 -0
  128. package/src/stacks/quantified@1.md +24 -0
  129. package/src/stacks/referenced.schema.json +96 -0
  130. package/src/stacks/referenced@1.md +23 -0
  131. package/src/stacks/registry.json +112 -0
  132. package/src/stacks/scaling.schema.json +99 -0
  133. package/src/stacks/scaling@1.md +238 -0
  134. package/src/stacks/storage.schema.json +132 -0
  135. package/src/stacks/storage@1.md +256 -0
  136. package/src/stacks/structured.schema.json +48 -0
  137. package/src/stacks/structured@1.md +24 -0
  138. package/src/stacks/substitutions.schema.json +43 -0
  139. package/src/stacks/substitutions@1.md +24 -0
  140. package/src/stacks/techniques.schema.json +28 -0
  141. package/src/stacks/techniques@1.md +23 -0
  142. package/src/stacks/timed.schema.json +60 -0
  143. package/src/stacks/timed@1.md +23 -0
  144. package/src/profiles/cookable.schema.json +0 -18
  145. package/src/profiles/quantified.schema.json +0 -43
  146. package/src/profiles/schedulable.schema.json +0 -43
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "prep": 1,
5
+ "referenced": 1,
6
+ "structured": 1
7
+ },
8
+ "name": "Recipe with Unknown Input Reference",
9
+ "yield": {
10
+ "amount": 1,
11
+ "unit": "serving"
12
+ },
13
+ "time": {
14
+ "total": {
15
+ "minutes": 30
16
+ }
17
+ },
18
+ "ingredients": [
19
+ {
20
+ "id": "onion",
21
+ "name": "Onion"
22
+ }
23
+ ],
24
+ "instructions": [
25
+ {
26
+ "id": "cook",
27
+ "text": "Cook",
28
+ "inputs": [
29
+ "onion"
30
+ ]
31
+ }
32
+ ],
33
+ "miseEnPlace": [
34
+ {
35
+ "text": "Prepare the missing ingredient",
36
+ "inputs": [
37
+ "missing-ingredient"
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "storage": 1
5
+ },
6
+ "name": "Recipe with Invalid Reheat Instruction",
7
+ "ingredients": [
8
+ "food"
9
+ ],
10
+ "instructions": [
11
+ "Cook the food"
12
+ ],
13
+ "storage": {
14
+ "refrigerated": {
15
+ "duration": {
16
+ "iso8601": "P3D"
17
+ }
18
+ },
19
+ "leftovers": {
20
+ "reheat": [
21
+ {
22
+ "duration": {
23
+ "minMinutes": 2,
24
+ "maxMinutes": 3
25
+ },
26
+ "notes": "Missing required method field"
27
+ }
28
+ ]
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "storage": 1
5
+ },
6
+ "name": "Recipe with Wrong Reheat Type",
7
+ "ingredients": [
8
+ "food"
9
+ ],
10
+ "instructions": [
11
+ "Cook the food"
12
+ ],
13
+ "storage": {
14
+ "refrigerated": {
15
+ "duration": {
16
+ "iso8601": "P3D"
17
+ }
18
+ },
19
+ "leftovers": {
20
+ "reheat": "Microwave 2\u20133 minutes"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "profile": "base",
4
+ "stacks": {
5
+ "quantified": 1,
6
+ "structured": 1,
7
+ "timed": 1,
8
+ "referenced": 1,
9
+ "compute": 1,
10
+ "storage": 1,
11
+ "dietary": 1,
12
+ "substitutions": 1,
13
+ "techniques": 1,
14
+ "illustrated": 1
15
+ },
16
+ "name": "Garlic Pasta",
17
+ "yield": {
18
+ "amount": 4,
19
+ "unit": "servings"
20
+ },
21
+ "time": {
22
+ "total": {
23
+ "minutes": 45
24
+ }
25
+ },
26
+ "ingredients": [
27
+ {
28
+ "id": "i1",
29
+ "name": "pasta",
30
+ "quantity": {
31
+ "amount": 500,
32
+ "unit": "g"
33
+ }
34
+ },
35
+ {
36
+ "id": "i2",
37
+ "name": "garlic",
38
+ "quantity": {
39
+ "amount": 4,
40
+ "unit": "clove"
41
+ }
42
+ }
43
+ ],
44
+ "instructions": [
45
+ {
46
+ "id": "s1",
47
+ "text": "Boil water",
48
+ "timing": {
49
+ "activity": "active",
50
+ "duration": {
51
+ "minutes": 10
52
+ }
53
+ },
54
+ "inputs": [
55
+ "i1"
56
+ ],
57
+ "techniqueIds": [
58
+ "t1"
59
+ ],
60
+ "images": [
61
+ "http://example.com/step1.jpg"
62
+ ]
63
+ },
64
+ {
65
+ "id": "s2",
66
+ "text": "Cook pasta",
67
+ "timing": {
68
+ "activity": "active",
69
+ "duration": {
70
+ "minMinutes": 8,
71
+ "maxMinutes": 10
72
+ }
73
+ },
74
+ "dependsOn": [
75
+ "s1"
76
+ ],
77
+ "inputs": [
78
+ "i1"
79
+ ],
80
+ "techniqueIds": [
81
+ "t2"
82
+ ],
83
+ "temperature": {
84
+ "target": "water",
85
+ "level": "high"
86
+ },
87
+ "videos": [
88
+ "http://example.com/v1.mp4"
89
+ ]
90
+ },
91
+ {
92
+ "id": "s3",
93
+ "text": "Saute garlic",
94
+ "timing": {
95
+ "activity": "active",
96
+ "duration": {
97
+ "minutes": 5
98
+ },
99
+ "completionCue": "fragrant"
100
+ },
101
+ "dependsOn": [
102
+ "s2"
103
+ ],
104
+ "inputs": [
105
+ "i2"
106
+ ],
107
+ "techniqueIds": [
108
+ "t1",
109
+ "t3"
110
+ ],
111
+ "temperature": {
112
+ "target": "stovetop",
113
+ "level": "medium"
114
+ }
115
+ }
116
+ ],
117
+ "images": [
118
+ "http://example.com/cover.jpg"
119
+ ],
120
+ "videos": [
121
+ "http://example.com/cover.mp4"
122
+ ],
123
+ "dietary": {
124
+ "basis": "perServing",
125
+ "calories": 400,
126
+ "diets": [
127
+ "vegetarian"
128
+ ]
129
+ },
130
+ "storage": {
131
+ "refrigerated": {
132
+ "duration": {
133
+ "iso8601": "P2D"
134
+ }
135
+ }
136
+ },
137
+ "substitutions": [
138
+ {
139
+ "for": "garlic",
140
+ "alternatives": [
141
+ {
142
+ "name": "shallot",
143
+ "ratio": "1:1"
144
+ }
145
+ ]
146
+ }
147
+ ],
148
+ "techniques": [
149
+ {
150
+ "id": "t1",
151
+ "name": "Boil"
152
+ },
153
+ {
154
+ "id": "t2",
155
+ "name": "Simmer"
156
+ },
157
+ {
158
+ "id": "t3",
159
+ "name": "Saute"
160
+ }
161
+ ]
162
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "profile": "base",
4
+ "stacks": {},
5
+ "name": "Broken Recipe",
6
+ "ingredients": [
7
+ "thing"
8
+ ],
9
+ "instructions": [
10
+ "do"
11
+ ]
12
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "profile": "lite",
4
+ "stacks": {},
5
+ "name": "Simple Toast",
6
+ "ingredients": [
7
+ "bread slice",
8
+ "butter"
9
+ ],
10
+ "instructions": [
11
+ "toast bread",
12
+ "spread butter"
13
+ ]
14
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "profile": "base",
3
+ "stacks": {},
4
+ "name": "Boiled Egg",
5
+ "yield": {
6
+ "amount": 1,
7
+ "unit": "serving"
8
+ },
9
+ "time": {
10
+ "total": {
11
+ "minutes": 10
12
+ }
13
+ },
14
+ "ingredients": [
15
+ "Egg"
16
+ ],
17
+ "instructions": [
18
+ "Boil the egg for 10 minutes."
19
+ ]
20
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "profile": "equipped",
3
+ "stacks": {
4
+ "equipment": 1
5
+ },
6
+ "name": "Equipped Recipe",
7
+ "yield": {
8
+ "amount": 2,
9
+ "unit": "servings"
10
+ },
11
+ "time": {
12
+ "total": {
13
+ "minutes": 15
14
+ }
15
+ },
16
+ "equipment": [
17
+ "mixing bowl",
18
+ "spatula"
19
+ ],
20
+ "ingredients": [
21
+ "flour",
22
+ "eggs"
23
+ ],
24
+ "instructions": [
25
+ "Mix ingredients in a bowl.",
26
+ "Stir until smooth."
27
+ ]
28
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "profile": "illustrated",
3
+ "stacks": {
4
+ "illustrated": 1
5
+ },
6
+ "name": "Illustrated Recipe",
7
+ "yield": {
8
+ "amount": 1,
9
+ "unit": "serving"
10
+ },
11
+ "time": {
12
+ "total": {
13
+ "minutes": 5
14
+ }
15
+ },
16
+ "images": [
17
+ "https://example.com/image.jpg"
18
+ ],
19
+ "ingredients": [
20
+ "bread"
21
+ ],
22
+ "instructions": [
23
+ {
24
+ "id": "step-1",
25
+ "text": "Toast the bread."
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "profile": "lite",
3
+ "stacks": {},
4
+ "name": "Simple Toast",
5
+ "ingredients": [
6
+ "Bread",
7
+ "Butter"
8
+ ],
9
+ "instructions": [
10
+ "Toast the bread.",
11
+ "Spread butter on toast."
12
+ ]
13
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "profile": "prepped",
3
+ "stacks": {
4
+ "prep": 1
5
+ },
6
+ "name": "Prepped Recipe",
7
+ "yield": {
8
+ "amount": 4,
9
+ "unit": "servings"
10
+ },
11
+ "time": {
12
+ "total": {
13
+ "minutes": 20
14
+ }
15
+ },
16
+ "ingredients": [
17
+ "onion",
18
+ "garlic"
19
+ ],
20
+ "instructions": [
21
+ "Cook the ingredients."
22
+ ],
23
+ "miseEnPlace": [
24
+ {
25
+ "text": "Finely dice the onion"
26
+ },
27
+ {
28
+ "text": "Mince the garlic"
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "profile": "scalable",
3
+ "stacks": {
4
+ "quantified": 1
5
+ },
6
+ "name": "Scaled Bread",
7
+ "yield": {
8
+ "amount": 2,
9
+ "unit": "loaf"
10
+ },
11
+ "time": {
12
+ "total": {
13
+ "minutes": 180
14
+ }
15
+ },
16
+ "ingredients": [
17
+ {
18
+ "id": "flour",
19
+ "name": "Bread flour",
20
+ "quantity": {
21
+ "amount": 500,
22
+ "unit": "g"
23
+ }
24
+ }
25
+ ],
26
+ "instructions": [
27
+ "Mix ingredients."
28
+ ]
29
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "profile": "scalable",
3
+ "stacks": {
4
+ "quantified": 1,
5
+ "scaling": 1
6
+ },
7
+ "name": "Scaled Bread",
8
+ "yield": {
9
+ "amount": 2,
10
+ "unit": "loaf"
11
+ },
12
+ "time": {
13
+ "total": {
14
+ "minutes": 180
15
+ }
16
+ },
17
+ "ingredients": [
18
+ {
19
+ "id": "flour",
20
+ "name": "Bread flour",
21
+ "quantity": {
22
+ "amount": 500,
23
+ "unit": "g"
24
+ }
25
+ },
26
+ {
27
+ "id": "water",
28
+ "name": "Water",
29
+ "quantity": {
30
+ "amount": 325,
31
+ "unit": "g"
32
+ }
33
+ }
34
+ ],
35
+ "scaling": {
36
+ "discrete": {
37
+ "min": 1,
38
+ "max": 5,
39
+ "step": 1
40
+ }
41
+ },
42
+ "instructions": [
43
+ {
44
+ "text": "Combine ingredients and knead until smooth.",
45
+ "dependsOn": [],
46
+ "id": "step-1"
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "profile": "timed",
3
+ "stacks": {
4
+ "timed": 1
5
+ },
6
+ "name": "Timed Roast",
7
+ "yield": {
8
+ "amount": 4,
9
+ "unit": "servings"
10
+ },
11
+ "time": {
12
+ "total": {
13
+ "minutes": 90
14
+ }
15
+ },
16
+ "ingredients": [
17
+ "Beef"
18
+ ],
19
+ "instructions": [
20
+ {
21
+ "id": "step-1",
22
+ "text": "Roast until done",
23
+ "timing": {
24
+ "duration": {
25
+ "minutes": 90
26
+ }
27
+ }
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "quantified": 1,
5
+ "scaling": 1
6
+ },
7
+ "name": "Bad Baker Percent",
8
+ "yield": {
9
+ "amount": 1,
10
+ "unit": "batch"
11
+ },
12
+ "time": {
13
+ "total": {
14
+ "minutes": 20
15
+ }
16
+ },
17
+ "ingredients": [
18
+ {
19
+ "id": "salt",
20
+ "name": "Salt",
21
+ "quantity": {
22
+ "amount": 10,
23
+ "unit": "g"
24
+ },
25
+ "scaling": {
26
+ "mode": "bakersPercent",
27
+ "percent": 2,
28
+ "of": "missing"
29
+ }
30
+ }
31
+ ],
32
+ "instructions": [
33
+ "combine"
34
+ ],
35
+ "scaling": {
36
+ "discrete": {
37
+ "min": 2,
38
+ "max": 6
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "quantified": 1,
5
+ "scaling": 1
6
+ },
7
+ "name": "Scaled Bread",
8
+ "yield": {
9
+ "amount": 1,
10
+ "unit": "loaf"
11
+ },
12
+ "time": {
13
+ "total": {
14
+ "minutes": 45
15
+ }
16
+ },
17
+ "ingredients": [
18
+ {
19
+ "id": "flour",
20
+ "name": "Bread flour",
21
+ "quantity": {
22
+ "amount": 500,
23
+ "unit": "g"
24
+ }
25
+ },
26
+ {
27
+ "id": "water",
28
+ "name": "Water",
29
+ "quantity": {
30
+ "amount": 325,
31
+ "unit": "g"
32
+ },
33
+ "scaling": {
34
+ "mode": "bakersPercent",
35
+ "percent": 65,
36
+ "of": "flour"
37
+ }
38
+ }
39
+ ],
40
+ "instructions": [
41
+ "mix",
42
+ "bake"
43
+ ],
44
+ "scaling": {
45
+ "discrete": {
46
+ "min": 1,
47
+ "max": 4,
48
+ "step": 1
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "quantified": 1,
5
+ "scaling": 1
6
+ },
7
+ "name": "Bad Range",
8
+ "yield": {
9
+ "amount": 1,
10
+ "unit": "tray"
11
+ },
12
+ "time": {
13
+ "total": {
14
+ "minutes": 15
15
+ }
16
+ },
17
+ "ingredients": [
18
+ {
19
+ "id": "sugar",
20
+ "name": "Sugar",
21
+ "quantity": {
22
+ "amount": 100,
23
+ "unit": "g"
24
+ }
25
+ }
26
+ ],
27
+ "instructions": [
28
+ "stir"
29
+ ],
30
+ "scaling": {
31
+ "discrete": {
32
+ "min": 5,
33
+ "max": 2
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "https://soustack.spec/soustack.schema.json",
3
+ "stacks": {
4
+ "scaling": 1
5
+ },
6
+ "name": "Incomplete Scaling",
7
+ "yield": {
8
+ "amount": 2,
9
+ "unit": "loaves"
10
+ },
11
+ "time": {
12
+ "total": {
13
+ "minutes": 30
14
+ }
15
+ },
16
+ "ingredients": [
17
+ {
18
+ "id": "starter",
19
+ "name": "Starter",
20
+ "quantity": {
21
+ "amount": 150,
22
+ "unit": "g"
23
+ },
24
+ "scaling": {
25
+ "mode": "bakersPercent",
26
+ "percent": 30,
27
+ "of": "flour"
28
+ }
29
+ }
30
+ ],
31
+ "instructions": [
32
+ "mix"
33
+ ],
34
+ "scaling": {
35
+ "discrete": {
36
+ "min": 1,
37
+ "max": 3
38
+ }
39
+ }
40
+ }