@ak--47/dungeon-master 1.0.0

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 (66) hide show
  1. package/README.md +518 -0
  2. package/dungeons/array-of-object-lookup-schema.json +327 -0
  3. package/dungeons/array-of-object-lookup.js +220 -0
  4. package/dungeons/ecommerce-schema.json +462 -0
  5. package/dungeons/ecommerce.js +447 -0
  6. package/dungeons/education-schema.json +2409 -0
  7. package/dungeons/education.js +768 -0
  8. package/dungeons/fintech-schema.json +14034 -0
  9. package/dungeons/fintech.js +696 -0
  10. package/dungeons/foobar-schema.json +403 -0
  11. package/dungeons/foobar.js +296 -0
  12. package/dungeons/food-delivery-schema.json +192 -0
  13. package/dungeons/food-delivery.js +602 -0
  14. package/dungeons/food-schema.json +1152 -0
  15. package/dungeons/food.js +754 -0
  16. package/dungeons/gaming-schema.json +1270 -0
  17. package/dungeons/gaming.js +508 -0
  18. package/dungeons/insurance-application-schema.json +204 -0
  19. package/dungeons/insurance-application.js +605 -0
  20. package/dungeons/media-schema.json +906 -0
  21. package/dungeons/media.js +790 -0
  22. package/dungeons/retention-cadence-schema.json +78 -0
  23. package/dungeons/retention-cadence.js +244 -0
  24. package/dungeons/rpg-schema.json +4526 -0
  25. package/dungeons/rpg.js +919 -0
  26. package/dungeons/sanity-schema.json +255 -0
  27. package/dungeons/sanity.js +152 -0
  28. package/dungeons/sass-schema.json +1291 -0
  29. package/dungeons/sass.js +795 -0
  30. package/dungeons/scd-schema.json +919 -0
  31. package/dungeons/scd.js +277 -0
  32. package/dungeons/simple-schema.json +608 -0
  33. package/dungeons/simple.js +285 -0
  34. package/dungeons/simplest-schema.json +1418 -0
  35. package/dungeons/simplest.js +392 -0
  36. package/dungeons/social-schema.json +1118 -0
  37. package/dungeons/social.js +686 -0
  38. package/dungeons/text-generation-schema.json +3096 -0
  39. package/dungeons/text-generation.js +812 -0
  40. package/index.js +567 -0
  41. package/lib/core/config-validator.js +395 -0
  42. package/lib/core/context.js +204 -0
  43. package/lib/core/dungeon-loader.js +337 -0
  44. package/lib/core/storage.js +379 -0
  45. package/lib/generators/adspend.js +132 -0
  46. package/lib/generators/events.js +271 -0
  47. package/lib/generators/funnels.js +407 -0
  48. package/lib/generators/mirror.js +167 -0
  49. package/lib/generators/product-lookup.js +262 -0
  50. package/lib/generators/product-names.js +195 -0
  51. package/lib/generators/profiles.js +93 -0
  52. package/lib/generators/scd.js +124 -0
  53. package/lib/generators/text.js +1192 -0
  54. package/lib/orchestrators/mixpanel-sender.js +266 -0
  55. package/lib/orchestrators/user-loop.js +335 -0
  56. package/lib/templates/abbreviated.d.ts +169 -0
  57. package/lib/templates/defaults.js +1405 -0
  58. package/lib/templates/phrases.js +2526 -0
  59. package/lib/templates/schema.d.ts +173 -0
  60. package/lib/templates/soup-presets.js +188 -0
  61. package/lib/utils/function-registry.js +302 -0
  62. package/lib/utils/json-evaluator.js +172 -0
  63. package/lib/utils/logger.js +34 -0
  64. package/lib/utils/utils.js +1490 -0
  65. package/package.json +89 -0
  66. package/types.d.ts +865 -0
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@ak--47/dungeon-master",
3
+ "version": "1.0.0",
4
+ "description": "generate fancy datasets",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "types": "types.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./index.js",
11
+ "types": "./types.d.ts"
12
+ },
13
+ "./utils": "./lib/utils/utils.js",
14
+ "./text": "./lib/generators/text.js"
15
+ },
16
+ "files": [
17
+ "index.js",
18
+ "types.d.ts",
19
+ "lib/",
20
+ "dungeons/",
21
+ "!dungeons/customers/",
22
+ "package.json",
23
+ "README.md"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "scripts": {
29
+ "post": "npm publish",
30
+ "test": "NODE_ENV=test vitest run",
31
+ "test:coverage": "NODE_ENV=test vitest run --coverage",
32
+ "typecheck": "tsc --noEmit",
33
+ "dev": "nodemon scratch.mjs --ignore ./data/*",
34
+ "prune": "rm -f ./data/* && rm -f ./tmp/* && rm -f vscode-profile-*",
35
+ "deps": "./scripts/update-deps.sh",
36
+ "dungeon:run": "node ./scripts/run-dungeon.mjs",
37
+ "dungeon:to-json": "node ./scripts/dungeon-to-json.mjs",
38
+ "dungeon:from-json": "node ./scripts/json-to-dungeon.mjs"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/ak--47/dungeon-master.git"
43
+ },
44
+ "keywords": [
45
+ "mixpanel",
46
+ "analytics",
47
+ "tracking",
48
+ "datamart",
49
+ "scd 2",
50
+ "dummy data",
51
+ "fake data",
52
+ "data generation"
53
+ ],
54
+ "author": "ak@mixpanel.com",
55
+ "license": "ISC",
56
+ "bugs": {
57
+ "url": "https://github.com/ak--47/dungeon-master/issues"
58
+ },
59
+ "homepage": "https://github.com/ak--47/dungeon-master#readme",
60
+ "dependencies": {
61
+ "@google-cloud/storage": "^7.14.0",
62
+ "ak-tools": "^1.1.12",
63
+ "chance": "^1.1.11",
64
+ "dayjs": "^1.11.11",
65
+ "dotenv": "^16.4.5",
66
+ "hyparquet-writer": "^0.6.1",
67
+ "mixpanel": "^0.18.0",
68
+ "mixpanel-import": "^3.2.8",
69
+ "p-limit": "^3.1.0",
70
+ "pino": "^9.0.0",
71
+ "pino-pretty": "^11.0.0",
72
+ "seedrandom": "^3.0.5",
73
+ "sentiment": "^5.0.2",
74
+ "tracery-grammar": "^2.8.4"
75
+ },
76
+ "devDependencies": {
77
+ "@vitest/coverage-v8": "^2.1.9",
78
+ "@vitest/ui": "^2.1.9",
79
+ "nodemon": "^3.1.3",
80
+ "typescript": "^5.6.0",
81
+ "vitest": "^2.1.9"
82
+ },
83
+ "nodemonConfig": {
84
+ "ignore": [
85
+ "data/",
86
+ "tmp/"
87
+ ]
88
+ }
89
+ }