n8n-nodes-pollinations-ai 1.2.1 → 1.3.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/dist/credentials/PollinationsApi.credentials.d.ts +1 -0
- package/dist/credentials/PollinationsApi.credentials.js +1 -0
- package/dist/nodes/Pollinations/Pollinations.node.js +209 -74
- package/dist/nodes/Pollinations/PollinationsChatModel.node.js +26 -25
- package/package.json +66 -75
- package/credentials/PollinationsApi.credentials.ts +0 -41
- package/gulpfile.js +0 -7
- package/index.ts +0 -2
- package/nodes/Pollinations/Pollinations.node.json +0 -19
- package/nodes/Pollinations/Pollinations.node.ts +0 -912
- package/nodes/Pollinations/PollinationsChatModel.node.json +0 -17
- package/nodes/Pollinations/PollinationsChatModel.node.ts +0 -247
- package/tsconfig.json +0 -25
- /package/{nodes/Pollinations → dist/credentials}/pollinations.svg +0 -0
package/package.json
CHANGED
|
@@ -1,77 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"typescript": "^5.3.0"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"n8n-workflow": "*"
|
|
72
|
-
},
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"@langchain/core": "^1.1.12",
|
|
75
|
-
"@langchain/openai": "^1.2.1"
|
|
76
|
-
}
|
|
2
|
+
"name": "n8n-nodes-pollinations-ai",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "n8n community node for Pollinations AI - image generation and chat models",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"pollinations",
|
|
9
|
+
"ai",
|
|
10
|
+
"image-generation",
|
|
11
|
+
"flux",
|
|
12
|
+
"chat-model",
|
|
13
|
+
"llm",
|
|
14
|
+
"langchain"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"homepage": "https://github.com/new-xmon-df/n8n-nodes-pollinations-ai",
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Juanjo García",
|
|
20
|
+
"email": "juanjogarciae@gmail.com"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/new-xmon-df/n8n-nodes-pollinations-ai.git"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"main": "index.js",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"n8n": {
|
|
34
|
+
"n8nNodesApiVersion": 1,
|
|
35
|
+
"credentials": [
|
|
36
|
+
"dist/credentials/PollinationsApi.credentials.js"
|
|
37
|
+
],
|
|
38
|
+
"nodes": [
|
|
39
|
+
"dist/nodes/Pollinations/Pollinations.node.js",
|
|
40
|
+
"dist/nodes/Pollinations/PollinationsChatModel.node.js"
|
|
41
|
+
],
|
|
42
|
+
"strict": false
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"prepare": "npm run build",
|
|
46
|
+
"build": "n8n-node build",
|
|
47
|
+
"dev": "n8n-node dev",
|
|
48
|
+
"lint": "n8n-node lint",
|
|
49
|
+
"lintfix": "n8n-node lint --fix",
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"prepublishOnly": "npm run build"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@n8n/node-cli": "^0.17.0",
|
|
55
|
+
"@types/node": "^20.10.0",
|
|
56
|
+
"eslint": "^9.32.0",
|
|
57
|
+
"n8n-workflow": "^1.23.0",
|
|
58
|
+
"prettier": "^3.6.2",
|
|
59
|
+
"typescript": "^5.9.2"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"n8n-workflow": "*"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@langchain/core": "^1.1.12",
|
|
66
|
+
"@langchain/openai": "^1.2.1"
|
|
67
|
+
}
|
|
77
68
|
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IAuthenticateGeneric,
|
|
3
|
-
ICredentialTestRequest,
|
|
4
|
-
ICredentialType,
|
|
5
|
-
INodeProperties,
|
|
6
|
-
} from 'n8n-workflow';
|
|
7
|
-
|
|
8
|
-
export class PollinationsApi implements ICredentialType {
|
|
9
|
-
name = 'pollinationsApi';
|
|
10
|
-
displayName = 'Pollinations API';
|
|
11
|
-
documentationUrl = 'https://github.com/new-xmon-df/n8n-nodes-pollinations-ai#credentials';
|
|
12
|
-
|
|
13
|
-
properties: INodeProperties[] = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'API Key',
|
|
16
|
-
name: 'apiKey',
|
|
17
|
-
type: 'string',
|
|
18
|
-
typeOptions: { password: true },
|
|
19
|
-
default: '',
|
|
20
|
-
required: true,
|
|
21
|
-
description:
|
|
22
|
-
'Your Pollinations API Key (pk_ or sk_). Get it at https://enter.pollinations.ai. The available models will be filtered based on your key permissions.',
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
authenticate: IAuthenticateGeneric = {
|
|
27
|
-
type: 'generic',
|
|
28
|
-
properties: {
|
|
29
|
-
headers: {
|
|
30
|
-
Authorization: '=Bearer {{$credentials.apiKey}}',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
test: ICredentialTestRequest = {
|
|
36
|
-
request: {
|
|
37
|
-
baseURL: 'https://gen.pollinations.ai',
|
|
38
|
-
url: '/image/models',
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
}
|
package/gulpfile.js
DELETED
package/index.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": "n8n-nodes-pollinations-ai.pollinations",
|
|
3
|
-
"nodeVersion": "1.0",
|
|
4
|
-
"codexVersion": "1.0",
|
|
5
|
-
"categories": ["Utility"],
|
|
6
|
-
"resources": {
|
|
7
|
-
"credentialDocumentation": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://enter.pollinations.ai/api/docs"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"primaryDocumentation": [
|
|
13
|
-
{
|
|
14
|
-
"url": "https://enter.pollinations.ai/api/docs"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"alias": ["image", "ai", "generation", "flux", "art", "text", "llm", "chat", "pollinations", "image generation", "text generation", "artificial intelligence", "gpt", "claude", "mistral", "deepseek"]
|
|
19
|
-
}
|