@teamflojo/floimg-templates 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/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/index.d.ts +120 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +204 -0
- package/dist/index.js.map +1 -0
- package/dist/templates/ai-workflows.d.ts +42 -0
- package/dist/templates/ai-workflows.d.ts.map +1 -0
- package/dist/templates/ai-workflows.js +392 -0
- package/dist/templates/ai-workflows.js.map +1 -0
- package/dist/templates/data-viz.d.ts +49 -0
- package/dist/templates/data-viz.d.ts.map +1 -0
- package/dist/templates/data-viz.js +476 -0
- package/dist/templates/data-viz.js.map +1 -0
- package/dist/templates/marketing.d.ts +33 -0
- package/dist/templates/marketing.d.ts.map +1 -0
- package/dist/templates/marketing.js +368 -0
- package/dist/templates/marketing.js.map +1 -0
- package/dist/templates/utilities.d.ts +38 -0
- package/dist/templates/utilities.d.ts.map +1 -0
- package/dist/templates/utilities.js +296 -0
- package/dist/templates/utilities.js.map +1 -0
- package/dist/types.d.ts +85 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marketing Templates
|
|
3
|
+
*
|
|
4
|
+
* Social media kits, branding, and promotional asset workflows.
|
|
5
|
+
* Most are pipeline templates that work offline (OSS-compatible).
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Social Media Kit
|
|
9
|
+
* Canonical ID: social-media-kit
|
|
10
|
+
*/
|
|
11
|
+
export const socialMediaKit = {
|
|
12
|
+
id: "social-media-kit",
|
|
13
|
+
name: "Social Media Kit",
|
|
14
|
+
description: "Generate optimized images for all social platforms from one source",
|
|
15
|
+
category: "Marketing",
|
|
16
|
+
generator: "pipeline",
|
|
17
|
+
tags: ["social", "og-image", "twitter", "instagram", "resize"],
|
|
18
|
+
capabilities: {
|
|
19
|
+
studioCompatible: true,
|
|
20
|
+
claudeCodeReady: true,
|
|
21
|
+
pipeline: true,
|
|
22
|
+
},
|
|
23
|
+
icon: "share",
|
|
24
|
+
preview: {
|
|
25
|
+
imageUrl: "/showcase/pipelines/output/og-image.png",
|
|
26
|
+
},
|
|
27
|
+
codeExample: `// One source -> all platforms
|
|
28
|
+
const socialKit = await floimg.pipeline(heroImage, [
|
|
29
|
+
{ op: 'resize', params: { width: 1200, height: 630 }, save: 'og-image.png' },
|
|
30
|
+
{ op: 'resize', params: { width: 800, height: 418 }, save: 'twitter-card.png' },
|
|
31
|
+
{ op: 'resize', params: { width: 1080, height: 1080 }, save: 'instagram.png' },
|
|
32
|
+
]);`,
|
|
33
|
+
seo: {
|
|
34
|
+
title: "Social Media Kit Generator",
|
|
35
|
+
description: "Generate optimized images for all social platforms from one source image",
|
|
36
|
+
keywords: [
|
|
37
|
+
"social media",
|
|
38
|
+
"og image",
|
|
39
|
+
"twitter card",
|
|
40
|
+
"instagram",
|
|
41
|
+
"image resize",
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
workflow: {
|
|
45
|
+
nodes: [
|
|
46
|
+
{
|
|
47
|
+
id: "input-1",
|
|
48
|
+
type: "input",
|
|
49
|
+
position: { x: 100, y: 200 },
|
|
50
|
+
data: {},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "transform-og",
|
|
54
|
+
type: "transform",
|
|
55
|
+
position: { x: 400, y: 100 },
|
|
56
|
+
data: {
|
|
57
|
+
operation: "resize",
|
|
58
|
+
params: {
|
|
59
|
+
width: 1200,
|
|
60
|
+
height: 630,
|
|
61
|
+
fit: "cover",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "transform-twitter",
|
|
67
|
+
type: "transform",
|
|
68
|
+
position: { x: 400, y: 200 },
|
|
69
|
+
data: {
|
|
70
|
+
operation: "resize",
|
|
71
|
+
params: {
|
|
72
|
+
width: 800,
|
|
73
|
+
height: 418,
|
|
74
|
+
fit: "cover",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "transform-instagram",
|
|
80
|
+
type: "transform",
|
|
81
|
+
position: { x: 400, y: 300 },
|
|
82
|
+
data: {
|
|
83
|
+
operation: "resize",
|
|
84
|
+
params: {
|
|
85
|
+
width: 1080,
|
|
86
|
+
height: 1080,
|
|
87
|
+
fit: "cover",
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
edges: [
|
|
93
|
+
{ id: "e1", source: "input-1", target: "transform-og" },
|
|
94
|
+
{ id: "e2", source: "input-1", target: "transform-twitter" },
|
|
95
|
+
{ id: "e3", source: "input-1", target: "transform-instagram" },
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Avatar Processing Pipeline
|
|
101
|
+
* Canonical ID: avatar-pipeline
|
|
102
|
+
*/
|
|
103
|
+
export const avatarPipeline = {
|
|
104
|
+
id: "avatar-pipeline",
|
|
105
|
+
name: "Avatar Processing",
|
|
106
|
+
description: "Generate consistent avatar sizes with circular crop and optimization",
|
|
107
|
+
category: "Marketing",
|
|
108
|
+
generator: "pipeline",
|
|
109
|
+
tags: ["avatar", "profile", "resize", "crop", "user"],
|
|
110
|
+
capabilities: {
|
|
111
|
+
studioCompatible: true,
|
|
112
|
+
claudeCodeReady: true,
|
|
113
|
+
pipeline: true,
|
|
114
|
+
},
|
|
115
|
+
icon: "image",
|
|
116
|
+
preview: {
|
|
117
|
+
imageUrl: "/showcase/pipelines/output/avatar-128.png",
|
|
118
|
+
},
|
|
119
|
+
codeExample: `const avatars = await floimg.pipeline(photo, [
|
|
120
|
+
{ op: 'crop', params: { shape: 'circle' } },
|
|
121
|
+
{ op: 'resize', params: { width: 256 }, save: 'avatar-256.png' },
|
|
122
|
+
{ op: 'resize', params: { width: 128 }, save: 'avatar-128.png' },
|
|
123
|
+
{ op: 'resize', params: { width: 64 }, save: 'avatar-64.png' },
|
|
124
|
+
]);`,
|
|
125
|
+
seo: {
|
|
126
|
+
title: "Avatar Processing Pipeline",
|
|
127
|
+
description: "Generate consistent avatar sizes with circular crop and optimization",
|
|
128
|
+
keywords: ["avatar", "profile picture", "image resize", "circular crop"],
|
|
129
|
+
},
|
|
130
|
+
workflow: {
|
|
131
|
+
nodes: [
|
|
132
|
+
{
|
|
133
|
+
id: "input-1",
|
|
134
|
+
type: "input",
|
|
135
|
+
position: { x: 100, y: 200 },
|
|
136
|
+
data: {},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "transform-crop",
|
|
140
|
+
type: "transform",
|
|
141
|
+
position: { x: 350, y: 200 },
|
|
142
|
+
data: {
|
|
143
|
+
operation: "crop",
|
|
144
|
+
params: {
|
|
145
|
+
shape: "circle",
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: "transform-256",
|
|
151
|
+
type: "transform",
|
|
152
|
+
position: { x: 600, y: 100 },
|
|
153
|
+
data: {
|
|
154
|
+
operation: "resize",
|
|
155
|
+
params: {
|
|
156
|
+
width: 256,
|
|
157
|
+
height: 256,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "transform-128",
|
|
163
|
+
type: "transform",
|
|
164
|
+
position: { x: 600, y: 200 },
|
|
165
|
+
data: {
|
|
166
|
+
operation: "resize",
|
|
167
|
+
params: {
|
|
168
|
+
width: 128,
|
|
169
|
+
height: 128,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "transform-64",
|
|
175
|
+
type: "transform",
|
|
176
|
+
position: { x: 600, y: 300 },
|
|
177
|
+
data: {
|
|
178
|
+
operation: "resize",
|
|
179
|
+
params: {
|
|
180
|
+
width: 64,
|
|
181
|
+
height: 64,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
edges: [
|
|
187
|
+
{ id: "e1", source: "input-1", target: "transform-crop" },
|
|
188
|
+
{ id: "e2", source: "transform-crop", target: "transform-256" },
|
|
189
|
+
{ id: "e3", source: "transform-crop", target: "transform-128" },
|
|
190
|
+
{ id: "e4", source: "transform-crop", target: "transform-64" },
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Branded Watermark
|
|
196
|
+
* Canonical ID: watermark-branding
|
|
197
|
+
* Previous Studio ID: chart-watermark
|
|
198
|
+
*/
|
|
199
|
+
export const watermarkBranding = {
|
|
200
|
+
id: "watermark-branding",
|
|
201
|
+
name: "Branded Watermark",
|
|
202
|
+
description: "Add your logo watermark to images automatically",
|
|
203
|
+
category: "Marketing",
|
|
204
|
+
generator: "pipeline",
|
|
205
|
+
tags: ["watermark", "branding", "logo", "protection", "copyright"],
|
|
206
|
+
capabilities: {
|
|
207
|
+
studioCompatible: true,
|
|
208
|
+
claudeCodeReady: true,
|
|
209
|
+
pipeline: true,
|
|
210
|
+
},
|
|
211
|
+
icon: "image",
|
|
212
|
+
preview: {
|
|
213
|
+
imageUrl: "/showcase/pipelines/output/watermark-branded.png",
|
|
214
|
+
},
|
|
215
|
+
seo: {
|
|
216
|
+
title: "Branded Watermark Template",
|
|
217
|
+
description: "Add professional watermarks to protect and brand your images",
|
|
218
|
+
keywords: ["watermark", "branding", "image protection", "logo overlay"],
|
|
219
|
+
},
|
|
220
|
+
workflow: {
|
|
221
|
+
nodes: [
|
|
222
|
+
{
|
|
223
|
+
id: "gen-1",
|
|
224
|
+
type: "generator",
|
|
225
|
+
position: { x: 100, y: 100 },
|
|
226
|
+
data: {
|
|
227
|
+
generatorName: "quickchart",
|
|
228
|
+
params: {
|
|
229
|
+
chart: {
|
|
230
|
+
type: "bar",
|
|
231
|
+
data: {
|
|
232
|
+
labels: ["Mon", "Tue", "Wed", "Thu", "Fri"],
|
|
233
|
+
datasets: [
|
|
234
|
+
{
|
|
235
|
+
label: "Sales",
|
|
236
|
+
data: [45, 62, 38, 71, 55],
|
|
237
|
+
backgroundColor: "rgba(99, 102, 241, 0.8)",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
width: 600,
|
|
243
|
+
height: 400,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: "transform-1",
|
|
249
|
+
type: "transform",
|
|
250
|
+
position: { x: 400, y: 100 },
|
|
251
|
+
data: {
|
|
252
|
+
operation: "addCaption",
|
|
253
|
+
params: {
|
|
254
|
+
text: "floimg.com",
|
|
255
|
+
position: "bottom-right",
|
|
256
|
+
fontSize: 14,
|
|
257
|
+
color: "#9ca3af",
|
|
258
|
+
padding: 10,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
id: "transform-2",
|
|
264
|
+
type: "transform",
|
|
265
|
+
position: { x: 700, y: 100 },
|
|
266
|
+
data: {
|
|
267
|
+
operation: "roundCorners",
|
|
268
|
+
params: {
|
|
269
|
+
radius: 16,
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
edges: [
|
|
275
|
+
{ id: "e1", source: "gen-1", target: "transform-1" },
|
|
276
|
+
{ id: "e2", source: "transform-1", target: "transform-2" },
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Image Filters
|
|
282
|
+
* Canonical ID: filter-showcase
|
|
283
|
+
*/
|
|
284
|
+
export const filterShowcase = {
|
|
285
|
+
id: "filter-showcase",
|
|
286
|
+
name: "Image Filters",
|
|
287
|
+
description: "Apply artistic filters: vintage, dramatic, vibrant, and more",
|
|
288
|
+
category: "Marketing",
|
|
289
|
+
generator: "pipeline",
|
|
290
|
+
tags: ["filter", "vintage", "effects", "artistic", "photo"],
|
|
291
|
+
capabilities: {
|
|
292
|
+
studioCompatible: true,
|
|
293
|
+
claudeCodeReady: true,
|
|
294
|
+
pipeline: true,
|
|
295
|
+
},
|
|
296
|
+
icon: "image",
|
|
297
|
+
preview: {
|
|
298
|
+
imageUrl: "/showcase/pipelines/output/filter-vintage.png",
|
|
299
|
+
},
|
|
300
|
+
seo: {
|
|
301
|
+
title: "Image Filter Effects",
|
|
302
|
+
description: "Apply artistic filters like vintage, dramatic, and vibrant effects",
|
|
303
|
+
keywords: ["image filter", "photo effects", "vintage filter", "artistic"],
|
|
304
|
+
},
|
|
305
|
+
workflow: {
|
|
306
|
+
nodes: [
|
|
307
|
+
{
|
|
308
|
+
id: "input-1",
|
|
309
|
+
type: "input",
|
|
310
|
+
position: { x: 100, y: 200 },
|
|
311
|
+
data: {},
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: "transform-vintage",
|
|
315
|
+
type: "transform",
|
|
316
|
+
position: { x: 400, y: 100 },
|
|
317
|
+
data: {
|
|
318
|
+
operation: "adjustColors",
|
|
319
|
+
params: {
|
|
320
|
+
saturation: 0.7,
|
|
321
|
+
brightness: 0.9,
|
|
322
|
+
sepia: 0.3,
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: "transform-vibrant",
|
|
328
|
+
type: "transform",
|
|
329
|
+
position: { x: 400, y: 200 },
|
|
330
|
+
data: {
|
|
331
|
+
operation: "adjustColors",
|
|
332
|
+
params: {
|
|
333
|
+
saturation: 1.4,
|
|
334
|
+
contrast: 1.2,
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "transform-dramatic",
|
|
340
|
+
type: "transform",
|
|
341
|
+
position: { x: 400, y: 300 },
|
|
342
|
+
data: {
|
|
343
|
+
operation: "adjustColors",
|
|
344
|
+
params: {
|
|
345
|
+
contrast: 1.5,
|
|
346
|
+
brightness: 0.8,
|
|
347
|
+
saturation: 0.9,
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
edges: [
|
|
353
|
+
{ id: "e1", source: "input-1", target: "transform-vintage" },
|
|
354
|
+
{ id: "e2", source: "input-1", target: "transform-vibrant" },
|
|
355
|
+
{ id: "e3", source: "input-1", target: "transform-dramatic" },
|
|
356
|
+
],
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* All marketing templates
|
|
361
|
+
*/
|
|
362
|
+
export const marketingTemplates = [
|
|
363
|
+
socialMediaKit,
|
|
364
|
+
avatarPipeline,
|
|
365
|
+
watermarkBranding,
|
|
366
|
+
filterShowcase,
|
|
367
|
+
];
|
|
368
|
+
//# sourceMappingURL=marketing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketing.js","sourceRoot":"","sources":["../../src/templates/marketing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,oEAAoE;IACtE,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAC;IAC9D,YAAY,EAAE;QACZ,gBAAgB,EAAE,IAAI;QACtB,eAAe,EAAE,IAAI;QACrB,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACP,QAAQ,EAAE,yCAAyC;KACpD;IACD,WAAW,EAAE;;;;;IAKX;IACF,GAAG,EAAE;QACH,KAAK,EAAE,4BAA4B;QACnC,WAAW,EACT,0EAA0E;QAC5E,QAA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E,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE;YAC5D,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,oBAAoB,EAAE;SAC9D;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAe;IAC5C,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,cAAc;CACf,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility Templates
|
|
3
|
+
*
|
|
4
|
+
* QR codes, format conversion, and general-purpose utilities.
|
|
5
|
+
* All templates in this category work offline (OSS-compatible).
|
|
6
|
+
*/
|
|
7
|
+
import type { Template } from "../types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Branded QR Code
|
|
10
|
+
* Canonical ID: branded-qr
|
|
11
|
+
* Previous Studio ID: website-qr
|
|
12
|
+
*/
|
|
13
|
+
export declare const brandedQR: Template;
|
|
14
|
+
/**
|
|
15
|
+
* Dark Mode QR Code
|
|
16
|
+
* Canonical ID: dark-qr
|
|
17
|
+
*/
|
|
18
|
+
export declare const darkQR: Template;
|
|
19
|
+
/**
|
|
20
|
+
* WiFi QR Code
|
|
21
|
+
* Canonical ID: wifi-qr
|
|
22
|
+
*/
|
|
23
|
+
export declare const wifiQR: Template;
|
|
24
|
+
/**
|
|
25
|
+
* Thumbnail Generator
|
|
26
|
+
* Canonical ID: thumbnail-generator
|
|
27
|
+
*/
|
|
28
|
+
export declare const thumbnailGenerator: Template;
|
|
29
|
+
/**
|
|
30
|
+
* Diagram to WebP Conversion
|
|
31
|
+
* Canonical ID: diagram-webp
|
|
32
|
+
*/
|
|
33
|
+
export declare const diagramWebp: Template;
|
|
34
|
+
/**
|
|
35
|
+
* All utility templates
|
|
36
|
+
*/
|
|
37
|
+
export declare const utilityTemplates: Template[];
|
|
38
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/templates/utilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,QAmDvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,QAyCpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,QAuCpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAyEhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,QAoDzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EAMtC,CAAC"}
|