make-mp-data 2.1.6 → 3.0.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 (76) hide show
  1. package/README.md +31 -0
  2. package/dungeons/adspend.js +2 -2
  3. package/dungeons/ai-chat-analytics-ed.js +3 -2
  4. package/dungeons/anon.js +2 -2
  5. package/dungeons/array-of-object-loopup.js +181 -0
  6. package/dungeons/benchmark-heavy.js +241 -0
  7. package/dungeons/benchmark-light.js +141 -0
  8. package/dungeons/big.js +9 -8
  9. package/dungeons/business.js +2 -1
  10. package/dungeons/clinch-agi.js +632 -0
  11. package/dungeons/complex.js +3 -2
  12. package/dungeons/copilot.js +383 -0
  13. package/dungeons/ecommerce-store.js +0 -0
  14. package/dungeons/experiments.js +5 -4
  15. package/dungeons/foobar.js +101 -101
  16. package/dungeons/funnels.js +2 -2
  17. package/dungeons/gaming.js +3 -2
  18. package/dungeons/harness/harness-education.js +988 -0
  19. package/dungeons/harness/harness-fintech.js +976 -0
  20. package/dungeons/harness/harness-food.js +985 -0
  21. package/dungeons/harness/harness-gaming.js +1178 -0
  22. package/dungeons/harness/harness-media.js +961 -0
  23. package/dungeons/harness/harness-sass.js +923 -0
  24. package/dungeons/harness/harness-social.js +928 -0
  25. package/dungeons/kurby.js +211 -0
  26. package/dungeons/media.js +5 -4
  27. package/dungeons/mil.js +4 -3
  28. package/dungeons/mirror.js +2 -2
  29. package/dungeons/money2020-ed.js +8 -7
  30. package/dungeons/sanity.js +3 -2
  31. package/dungeons/scd.js +3 -2
  32. package/dungeons/simple.js +29 -14
  33. package/dungeons/strict-event-test.js +30 -0
  34. package/dungeons/student-teacher.js +3 -2
  35. package/dungeons/text-generation.js +84 -85
  36. package/dungeons/too-big-events.js +166 -0
  37. package/dungeons/uday-schema.json +220 -0
  38. package/dungeons/userAgent.js +4 -3
  39. package/index.js +41 -54
  40. package/lib/core/config-validator.js +122 -7
  41. package/lib/core/context.js +7 -14
  42. package/lib/core/storage.js +60 -30
  43. package/lib/generators/adspend.js +12 -27
  44. package/lib/generators/events.js +6 -7
  45. package/lib/generators/funnels.js +16 -5
  46. package/lib/generators/product-lookup.js +262 -0
  47. package/lib/generators/product-names.js +195 -0
  48. package/lib/generators/profiles.js +3 -3
  49. package/lib/generators/scd.js +13 -3
  50. package/lib/generators/text.js +17 -4
  51. package/lib/orchestrators/mixpanel-sender.js +251 -208
  52. package/lib/orchestrators/user-loop.js +57 -19
  53. package/lib/templates/funnels-instructions.txt +272 -0
  54. package/lib/templates/hook-examples.json +187 -0
  55. package/lib/templates/hooks-instructions.txt +295 -8
  56. package/lib/templates/phrases.js +473 -16
  57. package/lib/templates/refine-instructions.txt +485 -0
  58. package/lib/templates/schema-instructions.txt +239 -109
  59. package/lib/templates/schema.d.ts +173 -0
  60. package/lib/templates/verbose-schema.js +140 -206
  61. package/lib/utils/ai.js +853 -77
  62. package/lib/utils/chart.js +210 -0
  63. package/lib/utils/function-registry.js +285 -0
  64. package/lib/utils/json-evaluator.js +172 -0
  65. package/lib/utils/logger.js +38 -0
  66. package/lib/utils/mixpanel.js +101 -0
  67. package/lib/utils/project.js +3 -2
  68. package/lib/utils/utils.js +41 -4
  69. package/package.json +13 -19
  70. package/types.d.ts +15 -5
  71. package/lib/generators/text-bak-old.js +0 -1121
  72. package/lib/orchestrators/worker-manager.js +0 -203
  73. package/lib/templates/phrases-bak.js +0 -925
  74. package/lib/templates/prompt (old).txt +0 -98
  75. package/lib/templates/scratch-dungeon-template.js +0 -116
  76. package/lib/templates/textQuickTest.js +0 -172
@@ -0,0 +1,383 @@
1
+ /**
2
+ * This is the default configuration file for the data generator in SIMPLE mode
3
+ * notice how the config object is structured, and see it's type definition in ./types.d.ts
4
+ * feel free to modify this file to customize the data you generate
5
+ * see helper functions in utils.js for more ways to generate data
6
+ */
7
+
8
+
9
+
10
+
11
+ import Chance from 'chance';
12
+ let chance = new Chance();
13
+ import dayjs from "dayjs";
14
+ import utc from "dayjs/plugin/utc.js";
15
+ dayjs.extend(utc);
16
+ import { uid, comma } from 'ak-tools';
17
+ import { pickAWinner, weighNumRange, date, integer, weighChoices, decimal } from "../lib/utils/utils.js";
18
+
19
+ const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Computers", "Smart Home", "Home", "Garden", "Pet", "Beauty", "Health", "Toys", "Kids", "Baby", "Handmade", "Sports", "Outdoors", "Automotive", "Industrial", "Entertainment", "Art", "Food", "Appliances", "Office", "Wedding", "Software"];
20
+ const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
21
+ const spiritAnimals = ["duck", "dog", "otter", "penguin", "cat", "elephant", "lion", "cheetah", "giraffe", "zebra", "rhino", "hippo", "whale", "dolphin", "shark", "octopus", "squid", "jellyfish", "starfish", "seahorse", "crab", "lobster", "shrimp", "clam", "snail", "slug", "butterfly", "moth", "bee", "wasp", "ant", "beetle", "ladybug", "caterpillar", "centipede", "millipede", "scorpion", "spider", "tarantula", "tick", "mite", "mosquito", "fly", "dragonfly", "damselfly", "grasshopper", "cricket", "locust", "mantis", "cockroach", "termite", "praying mantis", "walking stick", "stick bug", "leaf insect", "lacewing", "aphid", "cicada", "thrips", "psyllid", "scale insect", "whitefly", "mealybug", "planthopper", "leafhopper", "treehopper", "flea", "louse", "bedbug", "flea beetle", "weevil", "longhorn beetle", "leaf beetle", "tiger beetle", "ground beetle", "lady beetle", "firefly", "click beetle", "rove beetle", "scarab beetle", "dung beetle", "stag beetle", "rhinoceros beetle", "hercules beetle", "goliath beetle", "jewel beetle", "tortoise beetle"];
22
+
23
+
24
+ function makeProducts(maxItems = 5) {
25
+ return function () {
26
+ const categories = ["electronics", "books", "clothing", "home", "garden", "toys", "sports", "automotive", "beauty", "health", "grocery", "jewelry", "shoes", "tools", "office supplies"];
27
+ const descriptors = ["brand new", "open box", "refurbished", "used", "like new", "vintage", "antique", "collectible"];
28
+ const suffix = ["item", "product", "good", "merchandise", "thing", "object", "widget", "gadget", "device", "apparatus", "contraption", "instrument", "tool", "implement", "utensil", "appliance", "machine", "equipment", "gear", "kit", "set", "package"];
29
+ const assetPreview = ['.png', '.jpg', '.jpeg', '.heic', '.mp4', '.mov', '.avi'];
30
+ const data = [];
31
+ const numOfItems = integer(1, maxItems);
32
+
33
+ for (var i = 0; i < numOfItems; i++) {
34
+ const category = chance.pickone(categories);
35
+ const descriptor = chance.pickone(descriptors);
36
+ const suffixWord = chance.pickone(suffix);
37
+ const slug = `${descriptor.replace(/\s+/g, '-').toLowerCase()}-${suffixWord.replace(/\s+/g, '-').toLowerCase()}`;
38
+ const asset = chance.pickone(assetPreview);
39
+
40
+ // const product_id = chance.guid();
41
+ const price = integer(1, 100);
42
+ const quantity = integer(1, 5);
43
+
44
+ const item = {
45
+ // product_id: product_id,
46
+ // sku: integer(11111, 99999),
47
+ amount: price,
48
+ quantity: quantity,
49
+ total_value: price * quantity,
50
+ featured: chance.pickone([true, false, false]),
51
+ category: category,
52
+ descriptor: descriptor,
53
+ slug: slug,
54
+ assetPreview: `https://example.com/assets/${slug}${asset}`,
55
+ assetType: asset
56
+
57
+ };
58
+
59
+ data.push(item);
60
+ }
61
+
62
+ return () => [data];
63
+ };
64
+ };
65
+
66
+
67
+ /** @type {import('../types').Dungeon} */
68
+ const config = {
69
+ token: "a4152b30c5276306151de1146321997e",
70
+ seed: "simple is best",
71
+ numDays: 108, //how many days worth1 of data
72
+ numEvents: 2_000_000, //how many events
73
+ numUsers: 50_000, //how many users
74
+ format: 'json', //csv or json
75
+ region: "US",
76
+ hasAnonIds: false, //if true, anonymousIds are created for each user
77
+ hasSessionIds: false, //if true, hasSessionIds are created for each user
78
+ hasAdSpend: false,
79
+ makeChart: false,
80
+ hasLocation: true,
81
+ hasAndroidDevices: true,
82
+ hasIOSDevices: true,
83
+ hasDesktopDevices: true,
84
+ hasBrowser: true,
85
+ hasCampaigns: false,
86
+ isAnonymous: false,
87
+ alsoInferFunnels: false,
88
+ concurrency: 1,
89
+ batchSize: 2_500_000,
90
+ percentUsersBornInDataset: 25,
91
+ events: [
92
+ {
93
+ event: "checkout",
94
+ weight: 2,
95
+ properties: {
96
+ currency: pickAWinner(["USD", "CAD", "EUR", "BTC", "ETH", "JPY"], 0),
97
+ coupon: weighChoices(["none", "none", "none", "none", "10%OFF", "20%OFF", "10%OFF", "20%OFF", "30%OFF", "40%OFF", "50%OFF"]),
98
+ cart: makeProducts()
99
+ }
100
+ },
101
+ {
102
+ event: "add to cart",
103
+ weight: 4,
104
+ properties: {
105
+ item: makeProducts(1),
106
+ }
107
+ },
108
+ {
109
+ event: "view item",
110
+ weight: 8,
111
+ properties: {
112
+ item: makeProducts(1)
113
+ }
114
+ },
115
+ {
116
+ event: "save item",
117
+ weight: 5,
118
+ properties: {
119
+ item: makeProducts(1),
120
+ }
121
+ },
122
+ {
123
+ event: "page view",
124
+ weight: 10,
125
+ properties: {
126
+ page: ["/", "/help", "/account", "/watch", "/listen", "/product", "/people", "/peace"],
127
+ }
128
+ },
129
+ {
130
+ event: "watch video",
131
+ weight: 8,
132
+ properties: {
133
+ watchTimeSec: weighNumRange(10, 600, .25),
134
+ }
135
+ },
136
+ {
137
+ event: "like video",
138
+ weight: 6,
139
+ properties: {
140
+
141
+ }
142
+ },
143
+ {
144
+ event: "dislike video",
145
+ weight: 4,
146
+ properties: {
147
+
148
+ }
149
+ },
150
+ {
151
+ event: "sign up",
152
+ weight: 1,
153
+ isFirstEvent: true,
154
+ properties: {
155
+ signupMethod: pickAWinner(["email", "google", "facebook", "twitter", "linkedin", "github"]),
156
+ referral: weighChoices(["none", "none", "none", "friend", "ad", "ad", "ad", "friend", "friend", "friend", "friend"]),
157
+ }
158
+ },
159
+
160
+ ],
161
+ funnels: [
162
+ {
163
+ sequence: ["page view", "view item", "save item", "page view", "sign up"],
164
+ conversionRate: 50,
165
+ order: "first-and-last-fixed",
166
+ weight: 1,
167
+ isFirstFunnel: true,
168
+ timeToConvert: 2,
169
+ experiment: false,
170
+ name: "Signup Flow"
171
+
172
+ },
173
+ {
174
+ sequence: ["watch video", "like video", "watch video", "like video"],
175
+ name: "Video Likes",
176
+ conversionRate: 60,
177
+ props: {
178
+ videoCategory: videoCategories,
179
+ quality: ["2160p", "1440p", "1080p", "720p", "480p", "360p", "240p"],
180
+ format: ["mp4", "avi", "mov", "mpg"],
181
+ uploader_id: chance.guid.bind(chance)
182
+ }
183
+ },
184
+ {
185
+ name: "Video Dislikes",
186
+ sequence: ["watch video", "dislike video", "watch video", "dislike video"],
187
+ conversionRate: 20,
188
+ props: {
189
+ videoCategory: videoCategories,
190
+ quality: ["2160p", "1440p", "1080p", "720p", "480p", "360p", "240p"],
191
+ format: ["mp4", "avi", "mov", "mpg"],
192
+ uploader_id: chance.guid.bind(chance)
193
+ }
194
+ },
195
+ {
196
+ name: "eCommerce Purchase",
197
+ sequence: ["view item", "view item", "add to cart", "view item", "add to cart", "checkout"],
198
+ conversionRate: 15,
199
+ requireRepeats: true,
200
+ weight: 10,
201
+ order: "last-fixed",
202
+ }
203
+
204
+ ],
205
+ superProps: {
206
+ theme: pickAWinner(["light", "dark", "custom", "light", "dark"]),
207
+ },
208
+ /*
209
+ user properties work the same as event properties
210
+ each key should be an array or function reference
211
+ */
212
+ userProps: {
213
+ title: chance.profession.bind(chance),
214
+ luckyNumber: weighNumRange(42, 420, .3),
215
+ spiritAnimal: spiritAnimals
216
+ },
217
+ scdProps: {},
218
+ mirrorProps: {},
219
+
220
+ /*
221
+ for group analytics keys, we need an array of arrays [[],[],[]]
222
+ each pair represents a group_key and the number of profiles for that key
223
+ */
224
+ groupKeys: [],
225
+ groupProps: {},
226
+ lookupTables: [],
227
+ hook: function (record, type, meta) {
228
+
229
+ if (type === "event") {
230
+ const NOW = dayjs();
231
+ const DAY_SIGNUPS_IMPROVED = NOW.subtract(7, 'day');
232
+ const DAY_WATCH_TIME_WENT_UP = NOW.subtract(30, 'day');
233
+ const eventTime = dayjs(record.time);
234
+
235
+ // unflattering 'items'
236
+ if (record.item && Array.isArray(record.item)) {
237
+ record = { ...record, ...record.item[0] };
238
+ delete record.item;
239
+ }
240
+
241
+ if (record.event === 'sign up') {
242
+ record.signup_flow = "v1";
243
+ if (eventTime.isBefore(DAY_SIGNUPS_IMPROVED)) {
244
+ // 50% of the time kill the signup
245
+ if (chance.bool({ likelihood: 50 })) {
246
+ return null;
247
+ }
248
+ }
249
+ if (eventTime.isAfter(DAY_SIGNUPS_IMPROVED)) {
250
+ record.signup_flow = "v2";
251
+ }
252
+ }
253
+
254
+ if (record.event === 'watch video') {
255
+ const factor = decimal(0.25, 0.79);
256
+ if (eventTime.isBefore(DAY_WATCH_TIME_WENT_UP)) {
257
+ record.watchTimeSec = Math.round(record.watchTimeSec * (1 - factor));
258
+ }
259
+ if (eventTime.isAfter(DAY_WATCH_TIME_WENT_UP)) {
260
+ // increase watch time by 33%
261
+ record.watchTimeSec = Math.round(record.watchTimeSec * (1 + factor));
262
+ }
263
+
264
+ }
265
+
266
+ // toys + shoes frequently purchases together (and are higher cart values)
267
+ if (record.event === 'checkout' && Array.isArray(record.cart)) {
268
+ const hasToys = record.cart.some(item => item.category === 'toys');
269
+ const hasShoes = record.cart.some(item => item.category === 'shoes');
270
+ if (hasToys && !hasShoes) {
271
+ const bigCart = makeProducts(20)()()[0];
272
+ const shoeItems = bigCart.filter(item => item.category === 'shoes');
273
+ if (shoeItems.length > 0) {
274
+ record.cart.push(shoeItems[0]);
275
+ }
276
+ }
277
+
278
+ if (hasShoes && !hasToys) {
279
+ const bigCart = makeProducts(20)()()[0];
280
+ const toyItems = bigCart.filter(item => item.category === 'toys');
281
+ if (toyItems.length > 0) {
282
+ record.cart.push(toyItems[0]);
283
+ }
284
+ }
285
+
286
+ if (!hasToys && !hasShoes) {
287
+ const cheapFactor = decimal(.75, 0.9);
288
+ // make every item a bit cheaper
289
+ record.cart = record.cart.map(item => {
290
+ return {
291
+ ...item,
292
+ amount: Math.round(item.amount * cheapFactor),
293
+ total_value: Math.round(item.total_value * cheapFactor)
294
+ };
295
+ });
296
+ }
297
+ }
298
+ // high quality video means longer watch times (lower quality shorter watch times)
299
+ if (record.event === 'watch video') {
300
+ const qualityFactors = {
301
+ "2160p": 1.5,
302
+ "1440p": 1.4,
303
+ "1080p": 1.3,
304
+ "720p": 1.15,
305
+ "480p": 1.0,
306
+ "360p": 0.85,
307
+ "240p": 0.7
308
+ };
309
+ const quality = record.quality || "480p";
310
+ const factor = qualityFactors[quality] || 1.0;
311
+ record.watchTimeSec = Math.round(record.watchTimeSec * factor);
312
+ }
313
+
314
+
315
+
316
+ }
317
+
318
+
319
+
320
+ if (type === "everything") {
321
+ // big themes!
322
+
323
+ // users who view items in the home and garden category churn more frequently
324
+
325
+
326
+
327
+ // dark mode leads to faster purchase conversion
328
+
329
+
330
+ // people who pay in bitcoin tend to buy more electronics and gadgets
331
+
332
+
333
+ //custom themes purchase more:
334
+ // const numCustomMode = record.filter(a => a.theme === 'custom').length;
335
+ // const numLightMode = record.filter(a => a.theme === 'light').length;
336
+ // const numDarkMode = record.filter(a => a.theme === 'dark').length;
337
+ // if (numCustomMode > numLightMode || numCustomMode > numDarkMode) {
338
+ // //triple their checkout events
339
+ // const checkoutEvents = record.filter(a => a.event === 'checkout');
340
+ // const newCheckouts = checkoutEvents.map(a => {
341
+ // const randomInt = integer(-48, 48);
342
+ // const newCheckout = {
343
+ // ...a,
344
+ // time: dayjs(a.time).add(randomInt, 'hour').toISOString(),
345
+ // event: "checkout",
346
+ // amount: a.amount * 2,
347
+ // coupon: "50%OFF"
348
+ // };
349
+ // return newCheckout;
350
+ // });
351
+ // record.push(...newCheckouts);
352
+ // }
353
+
354
+ // //users who watch low quality videos churn more:
355
+ // const loQuality = ["480p", "360p", "240p"];
356
+ // const lowQualityWatches = record.filter(a => a.event === 'watch video' && loQuality.includes(a.quality));
357
+ // const highQualityWatches = record.filter(a => a.event === 'watch video' && !loQuality.includes(a.quality));
358
+ // if (lowQualityWatches.length > highQualityWatches.length) {
359
+ // if (flip()) {
360
+ // // find midpoint of records
361
+ // const midpoint = Math.floor(record.length / 2);
362
+ // record = record.slice(0, midpoint);
363
+
364
+ // }
365
+ // }
366
+
367
+
368
+
369
+
370
+ }
371
+
372
+
373
+
374
+ return record;
375
+ }
376
+ };
377
+
378
+ function flip(likelihood = 50) {
379
+ return chance.bool({ likelihood });
380
+ }
381
+
382
+
383
+ export default config;
File without changes
@@ -1,8 +1,8 @@
1
1
 
2
2
  import dayjs from 'dayjs';
3
- import utc from 'dayjs/plugin/utc';
3
+ import utc from 'dayjs/plugin/utc.js';
4
4
  import 'dotenv/config';
5
- import * as u from '../lib/utils/utils.js';
5
+ import * as u from "../lib/utils/utils.js";
6
6
  import * as v from 'ak-tools';
7
7
 
8
8
  const SEED = "my-seed";
@@ -15,7 +15,7 @@ const days = 100;
15
15
 
16
16
  /** @type {Config} */
17
17
  const config = {
18
- token: "",
18
+ token: process.env.MASTER_PROJECT_TOKEN || "",
19
19
  seed: SEED,
20
20
  numDays: days,
21
21
  numEvents: num_users * 100,
@@ -34,9 +34,10 @@ const config = {
34
34
  hasAdSpend: false,
35
35
 
36
36
  hasAvatar: true,
37
+ makeChart: false,
37
38
 
38
39
 
39
- batchSize: 1_500_000,
40
+ batchSize: 2_500_000,
40
41
  concurrency: 1,
41
42
  writeToDisk: false,
42
43
 
@@ -25,106 +25,106 @@ function integer(min = 1, max = 100) {
25
25
 
26
26
 
27
27
  const dates = [
28
- "2026-09-18T21:48:28.173Z",
29
- "2026-12-09T03:17:46.661Z",
30
- "2026-02-26T07:52:14.943Z",
31
- "2026-04-22T08:35:17.647Z",
32
- "2026-11-25T17:03:58.061Z",
33
- "2026-01-14T21:46:58.982Z",
34
- "2026-06-20T12:47:25.687Z",
35
- "2026-08-13T22:18:08.665Z",
36
- "2026-08-09T07:47:18.321Z",
37
- "2026-06-21T19:04:43.432Z",
38
- "2026-03-09T00:18:37.705Z",
39
- "2026-08-02T09:23:41.699Z",
40
- "2026-11-26T13:25:08.673Z",
41
- "2026-05-23T11:51:34.238Z",
42
- "2026-10-24T20:14:05.106Z",
43
- "2026-10-01T18:52:32.463Z",
44
- "2026-10-15T19:22:40.675Z",
45
- "2026-06-13T21:29:11.962Z",
46
- "2026-08-29T12:02:48.632Z",
47
- "2026-12-22T12:11:40.809Z",
48
- "2026-01-03T03:39:19.446Z",
49
- "2026-06-28T10:05:43.908Z",
50
- "2026-12-01T18:49:00.447Z",
51
- "2026-12-30T05:44:23.418Z",
52
- "2026-03-14T22:38:40.833Z",
53
- "2026-12-28T06:45:31.946Z",
54
- "2026-07-20T21:40:19.498Z",
55
- "2026-12-26T06:44:41.982Z",
56
- "2026-10-28T13:45:35.409Z",
57
- "2026-02-28T00:11:54.916Z",
58
- "2026-07-08T10:01:57.834Z",
59
- "2026-02-23T08:00:59.386Z",
60
- "2026-08-20T05:23:33.024Z",
61
- "2026-02-10T20:52:46.564Z",
62
- "2026-08-24T21:32:15.202Z",
63
- "2026-06-17T03:51:35.142Z",
64
- "2026-04-09T13:13:45.218Z",
65
- "2026-07-26T16:31:51.091Z",
66
- "2026-05-26T04:06:33.013Z",
67
- "2026-11-05T17:15:37.412Z",
68
- "2026-10-20T17:01:38.205Z",
69
- "2026-01-08T05:09:18.692Z",
70
- "2026-08-24T13:52:14.774Z",
71
- "2026-06-26T13:47:07.276Z",
72
- "2026-06-19T15:05:53.246Z",
73
- "2026-05-01T04:06:52.028Z",
74
- "2026-05-26T22:45:59.626Z",
75
- "2026-04-17T20:50:58.460Z",
76
- "2026-07-28T04:32:04.578Z",
77
- "2026-01-29T05:31:48.744Z",
78
- "2026-08-06T18:47:29.190Z",
79
- "2026-04-03T23:12:20.415Z",
80
- "2026-09-13T08:47:35.938Z",
81
- "2026-07-27T15:12:15.145Z",
82
- "2026-10-24T00:39:21.835Z",
83
- "2026-10-08T16:50:36.591Z",
84
- "2026-02-27T15:53:19.204Z",
85
- "2026-04-21T08:24:05.883Z",
86
- "2026-03-08T10:07:46.720Z",
87
- "2026-01-10T08:36:19.554Z",
88
- "2026-02-17T12:56:00.562Z",
89
- "2026-10-03T07:54:46.486Z",
90
- "2026-05-29T10:18:36.289Z",
91
- "2026-05-06T23:27:07.145Z",
92
- "2026-05-27T08:41:47.787Z",
93
- "2026-09-16T12:22:09.573Z",
94
- "2026-05-03T00:31:06.036Z",
95
- "2026-11-24T19:38:43.380Z",
96
- "2026-06-03T04:01:56.328Z",
97
- "2026-05-04T02:25:25.455Z",
98
- "2026-12-19T18:35:25.052Z",
99
- "2026-05-07T21:54:28.113Z",
100
- "2026-11-24T09:58:08.766Z",
101
- "2026-03-17T02:46:20.903Z",
102
- "2026-09-04T09:20:24.930Z",
103
- "2026-02-04T10:23:33.624Z",
104
- "2026-01-26T02:42:06.668Z",
105
- "2026-08-11T02:26:21.969Z",
106
- "2026-07-11T13:34:51.283Z",
107
- "2026-12-20T00:09:10.080Z",
108
- "2026-05-28T00:20:07.079Z",
109
- "2026-01-13T14:54:03.339Z",
110
- "2026-08-10T17:18:12.759Z",
111
- "2026-10-06T15:05:11.437Z",
112
- "2026-11-18T03:53:12.932Z",
113
- "2026-02-19T18:06:13.680Z",
114
- "2026-08-03T11:48:00.207Z",
115
- "2026-11-22T15:19:47.316Z",
116
- "2026-06-30T19:56:49.636Z",
117
- "2026-12-03T00:25:23.926Z",
118
- "2026-07-30T15:27:18.198Z",
119
- "2026-09-07T01:40:58.245Z",
120
- "2026-05-16T05:24:14.727Z",
121
- "2026-11-14T03:46:49.323Z",
122
- "2026-02-16T09:18:23.473Z",
123
- "2026-10-19T14:07:11.462Z",
124
- "2026-02-09T08:52:04.735Z",
125
- "2026-06-06T09:41:11.810Z",
126
- "2026-05-07T23:14:05.114Z",
127
- "2026-06-03T06:52:21.652Z"
28
+ "2024-09-18T21:48:28.173Z",
29
+ "2024-12-09T03:17:46.661Z",
30
+ "2024-02-26T07:52:14.943Z",
31
+ "2024-04-22T08:35:17.647Z",
32
+ "2024-11-25T17:03:58.061Z",
33
+ "2024-01-14T21:46:58.982Z",
34
+ "2024-06-20T12:47:25.687Z",
35
+ "2024-08-13T22:18:08.665Z",
36
+ "2024-08-09T07:47:18.321Z",
37
+ "2024-06-21T19:04:43.432Z",
38
+ "2024-03-09T00:18:37.705Z",
39
+ "2024-08-02T09:23:41.699Z",
40
+ "2024-11-26T13:25:08.673Z",
41
+ "2024-05-23T11:51:34.238Z",
42
+ "2024-10-24T20:14:05.106Z",
43
+ "2024-10-01T18:52:32.463Z",
44
+ "2024-10-15T19:22:40.675Z",
45
+ "2024-06-13T21:29:11.962Z",
46
+ "2024-08-29T12:02:48.632Z",
47
+ "2024-12-22T12:11:40.809Z",
48
+ "2024-01-03T03:39:19.446Z",
49
+ "2024-06-28T10:05:43.908Z",
50
+ "2024-12-01T18:49:00.447Z",
51
+ "2024-12-30T05:44:23.418Z",
52
+ "2024-03-14T22:38:40.833Z",
53
+ "2024-12-28T06:45:31.946Z",
54
+ "2024-07-20T21:40:19.498Z",
55
+ "2024-12-26T06:44:41.982Z",
56
+ "2024-10-28T13:45:35.409Z",
57
+ "2024-02-28T00:11:54.916Z",
58
+ "2024-07-08T10:01:57.834Z",
59
+ "2024-02-23T08:00:59.386Z",
60
+ "2024-08-20T05:23:33.024Z",
61
+ "2024-02-10T20:52:46.564Z",
62
+ "2024-08-24T21:32:15.202Z",
63
+ "2024-06-17T03:51:35.142Z",
64
+ "2024-04-09T13:13:45.218Z",
65
+ "2024-07-26T16:31:51.091Z",
66
+ "2024-05-26T04:06:33.013Z",
67
+ "2024-11-05T17:15:37.412Z",
68
+ "2024-10-20T17:01:38.205Z",
69
+ "2024-01-08T05:09:18.692Z",
70
+ "2024-08-24T13:52:14.774Z",
71
+ "2024-06-26T13:47:07.276Z",
72
+ "2024-06-19T15:05:53.246Z",
73
+ "2024-05-01T04:06:52.028Z",
74
+ "2024-05-26T22:45:59.626Z",
75
+ "2024-04-17T20:50:58.460Z",
76
+ "2024-07-28T04:32:04.578Z",
77
+ "2024-01-29T05:31:48.744Z",
78
+ "2024-08-06T18:47:29.190Z",
79
+ "2024-04-03T23:12:20.415Z",
80
+ "2024-09-13T08:47:35.938Z",
81
+ "2024-07-27T15:12:15.145Z",
82
+ "2024-10-24T00:39:21.835Z",
83
+ "2024-10-08T16:50:36.591Z",
84
+ "2024-02-27T15:53:19.204Z",
85
+ "2024-04-21T08:24:05.883Z",
86
+ "2024-03-08T10:07:46.720Z",
87
+ "2024-01-10T08:36:19.554Z",
88
+ "2024-02-17T12:56:00.562Z",
89
+ "2024-10-03T07:54:46.486Z",
90
+ "2024-05-29T10:18:36.289Z",
91
+ "2024-05-06T23:27:07.145Z",
92
+ "2024-05-27T08:41:47.787Z",
93
+ "2024-09-16T12:22:09.573Z",
94
+ "2024-05-03T00:31:06.036Z",
95
+ "2024-11-24T19:38:43.380Z",
96
+ "2024-06-03T04:01:56.328Z",
97
+ "2024-05-04T02:25:25.455Z",
98
+ "2024-12-19T18:35:25.052Z",
99
+ "2024-05-07T21:54:28.113Z",
100
+ "2024-11-24T09:58:08.766Z",
101
+ "2024-03-17T02:46:20.903Z",
102
+ "2024-09-04T09:20:24.930Z",
103
+ "2024-02-04T10:23:33.624Z",
104
+ "2024-01-26T02:42:06.668Z",
105
+ "2024-08-11T02:26:21.969Z",
106
+ "2024-07-11T13:34:51.283Z",
107
+ "2024-12-20T00:09:10.080Z",
108
+ "2024-05-28T00:20:07.079Z",
109
+ "2024-01-13T14:54:03.339Z",
110
+ "2024-08-10T17:18:12.759Z",
111
+ "2024-10-06T15:05:11.437Z",
112
+ "2024-11-18T03:53:12.932Z",
113
+ "2024-02-19T18:06:13.680Z",
114
+ "2024-08-03T11:48:00.207Z",
115
+ "2024-11-22T15:19:47.316Z",
116
+ "2024-06-30T19:56:49.636Z",
117
+ "2024-12-03T00:25:23.926Z",
118
+ "2024-07-30T15:27:18.198Z",
119
+ "2024-09-07T01:40:58.245Z",
120
+ "2024-05-16T05:24:14.727Z",
121
+ "2024-11-14T03:46:49.323Z",
122
+ "2024-02-16T09:18:23.473Z",
123
+ "2024-10-19T14:07:11.462Z",
124
+ "2024-02-09T08:52:04.735Z",
125
+ "2024-06-06T09:41:11.810Z",
126
+ "2024-05-07T23:14:05.114Z",
127
+ "2024-06-03T06:52:21.652Z"
128
128
  ];
129
129
 
130
130
  const billionsOfEvents = 2
@@ -136,7 +136,7 @@ const seed = Math.random().toString()
136
136
 
137
137
  /** @type {import('../types').Dungeon} */
138
138
  const config = {
139
- token: "",
139
+ token: process.env.MASTER_PROJECT_TOKEN || "",
140
140
  seed: seed,
141
141
  numDays: 30, //how many days worth of data
142
142
  numEvents: numEvents, //how many events
@@ -14,7 +14,7 @@ import dayjs from "dayjs";
14
14
  import utc from "dayjs/plugin/utc.js";
15
15
  dayjs.extend(utc);
16
16
  import { uid, comma } from 'ak-tools';
17
- import { pickAWinner, weighNumRange, date, integer } from '../lib/utils/utils.js';
17
+ import { pickAWinner, weighNumRange, date, integer } from "../lib/utils/utils.js";
18
18
 
19
19
  const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Computers", "Smart Home", "Home", "Garden", "Pet", "Beauty", "Health", "Toys", "Kids", "Baby", "Handmade", "Sports", "Outdoors", "Automotive", "Industrial", "Entertainment", "Art", "Food", "Appliances", "Office", "Wedding", "Software"];
20
20
 
@@ -22,7 +22,7 @@ const videoCategories = ["funny", "educational", "inspirational", "music", "news
22
22
 
23
23
  /** @type {import('../types').Dungeon} */
24
24
  const config = {
25
- token: "",
25
+ token: process.env.MASTER_PROJECT_TOKEN || "",
26
26
  seed: "simple is best",
27
27
  numDays: 30, //how many days worth of data
28
28
  numEvents: 50000, //how many events
@@ -15,7 +15,7 @@ const days = 180;
15
15
 
16
16
  /** @type {Config} */
17
17
  const config = {
18
- token: "",
18
+ token: process.env.MASTER_PROJECT_TOKEN || "",
19
19
  seed: "i am gamer face",
20
20
  numDays: days,
21
21
  numEvents: num_users * 90,
@@ -35,8 +35,9 @@ const config = {
35
35
  percentUsersBornInDataset: 25,
36
36
 
37
37
  hasAvatar: true,
38
+ makeChart: false,
38
39
 
39
- batchSize: 1_500_000,
40
+ batchSize: 2_500_000,
40
41
  concurrency: 1,
41
42
  writeToDisk: true,
42
43
  funnels: [