n8n-nodes-rendrkit 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/README.md +33 -0
- package/dist/credentials/RendrKitApi.credentials.d.ts +7 -0
- package/dist/credentials/RendrKitApi.credentials.js +23 -0
- package/dist/credentials/RendrKitApi.credentials.js.map +1 -0
- package/dist/nodes/RendrKit/RendrKit.node.d.ts +5 -0
- package/dist/nodes/RendrKit/RendrKit.node.js +214 -0
- package/dist/nodes/RendrKit/RendrKit.node.js.map +1 -0
- package/dist/nodes/RendrKit/rendrkit.svg +4 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# n8n-nodes-rendrkit
|
|
2
|
+
|
|
3
|
+
[n8n](https://n8n.io/) community node for [RendrKit](https://rendrkit.dev) — a Design API for AI agents that generates images from templates.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
1. Go to **Settings > Community Nodes** in your n8n instance
|
|
8
|
+
2. Select **Install a community node**
|
|
9
|
+
3. Enter `n8n-nodes-rendrkit`
|
|
10
|
+
4. Agree to the risks and click **Install**
|
|
11
|
+
|
|
12
|
+
## Operations
|
|
13
|
+
|
|
14
|
+
### Generate Image
|
|
15
|
+
Generate images using AI prompts or direct template rendering.
|
|
16
|
+
|
|
17
|
+
- **Prompt mode** — Describe what you want and RendrKit generates it
|
|
18
|
+
- **Direct Render mode** — Specify a template ID and fill in slots
|
|
19
|
+
|
|
20
|
+
Supported sizes: 1080×1080, 1200×628, 1080×1920, 1200×1200, 1280×720
|
|
21
|
+
|
|
22
|
+
### List Templates
|
|
23
|
+
Retrieve all available templates with their IDs, names, descriptions, and slot definitions.
|
|
24
|
+
|
|
25
|
+
## Credentials
|
|
26
|
+
|
|
27
|
+
You need a RendrKit API key. Get one at [rendrkit.dev](https://rendrkit.dev).
|
|
28
|
+
|
|
29
|
+
## Links
|
|
30
|
+
|
|
31
|
+
- [RendrKit Website](https://rendrkit.dev)
|
|
32
|
+
- [RendrKit Documentation](https://rendrkit.dev/docs)
|
|
33
|
+
- [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RendrKitApi = void 0;
|
|
4
|
+
class RendrKitApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'rendrKitApi';
|
|
7
|
+
this.displayName = 'RendrKit API';
|
|
8
|
+
this.documentationUrl = 'https://rendrkit.dev/docs';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'API Key',
|
|
12
|
+
name: 'apiKey',
|
|
13
|
+
type: 'string',
|
|
14
|
+
typeOptions: { password: true },
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Your RendrKit API key',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.RendrKitApi = RendrKitApi;
|
|
23
|
+
//# sourceMappingURL=RendrKitApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RendrKitApi.credentials.js","sourceRoot":"","sources":["../../credentials/RendrKitApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,2BAA2B,CAAC;QAC/C,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,uBAAuB;aACrC;SACF,CAAC;IACJ,CAAC;CAAA;AAfD,kCAeC"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RendrKit = void 0;
|
|
4
|
+
class RendrKit {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.description = {
|
|
7
|
+
displayName: 'RendrKit',
|
|
8
|
+
name: 'rendrKit',
|
|
9
|
+
icon: 'file:rendrkit.svg',
|
|
10
|
+
group: ['transform'],
|
|
11
|
+
version: 1,
|
|
12
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
13
|
+
description: 'Generate images using RendrKit Design API',
|
|
14
|
+
defaults: {
|
|
15
|
+
name: 'RendrKit',
|
|
16
|
+
},
|
|
17
|
+
inputs: ['main'],
|
|
18
|
+
outputs: ['main'],
|
|
19
|
+
credentials: [
|
|
20
|
+
{
|
|
21
|
+
name: 'rendrKitApi',
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
requestDefaults: {
|
|
26
|
+
baseURL: 'https://api.rendrkit.dev/api/v1',
|
|
27
|
+
headers: {
|
|
28
|
+
'Content-Type': 'application/json',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Operation',
|
|
34
|
+
name: 'operation',
|
|
35
|
+
type: 'options',
|
|
36
|
+
noDataExpression: true,
|
|
37
|
+
options: [
|
|
38
|
+
{
|
|
39
|
+
name: 'Generate Image',
|
|
40
|
+
value: 'generateImage',
|
|
41
|
+
description: 'Generate an image from a prompt or template',
|
|
42
|
+
action: 'Generate an image',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'List Templates',
|
|
46
|
+
value: 'listTemplates',
|
|
47
|
+
description: 'List all available templates',
|
|
48
|
+
action: 'List all templates',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
default: 'generateImage',
|
|
52
|
+
},
|
|
53
|
+
// Generate Image fields
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Mode',
|
|
56
|
+
name: 'mode',
|
|
57
|
+
type: 'options',
|
|
58
|
+
options: [
|
|
59
|
+
{ name: 'Prompt', value: 'prompt' },
|
|
60
|
+
{ name: 'Direct Render', value: 'directRender' },
|
|
61
|
+
],
|
|
62
|
+
default: 'prompt',
|
|
63
|
+
displayOptions: {
|
|
64
|
+
show: { operation: ['generateImage'] },
|
|
65
|
+
},
|
|
66
|
+
description: 'Choose between AI prompt or direct template rendering',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Prompt',
|
|
70
|
+
name: 'prompt',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: '',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: { operation: ['generateImage'], mode: ['prompt'] },
|
|
76
|
+
},
|
|
77
|
+
description: 'Describe the image you want to generate',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Template ID',
|
|
81
|
+
name: 'templateId',
|
|
82
|
+
type: 'string',
|
|
83
|
+
default: '',
|
|
84
|
+
required: true,
|
|
85
|
+
displayOptions: {
|
|
86
|
+
show: { operation: ['generateImage'], mode: ['directRender'] },
|
|
87
|
+
},
|
|
88
|
+
description: 'The template ID to render',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Slots',
|
|
92
|
+
name: 'slots',
|
|
93
|
+
type: 'fixedCollection',
|
|
94
|
+
typeOptions: { multipleValues: true },
|
|
95
|
+
default: {},
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: { operation: ['generateImage'], mode: ['directRender'] },
|
|
98
|
+
},
|
|
99
|
+
description: 'Key-value pairs for template slots',
|
|
100
|
+
options: [
|
|
101
|
+
{
|
|
102
|
+
name: 'slot',
|
|
103
|
+
displayName: 'Slot',
|
|
104
|
+
values: [
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Key',
|
|
107
|
+
name: 'key',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: '',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Value',
|
|
113
|
+
name: 'value',
|
|
114
|
+
type: 'string',
|
|
115
|
+
default: '',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Size',
|
|
123
|
+
name: 'size',
|
|
124
|
+
type: 'options',
|
|
125
|
+
options: [
|
|
126
|
+
{ name: '1080×1080 (Square)', value: '1080x1080' },
|
|
127
|
+
{ name: '1200×628 (Landscape)', value: '1200x628' },
|
|
128
|
+
{ name: '1080×1920 (Story)', value: '1080x1920' },
|
|
129
|
+
{ name: '1200×1200 (Square Large)', value: '1200x1200' },
|
|
130
|
+
{ name: '1280×720 (HD)', value: '1280x720' },
|
|
131
|
+
],
|
|
132
|
+
default: '1080x1080',
|
|
133
|
+
displayOptions: {
|
|
134
|
+
show: { operation: ['generateImage'] },
|
|
135
|
+
},
|
|
136
|
+
description: 'Output image size',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Logo URL',
|
|
140
|
+
name: 'logoUrl',
|
|
141
|
+
type: 'string',
|
|
142
|
+
default: '',
|
|
143
|
+
displayOptions: {
|
|
144
|
+
show: { operation: ['generateImage'] },
|
|
145
|
+
},
|
|
146
|
+
description: 'Optional URL to a logo image to include',
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async execute() {
|
|
152
|
+
const items = this.getInputData();
|
|
153
|
+
const returnData = [];
|
|
154
|
+
const credentials = await this.getCredentials('rendrKitApi');
|
|
155
|
+
const apiKey = credentials.apiKey;
|
|
156
|
+
const headers = {
|
|
157
|
+
Authorization: `Bearer ${apiKey}`,
|
|
158
|
+
'Content-Type': 'application/json',
|
|
159
|
+
};
|
|
160
|
+
for (let i = 0; i < items.length; i++) {
|
|
161
|
+
const operation = this.getNodeParameter('operation', i);
|
|
162
|
+
if (operation === 'generateImage') {
|
|
163
|
+
const mode = this.getNodeParameter('mode', i);
|
|
164
|
+
const size = this.getNodeParameter('size', i);
|
|
165
|
+
const logoUrl = this.getNodeParameter('logoUrl', i, '');
|
|
166
|
+
const body = { size };
|
|
167
|
+
if (mode === 'prompt') {
|
|
168
|
+
body.prompt = this.getNodeParameter('prompt', i);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
body.templateId = this.getNodeParameter('templateId', i);
|
|
172
|
+
const slotsData = this.getNodeParameter('slots', i, {});
|
|
173
|
+
if (slotsData.slot && slotsData.slot.length > 0) {
|
|
174
|
+
const slots = {};
|
|
175
|
+
for (const s of slotsData.slot) {
|
|
176
|
+
slots[s.key] = s.value;
|
|
177
|
+
}
|
|
178
|
+
body.slots = slots;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (logoUrl) {
|
|
182
|
+
body.logoUrl = logoUrl;
|
|
183
|
+
}
|
|
184
|
+
const response = await this.helpers.request({
|
|
185
|
+
method: 'POST',
|
|
186
|
+
url: 'https://api.rendrkit.dev/api/v1/generate',
|
|
187
|
+
headers,
|
|
188
|
+
body,
|
|
189
|
+
json: true,
|
|
190
|
+
});
|
|
191
|
+
returnData.push({ json: response });
|
|
192
|
+
}
|
|
193
|
+
else if (operation === 'listTemplates') {
|
|
194
|
+
const response = await this.helpers.request({
|
|
195
|
+
method: 'GET',
|
|
196
|
+
url: 'https://api.rendrkit.dev/api/v1/templates',
|
|
197
|
+
headers,
|
|
198
|
+
json: true,
|
|
199
|
+
});
|
|
200
|
+
if (Array.isArray(response)) {
|
|
201
|
+
for (const template of response) {
|
|
202
|
+
returnData.push({ json: template });
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
returnData.push({ json: response });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return [returnData];
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.RendrKit = RendrKit;
|
|
214
|
+
//# sourceMappingURL=RendrKit.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RendrKit.node.js","sourceRoot":"","sources":["../../../nodes/RendrKit/RendrKit.node.ts"],"names":[],"mappings":";;;AAOA,MAAa,QAAQ;IAArB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE;gBACR,IAAI,EAAE,UAAU;aACjB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,aAAa;oBACnB,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,eAAe,EAAE;gBACf,OAAO,EAAE,iCAAiC;gBAC1C,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;aACF;YACD,UAAU,EAAE;gBACV;oBACE,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACP;4BACE,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,eAAe;4BACtB,WAAW,EAAE,6CAA6C;4BAC1D,MAAM,EAAE,mBAAmB;yBAC5B;wBACD;4BACE,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,eAAe;4BACtB,WAAW,EAAE,8BAA8B;4BAC3C,MAAM,EAAE,oBAAoB;yBAC7B;qBACF;oBACD,OAAO,EAAE,eAAe;iBACzB;gBACD,wBAAwB;gBACxB;oBACE,WAAW,EAAE,MAAM;oBACnB,IAAI,EAAE,MAA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DED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-rendrkit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n community node for RendrKit - Design API for AI agents",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"rendrkit",
|
|
9
|
+
"design",
|
|
10
|
+
"image-generation"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "https://rendrkit.dev",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "RendrKit"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/rendrkit/n8n-nodes-rendrkit.git"
|
|
20
|
+
},
|
|
21
|
+
"main": "index.js",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc && gulp build:icons",
|
|
24
|
+
"dev": "tsc --watch",
|
|
25
|
+
"format": "prettier nodes credentials --write",
|
|
26
|
+
"lint": "eslint nodes credentials package.json",
|
|
27
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"n8n": {
|
|
34
|
+
"n8nNodesApiVersion": 1,
|
|
35
|
+
"credentials": [
|
|
36
|
+
"dist/credentials/RendrKitApi.credentials.js"
|
|
37
|
+
],
|
|
38
|
+
"nodes": [
|
|
39
|
+
"dist/nodes/RendrKit/RendrKit.node.js"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@typescript-eslint/parser": "~7.18.0",
|
|
44
|
+
"eslint": "~8.56.0",
|
|
45
|
+
"gulp": "^4.0.2",
|
|
46
|
+
"n8n-workflow": "^1.120.9",
|
|
47
|
+
"prettier": "~3.2.0",
|
|
48
|
+
"typescript": "~5.4.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"n8n-workflow": "*"
|
|
52
|
+
}
|
|
53
|
+
}
|