make-mp-data 3.0.4 → 3.0.5
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/README.md +46 -0
- package/dungeons/array-of-object-lookup-schema.json +327 -0
- package/dungeons/array-of-object-lookup.js +28 -8
- package/dungeons/capstone/capstone-ic3.js +291 -0
- package/dungeons/capstone/capstone-ic4.js +598 -0
- package/dungeons/capstone/capstone-ic5.js +668 -0
- package/dungeons/capstone/generate-product-lookup.js +309 -0
- package/dungeons/ecommerce-schema.json +462 -0
- package/dungeons/{copilot.js → ecommerce.js} +77 -15
- package/dungeons/education-schema.json +2409 -0
- package/dungeons/education.js +206 -442
- package/dungeons/fintech-schema.json +14034 -0
- package/dungeons/fintech.js +110 -389
- package/dungeons/foobar-schema.json +403 -0
- package/dungeons/foobar.js +27 -4
- package/dungeons/food-delivery-schema.json +192 -0
- package/dungeons/food-delivery.js +602 -0
- package/dungeons/food-schema.json +1152 -0
- package/dungeons/food.js +150 -383
- package/dungeons/gaming-schema.json +1270 -0
- package/dungeons/gaming.js +143 -3
- package/dungeons/insurance-application-schema.json +204 -0
- package/dungeons/insurance-application.js +605 -0
- package/dungeons/media-schema.json +906 -0
- package/dungeons/media.js +221 -391
- package/dungeons/retention-cadence-schema.json +78 -0
- package/dungeons/retention-cadence.js +35 -1
- package/dungeons/rpg-schema.json +4526 -0
- package/dungeons/rpg.js +130 -388
- package/dungeons/sanity-schema.json +255 -0
- package/dungeons/sanity.js +21 -10
- package/dungeons/sass-schema.json +1291 -0
- package/dungeons/sass.js +210 -337
- package/dungeons/scd-schema.json +919 -0
- package/dungeons/scd.js +38 -10
- package/dungeons/simple-schema.json +608 -0
- package/dungeons/simple.js +48 -11
- package/dungeons/simplest-schema.json +1418 -0
- package/dungeons/simplest.js +392 -0
- package/dungeons/social-schema.json +1118 -0
- package/dungeons/social.js +124 -365
- package/dungeons/text-generation-schema.json +3096 -0
- package/dungeons/text-generation.js +71 -0
- package/index.js +6 -3
- package/lib/core/config-validator.js +18 -0
- package/lib/core/storage.js +5 -5
- package/lib/generators/events.js +4 -4
- package/lib/orchestrators/mixpanel-sender.js +12 -7
- package/lib/orchestrators/user-loop.js +14 -6
- package/lib/templates/soup-presets.js +188 -0
- package/lib/utils/utils.js +52 -6
- package/package.json +1 -1
- package/types.d.ts +20 -3
- package/dungeons/adspend.js +0 -117
- package/dungeons/anon.js +0 -128
- package/dungeons/benchmark-heavy.js +0 -240
- package/dungeons/benchmark-light.js +0 -126
- package/dungeons/big.js +0 -226
- package/dungeons/business.js +0 -391
- package/dungeons/complex.js +0 -428
- package/dungeons/experiments.js +0 -137
- package/dungeons/funnels.js +0 -309
- package/dungeons/mil.js +0 -323
- package/dungeons/mirror.js +0 -160
- package/dungeons/soup-test.js +0 -52
- package/dungeons/streaming.js +0 -372
- package/dungeons/strict-event-test.js +0 -30
- package/dungeons/student-teacher.js +0 -438
- package/dungeons/too-big-events.js +0 -203
- package/dungeons/user-agent.js +0 -209
package/dungeons/simple.js
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
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
1
|
import Chance from 'chance';
|
|
12
2
|
let chance = new Chance();
|
|
13
3
|
import dayjs from "dayjs";
|
|
@@ -20,9 +10,56 @@ const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Com
|
|
|
20
10
|
|
|
21
11
|
const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
|
|
22
12
|
|
|
13
|
+
/**
|
|
14
|
+
* ═══════════════════════════════════════════════════════════════
|
|
15
|
+
* DATASET OVERVIEW
|
|
16
|
+
* ═══════════════════════════════════════════════════════════════
|
|
17
|
+
*
|
|
18
|
+
* Simple E-Commerce + Media App
|
|
19
|
+
* - 5,000 users over 100 days, ~500K events
|
|
20
|
+
* - Events: ad impressions/clicks, page views, video watching,
|
|
21
|
+
* item browsing/saving, cart, checkout, signup
|
|
22
|
+
* - Signup funnel with A/B experiment
|
|
23
|
+
* - Campaigns, location, browser, and device data enabled
|
|
24
|
+
*
|
|
25
|
+
* ═══════════════════════════════════════════════════════════════
|
|
26
|
+
* ANALYTICS HOOKS (3 patterns)
|
|
27
|
+
* ═══════════════════════════════════════════════════════════════
|
|
28
|
+
*
|
|
29
|
+
* 1. TEMPORAL IMPROVEMENT (event hook)
|
|
30
|
+
* After 15 days ago: checkout amounts 1.5x, watch times 1.5x.
|
|
31
|
+
* Before that: 33% of events are dropped (tagged _drop, filtered in everything).
|
|
32
|
+
*
|
|
33
|
+
* Mixpanel Report:
|
|
34
|
+
* - Insights > Line Chart: "checkout", AVG(amount) by Day
|
|
35
|
+
* Expected: visible 1.5x uplift in the last 15 days
|
|
36
|
+
* - Insights > Line Chart: Total event count by Day
|
|
37
|
+
* Expected: ~33% lower volume before 15 days ago, then step-up
|
|
38
|
+
*
|
|
39
|
+
* 2. CUSTOM THEME POWER BUYERS (everything hook)
|
|
40
|
+
* Users whose custom-theme events outnumber light or dark get
|
|
41
|
+
* all checkout events tripled with 2x amount and "50%OFF" coupon.
|
|
42
|
+
*
|
|
43
|
+
* Mixpanel Report:
|
|
44
|
+
* - Funnels: any multi-step funnel, breakdown by theme
|
|
45
|
+
* Expected: "custom" theme users show much higher checkout counts
|
|
46
|
+
* - Insights: "checkout", AVG(amount), breakdown by coupon
|
|
47
|
+
* Expected: "50%OFF" spike from power buyers
|
|
48
|
+
*
|
|
49
|
+
* 3. LOW-QUALITY VIDEO CHURN (everything hook)
|
|
50
|
+
* Users who watch more low-quality (480p/360p/240p) than high-quality
|
|
51
|
+
* video have a 50% chance of losing all events after their midpoint.
|
|
52
|
+
*
|
|
53
|
+
* Mixpanel Report:
|
|
54
|
+
* - Retention: breakdown by video quality
|
|
55
|
+
* Expected: low-quality watchers show ~50% drop-off from midpoint
|
|
56
|
+
* - Insights > Stacked Line: event count by quality
|
|
57
|
+
* Expected: low-quality cohort volume thins out after midpoint
|
|
58
|
+
*/
|
|
59
|
+
|
|
23
60
|
/** @type {import('../types').Dungeon} */
|
|
24
61
|
const config = {
|
|
25
|
-
token: "
|
|
62
|
+
token: "",
|
|
26
63
|
seed: "simple is best",
|
|
27
64
|
numDays: 100, //how many days worth1 of data
|
|
28
65
|
numEvents: 500_000, //how many events
|