n8n-nodes-lindo 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lindo.ai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # n8n-nodes-lindo
2
+
3
+ This is an [n8n](https://n8n.io/) community node for [Lindo.ai](https://lindo.ai), a website builder platform. It lets you automate website and client management directly from your n8n workflows.
4
+
5
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
6
+
7
+ ## Installation
8
+
9
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
10
+
11
+ 1. Go to **Settings > Community Nodes**
12
+ 2. Select **Install**
13
+ 3. Enter `n8n-nodes-lindo`
14
+ 4. Agree to the risks and click **Install**
15
+
16
+ ## Credentials
17
+
18
+ You need a Lindo.ai API key to use this node.
19
+
20
+ 1. Log in to your [Lindo.ai](https://lindo.ai) workspace
21
+ 2. Go to **Settings** and find your API key (starts with `lindo_sk_`)
22
+ 3. In n8n, create a new **Lindo API** credential and paste your key
23
+
24
+ | Field | Description |
25
+ | -------- | -------------------------------------------------------------- |
26
+ | API Key | Your Lindo API key (`lindo_sk_...`) |
27
+ | Base URL | `https://api.lindo.ai` (change only for staging environments) |
28
+
29
+ ## Nodes
30
+
31
+ ### Lindo Trigger
32
+
33
+ Starts a workflow when an event occurs in your Lindo workspace.
34
+
35
+ | Event | Description |
36
+ | -------------------- | ---------------------------------------- |
37
+ | New Website Created | Fires when a new website is created |
38
+ | New Client Created | Fires when a new client is created |
39
+
40
+ ### Lindo
41
+
42
+ Performs actions in your Lindo workspace.
43
+
44
+ | Resource | Operation | Description |
45
+ | -------- | --------- | ---------------------------------------- |
46
+ | Website | Create | Create a new website in the workspace |
47
+ | Client | Create | Create a new client in the workspace |
48
+
49
+ #### Create Website fields
50
+
51
+ | Field | Required | Description |
52
+ | -------------------- | -------- | ---------------------------------- |
53
+ | Business Name | Yes | Name of the business or website |
54
+ | Business Description | No | Short description of the business |
55
+ | Language | No | Language code (default: `en`) |
56
+
57
+ #### Create Client fields
58
+
59
+ | Field | Required | Description |
60
+ | ------------- | -------- | ---------------------------------------- |
61
+ | Email | Yes | Email address of the new client |
62
+ | Full Name | No | Full name of the client |
63
+ | Website Limit | No | Max websites for this client (default: 1)|
64
+
65
+ ## Resources
66
+
67
+ - [Lindo.ai](https://lindo.ai)
68
+ - [Lindo API Documentation](https://docs.lindo.ai/api)
69
+ - [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/)
70
+
71
+ ## License
72
+
73
+ [MIT](LICENSE)
@@ -0,0 +1,7 @@
1
+ import { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class LindoApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LindoApi = void 0;
4
+ class LindoApi {
5
+ constructor() {
6
+ this.name = 'lindoApi';
7
+ this.displayName = 'Lindo API';
8
+ this.documentationUrl = 'https://docs.lindo.ai/api';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ placeholder: 'lindo_sk_...',
17
+ description: 'Your Lindo.ai API key. Find it in your workspace settings.',
18
+ },
19
+ {
20
+ displayName: 'Base URL',
21
+ name: 'baseUrl',
22
+ type: 'string',
23
+ default: 'https://api.lindo.ai',
24
+ description: 'The Lindo API base URL. Change only if using a staging environment.',
25
+ },
26
+ ];
27
+ }
28
+ }
29
+ exports.LindoApi = LindoApi;
@@ -0,0 +1,3 @@
1
+ export * from './credentials/LindoApi.credentials';
2
+ export * from './nodes/Lindo/Lindo.node';
3
+ export * from './nodes/Lindo/LindoTrigger.node';
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./credentials/LindoApi.credentials"), exports);
18
+ __exportStar(require("./nodes/Lindo/Lindo.node"), exports);
19
+ __exportStar(require("./nodes/Lindo/LindoTrigger.node"), exports);
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IHttpRequestMethods } from 'n8n-workflow';
2
+ /**
3
+ * Make an authenticated API request to Lindo.
4
+ */
5
+ export declare function lindoApiRequest(this: IExecuteFunctions | IHookFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body?: object, query?: Record<string, string>): Promise<any>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lindoApiRequest = lindoApiRequest;
4
+ /**
5
+ * Make an authenticated API request to Lindo.
6
+ */
7
+ async function lindoApiRequest(method, endpoint, body = {}, query = {}) {
8
+ const credentials = await this.getCredentials('lindoApi');
9
+ const baseUrl = credentials.baseUrl || 'https://api.lindo.ai';
10
+ const options = {
11
+ method,
12
+ uri: `${baseUrl}${endpoint}`,
13
+ headers: {
14
+ Authorization: `Bearer ${credentials.apiKey}`,
15
+ 'Content-Type': 'application/json',
16
+ },
17
+ json: true,
18
+ qs: query,
19
+ };
20
+ if (method !== 'GET' && Object.keys(body).length > 0) {
21
+ options.body = body;
22
+ }
23
+ return this.helpers.request(options);
24
+ }
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Lindo implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,239 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Lindo = void 0;
4
+ const GenericFunctions_1 = require("./GenericFunctions");
5
+ class Lindo {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'Lindo',
9
+ name: 'lindo',
10
+ icon: 'file:lindo.svg',
11
+ group: ['transform'],
12
+ version: 1,
13
+ subtitle: '={{$parameter["operation"] + " " + $parameter["resource"]}}',
14
+ description: 'Interact with the Lindo.ai API',
15
+ defaults: {
16
+ name: 'Lindo',
17
+ },
18
+ inputs: ['main'],
19
+ outputs: ['main'],
20
+ credentials: [
21
+ {
22
+ name: 'lindoApi',
23
+ required: true,
24
+ },
25
+ ],
26
+ properties: [
27
+ // Resource selector
28
+ {
29
+ displayName: 'Resource',
30
+ name: 'resource',
31
+ type: 'options',
32
+ noDataExpression: true,
33
+ default: 'website',
34
+ options: [
35
+ {
36
+ name: 'Website',
37
+ value: 'website',
38
+ },
39
+ {
40
+ name: 'Client',
41
+ value: 'client',
42
+ },
43
+ ],
44
+ },
45
+ // ============================================================
46
+ // Website operations
47
+ // ============================================================
48
+ {
49
+ displayName: 'Operation',
50
+ name: 'operation',
51
+ type: 'options',
52
+ noDataExpression: true,
53
+ displayOptions: {
54
+ show: {
55
+ resource: ['website'],
56
+ },
57
+ },
58
+ default: 'create',
59
+ options: [
60
+ {
61
+ name: 'Create',
62
+ value: 'create',
63
+ description: 'Create a new website in the workspace',
64
+ action: 'Create a website',
65
+ },
66
+ ],
67
+ },
68
+ // Website Create fields
69
+ {
70
+ displayName: 'Business Name',
71
+ name: 'businessName',
72
+ type: 'string',
73
+ required: true,
74
+ default: '',
75
+ displayOptions: {
76
+ show: {
77
+ resource: ['website'],
78
+ operation: ['create'],
79
+ },
80
+ },
81
+ description: 'The name of the business or website',
82
+ },
83
+ {
84
+ displayName: 'Business Description',
85
+ name: 'businessDescription',
86
+ type: 'string',
87
+ default: '',
88
+ displayOptions: {
89
+ show: {
90
+ resource: ['website'],
91
+ operation: ['create'],
92
+ },
93
+ },
94
+ description: 'A short description of the business',
95
+ },
96
+ {
97
+ displayName: 'Language',
98
+ name: 'language',
99
+ type: 'string',
100
+ default: 'en',
101
+ displayOptions: {
102
+ show: {
103
+ resource: ['website'],
104
+ operation: ['create'],
105
+ },
106
+ },
107
+ description: 'Language code for the website (e.g. en, fr, ar)',
108
+ },
109
+ // ============================================================
110
+ // Client operations
111
+ // ============================================================
112
+ {
113
+ displayName: 'Operation',
114
+ name: 'operation',
115
+ type: 'options',
116
+ noDataExpression: true,
117
+ displayOptions: {
118
+ show: {
119
+ resource: ['client'],
120
+ },
121
+ },
122
+ default: 'create',
123
+ options: [
124
+ {
125
+ name: 'Create',
126
+ value: 'create',
127
+ description: 'Create a new client in the workspace',
128
+ action: 'Create a client',
129
+ },
130
+ ],
131
+ },
132
+ // Client Create fields
133
+ {
134
+ displayName: 'Email',
135
+ name: 'email',
136
+ type: 'string',
137
+ required: true,
138
+ default: '',
139
+ placeholder: 'client@example.com',
140
+ displayOptions: {
141
+ show: {
142
+ resource: ['client'],
143
+ operation: ['create'],
144
+ },
145
+ },
146
+ description: 'The email address of the new client',
147
+ },
148
+ {
149
+ displayName: 'Full Name',
150
+ name: 'fullName',
151
+ type: 'string',
152
+ default: '',
153
+ displayOptions: {
154
+ show: {
155
+ resource: ['client'],
156
+ operation: ['create'],
157
+ },
158
+ },
159
+ description: 'The full name of the client',
160
+ },
161
+ {
162
+ displayName: 'Website Limit',
163
+ name: 'websiteLimit',
164
+ type: 'number',
165
+ default: 1,
166
+ displayOptions: {
167
+ show: {
168
+ resource: ['client'],
169
+ operation: ['create'],
170
+ },
171
+ },
172
+ description: 'Maximum number of websites this client can have',
173
+ },
174
+ ],
175
+ };
176
+ }
177
+ async execute() {
178
+ const items = this.getInputData();
179
+ const returnData = [];
180
+ const resource = this.getNodeParameter('resource', 0);
181
+ const operation = this.getNodeParameter('operation', 0);
182
+ for (let i = 0; i < items.length; i++) {
183
+ try {
184
+ let responseData;
185
+ // ============================================================
186
+ // Website
187
+ // ============================================================
188
+ if (resource === 'website') {
189
+ if (operation === 'create') {
190
+ const businessName = this.getNodeParameter('businessName', i);
191
+ const businessDescription = this.getNodeParameter('businessDescription', i, '');
192
+ const language = this.getNodeParameter('language', i, 'en');
193
+ responseData = await GenericFunctions_1.lindoApiRequest.call(this, 'POST', '/v1/workspace/website/create', {
194
+ business_name: businessName,
195
+ business_description: businessDescription,
196
+ language,
197
+ });
198
+ returnData.push({ json: responseData?.result || responseData });
199
+ continue;
200
+ }
201
+ }
202
+ // ============================================================
203
+ // Client
204
+ // ============================================================
205
+ if (resource === 'client') {
206
+ if (operation === 'create') {
207
+ const email = this.getNodeParameter('email', i);
208
+ const fullName = this.getNodeParameter('fullName', i, '');
209
+ const websiteLimit = this.getNodeParameter('websiteLimit', i, 1);
210
+ const body = { email };
211
+ if (fullName)
212
+ body.full_name = fullName;
213
+ if (websiteLimit)
214
+ body.website_limit = websiteLimit;
215
+ responseData = await GenericFunctions_1.lindoApiRequest.call(this, 'POST', '/v1/workspace/client/create', body);
216
+ returnData.push({ json: responseData?.result || responseData });
217
+ continue;
218
+ }
219
+ }
220
+ // Fallback
221
+ if (responseData) {
222
+ returnData.push({ json: responseData });
223
+ }
224
+ }
225
+ catch (error) {
226
+ if (this.continueOnFail()) {
227
+ returnData.push({
228
+ json: { error: error.message },
229
+ pairedItem: { item: i },
230
+ });
231
+ continue;
232
+ }
233
+ throw error;
234
+ }
235
+ }
236
+ return [returnData];
237
+ }
238
+ }
239
+ exports.Lindo = Lindo;
@@ -0,0 +1,12 @@
1
+ import { IHookFunctions, IWebhookFunctions, INodeType, INodeTypeDescription, IWebhookResponseData } from 'n8n-workflow';
2
+ export declare class LindoTrigger implements INodeType {
3
+ description: INodeTypeDescription;
4
+ webhookMethods: {
5
+ default: {
6
+ checkExists(this: IHookFunctions): Promise<boolean>;
7
+ create(this: IHookFunctions): Promise<boolean>;
8
+ delete(this: IHookFunctions): Promise<boolean>;
9
+ };
10
+ };
11
+ webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
12
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LindoTrigger = void 0;
4
+ const GenericFunctions_1 = require("./GenericFunctions");
5
+ class LindoTrigger {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'Lindo Trigger',
9
+ name: 'lindoTrigger',
10
+ icon: 'file:lindo.svg',
11
+ group: ['trigger'],
12
+ version: 1,
13
+ subtitle: '={{$parameter["event"]}}',
14
+ description: 'Triggers when events occur in your Lindo workspace',
15
+ defaults: {
16
+ name: 'Lindo Trigger',
17
+ },
18
+ inputs: [],
19
+ outputs: ['main'],
20
+ credentials: [
21
+ {
22
+ name: 'lindoApi',
23
+ required: true,
24
+ },
25
+ ],
26
+ webhooks: [
27
+ {
28
+ name: 'default',
29
+ httpMethod: 'POST',
30
+ responseMode: 'onReceived',
31
+ path: 'webhook',
32
+ },
33
+ ],
34
+ properties: [
35
+ {
36
+ displayName: 'Event',
37
+ name: 'event',
38
+ type: 'options',
39
+ required: true,
40
+ default: 'website.created',
41
+ options: [
42
+ {
43
+ name: 'New Website Created',
44
+ value: 'website.created',
45
+ description: 'Triggers when a new website is created',
46
+ },
47
+ {
48
+ name: 'New Client Created',
49
+ value: 'client.created',
50
+ description: 'Triggers when a new client is created',
51
+ },
52
+ ],
53
+ },
54
+ ],
55
+ };
56
+ this.webhookMethods = {
57
+ default: {
58
+ async checkExists() {
59
+ // We always re-register to be safe
60
+ return false;
61
+ },
62
+ async create() {
63
+ const webhookUrl = this.getNodeWebhookUrl('default');
64
+ const event = this.getNodeParameter('event');
65
+ await GenericFunctions_1.lindoApiRequest.call(this, 'POST', '/v1/workspace/automations/n8n/hooks', {
66
+ target_url: webhookUrl,
67
+ event_type: event,
68
+ });
69
+ return true;
70
+ },
71
+ async delete() {
72
+ const webhookUrl = this.getNodeWebhookUrl('default');
73
+ try {
74
+ await GenericFunctions_1.lindoApiRequest.call(this, 'DELETE', '/v1/workspace/automations/n8n/hooks', {
75
+ target_url: webhookUrl,
76
+ });
77
+ }
78
+ catch (error) {
79
+ // If deletion fails (e.g. already deleted), don't throw
80
+ console.error('Failed to unsubscribe Lindo webhook:', error);
81
+ }
82
+ return true;
83
+ },
84
+ },
85
+ };
86
+ }
87
+ async webhook() {
88
+ const bodyData = this.getBodyData();
89
+ return {
90
+ workflowData: [this.helpers.returnJsonArray(bodyData)],
91
+ };
92
+ }
93
+ }
94
+ exports.LindoTrigger = LindoTrigger;
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
2
+ <rect width="64" height="64" rx="12" fill="#6366F1"/>
3
+ <text x="50%" y="54%" dominant-baseline="middle" text-anchor="middle" font-family="Arial, sans-serif" font-weight="bold" font-size="28" fill="white">L</text>
4
+ </svg>
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "n8n-nodes-lindo",
3
+ "version": "1.0.0",
4
+ "description": "n8n community node for Lindo.ai — automate website and client management with triggers and actions.",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n",
8
+ "lindo",
9
+ "website",
10
+ "website builder",
11
+ "automation",
12
+ "client management"
13
+ ],
14
+ "license": "MIT",
15
+ "author": {
16
+ "name": "Lindo.ai",
17
+ "url": "https://lindo.ai"
18
+ },
19
+ "homepage": "https://lindo.ai",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/nicenathapong/lindo"
23
+ },
24
+ "main": "dist/index.js",
25
+ "scripts": {
26
+ "build": "tsc && cp src/nodes/Lindo/lindo.svg dist/nodes/Lindo/lindo.svg",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "n8n": {
33
+ "n8nNodesApiVersion": 1,
34
+ "credentials": [
35
+ "dist/credentials/LindoApi.credentials.js"
36
+ ],
37
+ "nodes": [
38
+ "dist/nodes/Lindo/Lindo.node.js",
39
+ "dist/nodes/Lindo/LindoTrigger.node.js"
40
+ ]
41
+ },
42
+ "devDependencies": {
43
+ "n8n-workflow": "^1.0.0",
44
+ "typescript": "^5.0.0"
45
+ },
46
+ "peerDependencies": {
47
+ "n8n-workflow": "*"
48
+ }
49
+ }