mango-lollipop 0.1.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.
- package/CLAUDE.md +69 -0
- package/LICENSE +21 -0
- package/README.md +264 -0
- package/bin/mango-lollipop.js +385 -0
- package/dist/excel.d.ts +4 -0
- package/dist/excel.js +342 -0
- package/dist/html.d.ts +4 -0
- package/dist/html.js +938 -0
- package/dist/schema.d.ts +120 -0
- package/dist/schema.js +211 -0
- package/lib/excel.ts +433 -0
- package/lib/html.ts +993 -0
- package/lib/schema.ts +394 -0
- package/package.json +44 -0
- package/skills/audit/SKILL.md +248 -0
- package/skills/dev-handoff/SKILL.md +295 -0
- package/skills/generate-dashboard/SKILL.md +195 -0
- package/skills/generate-matrix/SKILL.md +374 -0
- package/skills/generate-messages/SKILL.md +262 -0
- package/skills/iterate/SKILL.md +242 -0
- package/skills/start/SKILL.md +310 -0
- package/templates/copywriting-guide.md +155 -0
- package/templates/dashboard.html +522 -0
- package/templates/events/saas-collaboration.yaml +50 -0
- package/templates/events/saas-document.yaml +44 -0
- package/templates/events/saas-general.yaml +38 -0
- package/templates/events/saas-marketplace.yaml +48 -0
- package/templates/overview.html +598 -0
- package/templates/saas-matrix.json +172 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "saas-general",
|
|
3
|
+
"transactional": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "email-verification",
|
|
6
|
+
"id": "TX-01",
|
|
7
|
+
"name": "Verify your email",
|
|
8
|
+
"trigger": { "event": "user.signed_up", "type": "event" },
|
|
9
|
+
"wait": "P0D",
|
|
10
|
+
"channels": ["email"],
|
|
11
|
+
"tags": ["type:transactional"],
|
|
12
|
+
"required": true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"pattern": "password-reset",
|
|
16
|
+
"id": "TX-02",
|
|
17
|
+
"name": "Password reset",
|
|
18
|
+
"trigger": { "event": "user.password_reset_requested", "type": "event" },
|
|
19
|
+
"wait": "P0D",
|
|
20
|
+
"channels": ["email"],
|
|
21
|
+
"tags": ["type:transactional"],
|
|
22
|
+
"required": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"pattern": "payment-receipt",
|
|
26
|
+
"id": "TX-03",
|
|
27
|
+
"name": "Payment receipt",
|
|
28
|
+
"trigger": { "event": "subscription.payment_processed", "type": "event" },
|
|
29
|
+
"wait": "P0D",
|
|
30
|
+
"channels": ["email"],
|
|
31
|
+
"tags": ["type:transactional"],
|
|
32
|
+
"required": true
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"stages": {
|
|
36
|
+
"acquisition": {
|
|
37
|
+
"messages": [
|
|
38
|
+
{
|
|
39
|
+
"pattern": "welcome",
|
|
40
|
+
"name": "Welcome to {product}",
|
|
41
|
+
"trigger": { "event": "user.email_verified", "type": "event" },
|
|
42
|
+
"wait": "PT5M",
|
|
43
|
+
"channels": ["email"],
|
|
44
|
+
"tags": ["type:educational"],
|
|
45
|
+
"required": true,
|
|
46
|
+
"notes": "USP summary, quick-start CTA, support info"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"activation": {
|
|
51
|
+
"strategy": "feature-drip",
|
|
52
|
+
"notes": "One feature per message. Suppress if already used.",
|
|
53
|
+
"messages": [
|
|
54
|
+
{
|
|
55
|
+
"pattern": "feature-highlight",
|
|
56
|
+
"wait": "P2D",
|
|
57
|
+
"feature_slot": 1,
|
|
58
|
+
"channels": ["email"],
|
|
59
|
+
"tags": ["type:educational"],
|
|
60
|
+
"format": "plain",
|
|
61
|
+
"suppressions": [{ "expression": "feature.{slot}_used == true" }]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"pattern": "feature-highlight",
|
|
65
|
+
"wait": "P3D",
|
|
66
|
+
"feature_slot": 2,
|
|
67
|
+
"channels": ["email"],
|
|
68
|
+
"tags": ["type:educational"],
|
|
69
|
+
"format": "plain",
|
|
70
|
+
"suppressions": [{ "expression": "feature.{slot}_used == true" }]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"pattern": "feature-highlight",
|
|
74
|
+
"wait": "P5D",
|
|
75
|
+
"feature_slot": 3,
|
|
76
|
+
"channels": ["email", "in-app"],
|
|
77
|
+
"tags": ["type:educational"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"pattern": "feature-highlight",
|
|
81
|
+
"wait": "P7D",
|
|
82
|
+
"feature_slot": 4,
|
|
83
|
+
"channels": ["email"],
|
|
84
|
+
"tags": ["type:educational"]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"pattern": "feature-highlight",
|
|
88
|
+
"wait": "P14D",
|
|
89
|
+
"feature_slot": 5,
|
|
90
|
+
"channels": ["email"],
|
|
91
|
+
"tags": ["type:educational"]
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"revenue": {
|
|
96
|
+
"messages": [
|
|
97
|
+
{
|
|
98
|
+
"pattern": "trial-ending",
|
|
99
|
+
"trigger": { "event": "trial.ending_soon", "type": "event" },
|
|
100
|
+
"wait": "P0D",
|
|
101
|
+
"channels": ["email", "in-app"],
|
|
102
|
+
"tags": ["type:promotional", "segment:trial"],
|
|
103
|
+
"guards": [{ "expression": "user.plan == 'trial'" }]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"pattern": "trial-expired",
|
|
107
|
+
"trigger": { "event": "trial.expired", "type": "event" },
|
|
108
|
+
"wait": "P0D",
|
|
109
|
+
"channels": ["email"],
|
|
110
|
+
"tags": ["type:promotional", "segment:trial"]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"pattern": "usage-limit",
|
|
114
|
+
"trigger": { "event": "usage.limit_approaching", "type": "event" },
|
|
115
|
+
"wait": "P0D",
|
|
116
|
+
"channels": ["in-app", "email"],
|
|
117
|
+
"tags": ["type:behavioral"]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"retention": {
|
|
122
|
+
"messages": [
|
|
123
|
+
{
|
|
124
|
+
"pattern": "usage-recap",
|
|
125
|
+
"trigger": { "event": "scheduled", "type": "scheduled", "schedule": "every friday 9am" },
|
|
126
|
+
"wait": "P0D",
|
|
127
|
+
"channels": ["email"],
|
|
128
|
+
"tags": ["type:behavioral"]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"pattern": "re-engagement-soft",
|
|
132
|
+
"trigger": { "event": "user.inactive_3_days", "type": "behavioral" },
|
|
133
|
+
"wait": "P0D",
|
|
134
|
+
"channels": ["push", "email"],
|
|
135
|
+
"tags": ["type:behavioral", "segment:dormant"]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"pattern": "re-engagement-medium",
|
|
139
|
+
"trigger": { "event": "user.inactive_7_days", "type": "behavioral" },
|
|
140
|
+
"wait": "P0D",
|
|
141
|
+
"channels": ["email"],
|
|
142
|
+
"tags": ["type:behavioral", "segment:dormant"]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"pattern": "re-engagement-breakup",
|
|
146
|
+
"trigger": { "event": "user.inactive_14_days", "type": "behavioral" },
|
|
147
|
+
"wait": "P0D",
|
|
148
|
+
"channels": ["email"],
|
|
149
|
+
"tags": ["type:behavioral", "segment:churning", "priority:high"]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"referral": {
|
|
154
|
+
"messages": [
|
|
155
|
+
{
|
|
156
|
+
"pattern": "invite-team",
|
|
157
|
+
"trigger": { "event": "milestone.first_success", "type": "event" },
|
|
158
|
+
"wait": "P1D",
|
|
159
|
+
"channels": ["in-app", "email"],
|
|
160
|
+
"tags": ["type:promotional"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"pattern": "referral-program",
|
|
164
|
+
"trigger": { "event": "user.active_30_days", "type": "behavioral" },
|
|
165
|
+
"wait": "P0D",
|
|
166
|
+
"channels": ["email"],
|
|
167
|
+
"tags": ["type:promotional"]
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|