n8n-nodes-stophy 0.1.1
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 +67 -0
- package/dist/credentials/StophyApi.credentials.d.ts +10 -0
- package/dist/credentials/StophyApi.credentials.js +39 -0
- package/dist/credentials/StophyApi.credentials.js.map +1 -0
- package/dist/credentials/stophy.svg +7 -0
- package/dist/nodes/Stophy/Stophy.node.d.ts +4 -0
- package/dist/nodes/Stophy/Stophy.node.js +471 -0
- package/dist/nodes/Stophy/Stophy.node.js.map +1 -0
- package/dist/nodes/Stophy/Stophy.node.json +18 -0
- package/dist/nodes/Stophy/stophy.svg +7 -0
- package/package.json +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stophy
|
|
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,67 @@
|
|
|
1
|
+
# n8n-nodes-stophy
|
|
2
|
+
|
|
3
|
+
An [n8n](https://n8n.io) community node for **[Stophy](https://stophy.dev)** - YouTube context for AI agents. It wraps the Stophy API (`https://api.stophy.dev`), returning structured data straight into your workflows.
|
|
4
|
+
|
|
5
|
+
[Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) · [Development](#development)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Follow the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) and use the package name `n8n-nodes-stophy`.
|
|
10
|
+
|
|
11
|
+
In n8n: **Settings → Community Nodes → Install**, then enter `n8n-nodes-stophy`.
|
|
12
|
+
|
|
13
|
+
## Credentials
|
|
14
|
+
|
|
15
|
+
You need a Stophy API key (starts with `st_`). Create one at [stophy.dev](https://stophy.dev).
|
|
16
|
+
|
|
17
|
+
In n8n, add a **Stophy API** credential and paste your key. Use **Test** to verify it - the node calls `/v1/credits` to confirm the key works.
|
|
18
|
+
|
|
19
|
+
## Operations
|
|
20
|
+
|
|
21
|
+
| Resource | Operation | Description |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| Search | Search | Search YouTube (`query`, `type`, `sortBy`) |
|
|
24
|
+
| Suggest | Get | Autocomplete a partial query (`q`, optional `hl`/`gl`) |
|
|
25
|
+
| Video | Get Details | Video metadata for a URL |
|
|
26
|
+
| Video | Get Transcript | Full transcript for a URL |
|
|
27
|
+
| Video | Get Comments | Comments for a URL (optional continuation token) |
|
|
28
|
+
| Video | Get Replies | Replies for a comment (continuation token) |
|
|
29
|
+
| Video | Get Live Chat | Live chat messages (`mode`: top/live, optional continuation token) |
|
|
30
|
+
| Channel | Get | Channel data by URL (`tab`, `sortBy`) |
|
|
31
|
+
| Playlist | Get | Playlist data by URL |
|
|
32
|
+
| Account | Get Credits | Remaining credits |
|
|
33
|
+
| Account | Get Usage | Usage over the last N days |
|
|
34
|
+
| Account | Get Logs | Request logs (filter by `days`, `endpoint`) |
|
|
35
|
+
|
|
36
|
+
Every operation returns the API's `data` payload (the `{ success, data, ... }` envelope is unwrapped automatically). API errors surface as node errors.
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
This package uses [Bun](https://bun.sh) with the official [`@n8n/node-cli`](https://www.npmjs.com/package/@n8n/node-cli) toolchain (build, lint, dev, release).
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
bun install
|
|
44
|
+
bun run build # n8n-node build (compile TypeScript + copy assets to dist/)
|
|
45
|
+
bun run lint # n8n-node lint (n8n node/credential/package.json rules)
|
|
46
|
+
bun run lint:fix # auto-fix lint issues
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
To preview the node in a live n8n instance:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
bun run dev # n8n-node dev - runs n8n with the node and rebuilds on change
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Releasing
|
|
56
|
+
|
|
57
|
+
Run an interactive release locally - it bumps the version, updates the changelog, commits, tags, and pushes:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
bun run release # n8n-node release
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Pushing the version tag triggers `.github/workflows/publish.yml`, which lints, builds, and publishes to npm **with provenance** (required for n8n verified community nodes from May 2026) via [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers) (OIDC) - no `NPM_TOKEN` needed. Add the trusted publisher on npmjs.com (package Settings > Trusted Publishers > GitHub Actions, workflow `publish.yml`).
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from "n8n-workflow";
|
|
2
|
+
export declare class StophyApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
icon: "file:stophy.svg";
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StophyApi = void 0;
|
|
4
|
+
class StophyApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = "stophyApi";
|
|
7
|
+
this.displayName = "Stophy API";
|
|
8
|
+
this.documentationUrl = "https://stophy.dev";
|
|
9
|
+
this.icon = "file:stophy.svg";
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: "API Key",
|
|
13
|
+
name: "apiKey",
|
|
14
|
+
type: "string",
|
|
15
|
+
typeOptions: { password: true },
|
|
16
|
+
default: "",
|
|
17
|
+
required: true,
|
|
18
|
+
description: "Your Stophy API key (starts with st_). Create one at https://stophy.dev.",
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
this.authenticate = {
|
|
22
|
+
type: "generic",
|
|
23
|
+
properties: {
|
|
24
|
+
headers: {
|
|
25
|
+
Authorization: "=Bearer {{$credentials.apiKey}}",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
this.test = {
|
|
30
|
+
request: {
|
|
31
|
+
baseURL: "https://api.stophy.dev",
|
|
32
|
+
url: "/v1/credits",
|
|
33
|
+
method: "GET",
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.StophyApi = StophyApi;
|
|
39
|
+
//# sourceMappingURL=StophyApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StophyApi.credentials.js","sourceRoot":"","sources":["../../credentials/StophyApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QAEnB,gBAAW,GAAG,YAAY,CAAC;QAE3B,qBAAgB,GAAG,oBAAoB,CAAC;QAExC,SAAI,GAAG,iBAA0B,CAAC;QAElC,eAAU,GAAsB;YAC/B;gBACC,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,EACV,0EAA0E;aAC3E;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,aAAa;gBAClB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAtCD,8BAsCC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400">
|
|
2
|
+
<rect width="400" height="400" rx="64" fill="#171b17"/>
|
|
3
|
+
<path d="M110 118 L110 282 L226 200 Z" fill="#2e9e5e"/>
|
|
4
|
+
<rect x="242" y="154" width="74" height="22" rx="11" fill="#2e9e5e"/>
|
|
5
|
+
<rect x="242" y="189" width="54" height="22" rx="11" fill="#2e9e5e"/>
|
|
6
|
+
<rect x="242" y="224" width="34" height="22" rx="11" fill="#2e9e5e"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Stophy = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const unwrapData = {
|
|
6
|
+
postReceive: [
|
|
7
|
+
{
|
|
8
|
+
type: "rootProperty",
|
|
9
|
+
properties: { property: "data" },
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
};
|
|
13
|
+
class Stophy {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.description = {
|
|
16
|
+
displayName: "Stophy",
|
|
17
|
+
name: "stophy",
|
|
18
|
+
icon: "file:stophy.svg",
|
|
19
|
+
group: ["transform"],
|
|
20
|
+
version: 1,
|
|
21
|
+
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
22
|
+
description: "YouTube context for AI agents via the Stophy API",
|
|
23
|
+
defaults: { name: "Stophy" },
|
|
24
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
25
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
26
|
+
usableAsTool: true,
|
|
27
|
+
credentials: [{ name: "stophyApi", required: true }],
|
|
28
|
+
requestDefaults: {
|
|
29
|
+
baseURL: "https://api.stophy.dev",
|
|
30
|
+
headers: {
|
|
31
|
+
"Content-Type": "application/json",
|
|
32
|
+
Accept: "application/json",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
properties: [
|
|
36
|
+
{
|
|
37
|
+
displayName: "Resource",
|
|
38
|
+
name: "resource",
|
|
39
|
+
type: "options",
|
|
40
|
+
noDataExpression: true,
|
|
41
|
+
options: [
|
|
42
|
+
{ name: "Account", value: "account" },
|
|
43
|
+
{ name: "Channel", value: "channel" },
|
|
44
|
+
{ name: "Playlist", value: "playlist" },
|
|
45
|
+
{ name: "Search", value: "search" },
|
|
46
|
+
{ name: "Suggest", value: "suggest" },
|
|
47
|
+
{ name: "Video", value: "video" },
|
|
48
|
+
],
|
|
49
|
+
default: "search",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: "Operation",
|
|
53
|
+
name: "operation",
|
|
54
|
+
type: "options",
|
|
55
|
+
noDataExpression: true,
|
|
56
|
+
displayOptions: { show: { resource: ["search"] } },
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
name: "Search",
|
|
60
|
+
value: "search",
|
|
61
|
+
action: "Search for content",
|
|
62
|
+
routing: {
|
|
63
|
+
request: { method: "POST", url: "/v1/search" },
|
|
64
|
+
output: unwrapData,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
default: "search",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: "Query",
|
|
72
|
+
name: "query",
|
|
73
|
+
type: "string",
|
|
74
|
+
default: "",
|
|
75
|
+
required: true,
|
|
76
|
+
description: "The search query",
|
|
77
|
+
displayOptions: { show: { resource: ["search"], operation: ["search"] } },
|
|
78
|
+
routing: { send: { type: "body", property: "query", value: "={{ $value }}" } },
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: "Type",
|
|
82
|
+
name: "type",
|
|
83
|
+
type: "options",
|
|
84
|
+
options: [
|
|
85
|
+
{ name: "Channel", value: "channel" },
|
|
86
|
+
{ name: "Playlist", value: "playlist" },
|
|
87
|
+
{ name: "Video", value: "video" },
|
|
88
|
+
],
|
|
89
|
+
default: "video",
|
|
90
|
+
description: "Which kind of result to return",
|
|
91
|
+
displayOptions: { show: { resource: ["search"], operation: ["search"] } },
|
|
92
|
+
routing: { send: { type: "body", property: "type", value: "={{ $value }}" } },
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
displayName: "Sort By",
|
|
96
|
+
name: "sortBy",
|
|
97
|
+
type: "options",
|
|
98
|
+
options: [
|
|
99
|
+
{ name: "Rating", value: "rating" },
|
|
100
|
+
{ name: "Relevance", value: "relevance" },
|
|
101
|
+
{ name: "Upload Date", value: "uploadDate" },
|
|
102
|
+
{ name: "View Count", value: "viewCount" },
|
|
103
|
+
],
|
|
104
|
+
default: "relevance",
|
|
105
|
+
displayOptions: { show: { resource: ["search"], operation: ["search"] } },
|
|
106
|
+
routing: { send: { type: "body", property: "sortBy", value: "={{ $value }}" } },
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: "Operation",
|
|
110
|
+
name: "operation",
|
|
111
|
+
type: "options",
|
|
112
|
+
noDataExpression: true,
|
|
113
|
+
displayOptions: { show: { resource: ["suggest"] } },
|
|
114
|
+
options: [
|
|
115
|
+
{
|
|
116
|
+
name: "Get",
|
|
117
|
+
value: "get",
|
|
118
|
+
action: "Get search suggestions",
|
|
119
|
+
routing: {
|
|
120
|
+
request: { method: "GET", url: "/v1/suggest" },
|
|
121
|
+
output: unwrapData,
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
default: "get",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
displayName: "Query",
|
|
129
|
+
name: "q",
|
|
130
|
+
type: "string",
|
|
131
|
+
default: "",
|
|
132
|
+
required: true,
|
|
133
|
+
description: "The partial query to autocomplete",
|
|
134
|
+
displayOptions: { show: { resource: ["suggest"], operation: ["get"] } },
|
|
135
|
+
routing: { send: { type: "query", property: "q", value: "={{ $value }}" } },
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
displayName: "Additional Fields",
|
|
139
|
+
name: "additionalFields",
|
|
140
|
+
type: "collection",
|
|
141
|
+
placeholder: "Add Field",
|
|
142
|
+
default: {},
|
|
143
|
+
displayOptions: { show: { resource: ["suggest"], operation: ["get"] } },
|
|
144
|
+
options: [
|
|
145
|
+
{
|
|
146
|
+
displayName: "Language (Hl)",
|
|
147
|
+
name: "hl",
|
|
148
|
+
type: "string",
|
|
149
|
+
default: "",
|
|
150
|
+
description: "Interface language, e.g. en",
|
|
151
|
+
routing: { send: { type: "query", property: "hl", value: "={{ $value }}" } },
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: "Region (Gl)",
|
|
155
|
+
name: "gl",
|
|
156
|
+
type: "string",
|
|
157
|
+
default: "",
|
|
158
|
+
description: "Region code, e.g. US",
|
|
159
|
+
routing: { send: { type: "query", property: "gl", value: "={{ $value }}" } },
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: "Operation",
|
|
165
|
+
name: "operation",
|
|
166
|
+
type: "options",
|
|
167
|
+
noDataExpression: true,
|
|
168
|
+
displayOptions: { show: { resource: ["video"] } },
|
|
169
|
+
options: [
|
|
170
|
+
{
|
|
171
|
+
name: "Get Comments",
|
|
172
|
+
value: "comments",
|
|
173
|
+
action: "Get video comments",
|
|
174
|
+
routing: {
|
|
175
|
+
request: { method: "POST", url: "/v1/video", body: { type: "comments" } },
|
|
176
|
+
output: unwrapData,
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "Get Details",
|
|
181
|
+
value: "details",
|
|
182
|
+
action: "Get video details",
|
|
183
|
+
routing: {
|
|
184
|
+
request: { method: "POST", url: "/v1/video", body: { type: "details" } },
|
|
185
|
+
output: unwrapData,
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "Get Live Chat",
|
|
190
|
+
value: "livechat",
|
|
191
|
+
action: "Get live chat messages",
|
|
192
|
+
routing: {
|
|
193
|
+
request: { method: "POST", url: "/v1/video", body: { type: "livechat" } },
|
|
194
|
+
output: unwrapData,
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "Get Replies",
|
|
199
|
+
value: "replies",
|
|
200
|
+
action: "Get replies to a comment",
|
|
201
|
+
routing: {
|
|
202
|
+
request: { method: "POST", url: "/v1/video", body: { type: "replies" } },
|
|
203
|
+
output: unwrapData,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "Get Transcript",
|
|
208
|
+
value: "transcript",
|
|
209
|
+
action: "Get video transcript",
|
|
210
|
+
routing: {
|
|
211
|
+
request: { method: "POST", url: "/v1/video", body: { type: "transcript" } },
|
|
212
|
+
output: unwrapData,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
default: "details",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
displayName: "Video URL",
|
|
220
|
+
name: "videoUrl",
|
|
221
|
+
type: "string",
|
|
222
|
+
default: "",
|
|
223
|
+
required: true,
|
|
224
|
+
placeholder: "https://www.youtube.com/watch?v=...",
|
|
225
|
+
description: "The YouTube video URL",
|
|
226
|
+
displayOptions: {
|
|
227
|
+
show: {
|
|
228
|
+
resource: ["video"],
|
|
229
|
+
operation: ["details", "transcript", "comments", "livechat"],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
routing: { send: { type: "body", property: "videoUrl", value: "={{ $value }}" } },
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
displayName: "Continuation",
|
|
236
|
+
name: "continuation",
|
|
237
|
+
type: "string",
|
|
238
|
+
default: "",
|
|
239
|
+
required: true,
|
|
240
|
+
description: "The reply continuation token from a comments response",
|
|
241
|
+
displayOptions: { show: { resource: ["video"], operation: ["replies"] } },
|
|
242
|
+
routing: {
|
|
243
|
+
send: { type: "body", property: "continuationToken", value: "={{ $value }}" },
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
displayName: "Additional Fields",
|
|
248
|
+
name: "additionalFields",
|
|
249
|
+
type: "collection",
|
|
250
|
+
placeholder: "Add Field",
|
|
251
|
+
default: {},
|
|
252
|
+
displayOptions: { show: { resource: ["video"], operation: ["comments"] } },
|
|
253
|
+
options: [
|
|
254
|
+
{
|
|
255
|
+
displayName: "Continuation",
|
|
256
|
+
name: "continuation",
|
|
257
|
+
type: "string",
|
|
258
|
+
default: "",
|
|
259
|
+
description: "Page token from a previous comments response",
|
|
260
|
+
routing: {
|
|
261
|
+
send: { type: "body", property: "continuationToken", value: "={{ $value }}" },
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
displayName: "Additional Fields",
|
|
268
|
+
name: "additionalFields",
|
|
269
|
+
type: "collection",
|
|
270
|
+
placeholder: "Add Field",
|
|
271
|
+
default: {},
|
|
272
|
+
displayOptions: { show: { resource: ["video"], operation: ["livechat"] } },
|
|
273
|
+
options: [
|
|
274
|
+
{
|
|
275
|
+
displayName: "Mode",
|
|
276
|
+
name: "mode",
|
|
277
|
+
type: "options",
|
|
278
|
+
options: [
|
|
279
|
+
{ name: "Top (Moderated)", value: "top" },
|
|
280
|
+
{ name: "Live (All Messages)", value: "live" },
|
|
281
|
+
],
|
|
282
|
+
default: "top",
|
|
283
|
+
routing: { send: { type: "body", property: "mode", value: "={{ $value }}" } },
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
displayName: "Continuation",
|
|
287
|
+
name: "continuation",
|
|
288
|
+
type: "string",
|
|
289
|
+
default: "",
|
|
290
|
+
description: "Poll token from a previous livechat response (fetches only new messages)",
|
|
291
|
+
routing: {
|
|
292
|
+
send: { type: "body", property: "continuationToken", value: "={{ $value }}" },
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
displayName: "Operation",
|
|
299
|
+
name: "operation",
|
|
300
|
+
type: "options",
|
|
301
|
+
noDataExpression: true,
|
|
302
|
+
displayOptions: { show: { resource: ["channel"] } },
|
|
303
|
+
options: [
|
|
304
|
+
{
|
|
305
|
+
name: "Get",
|
|
306
|
+
value: "get",
|
|
307
|
+
action: "Get channel data",
|
|
308
|
+
routing: {
|
|
309
|
+
request: { method: "POST", url: "/v1/channel" },
|
|
310
|
+
output: unwrapData,
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
default: "get",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
displayName: "Channel URL",
|
|
318
|
+
name: "channelUrl",
|
|
319
|
+
type: "string",
|
|
320
|
+
default: "",
|
|
321
|
+
required: true,
|
|
322
|
+
placeholder: "https://www.youtube.com/@handle",
|
|
323
|
+
description: "The YouTube channel URL",
|
|
324
|
+
displayOptions: { show: { resource: ["channel"], operation: ["get"] } },
|
|
325
|
+
routing: { send: { type: "body", property: "channelUrl", value: "={{ $value }}" } },
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
displayName: "Additional Fields",
|
|
329
|
+
name: "additionalFields",
|
|
330
|
+
type: "collection",
|
|
331
|
+
placeholder: "Add Field",
|
|
332
|
+
default: {},
|
|
333
|
+
displayOptions: { show: { resource: ["channel"], operation: ["get"] } },
|
|
334
|
+
options: [
|
|
335
|
+
{
|
|
336
|
+
displayName: "Tab",
|
|
337
|
+
name: "tab",
|
|
338
|
+
type: "options",
|
|
339
|
+
options: [
|
|
340
|
+
{ name: "Video", value: "video" },
|
|
341
|
+
{ name: "Short", value: "short" },
|
|
342
|
+
{ name: "Playlist", value: "playlist" },
|
|
343
|
+
{ name: "About", value: "about" },
|
|
344
|
+
],
|
|
345
|
+
default: "video",
|
|
346
|
+
routing: { send: { type: "body", property: "tab", value: "={{ $value }}" } },
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
displayName: "Sort By",
|
|
350
|
+
name: "sortBy",
|
|
351
|
+
type: "options",
|
|
352
|
+
description: "Only applies with the Video tab",
|
|
353
|
+
options: [
|
|
354
|
+
{ name: "Latest", value: "latest" },
|
|
355
|
+
{ name: "Popular", value: "popular" },
|
|
356
|
+
{ name: "Oldest", value: "oldest" },
|
|
357
|
+
],
|
|
358
|
+
default: "latest",
|
|
359
|
+
routing: { send: { type: "body", property: "sortBy", value: "={{ $value }}" } },
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
displayName: "Operation",
|
|
365
|
+
name: "operation",
|
|
366
|
+
type: "options",
|
|
367
|
+
noDataExpression: true,
|
|
368
|
+
displayOptions: { show: { resource: ["playlist"] } },
|
|
369
|
+
options: [
|
|
370
|
+
{
|
|
371
|
+
name: "Get",
|
|
372
|
+
value: "get",
|
|
373
|
+
action: "Get playlist data",
|
|
374
|
+
routing: {
|
|
375
|
+
request: { method: "POST", url: "/v1/playlist" },
|
|
376
|
+
output: unwrapData,
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
default: "get",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
displayName: "Playlist URL",
|
|
384
|
+
name: "playlistUrl",
|
|
385
|
+
type: "string",
|
|
386
|
+
default: "",
|
|
387
|
+
required: true,
|
|
388
|
+
placeholder: "https://www.youtube.com/playlist?list=...",
|
|
389
|
+
description: "The YouTube playlist URL",
|
|
390
|
+
displayOptions: { show: { resource: ["playlist"], operation: ["get"] } },
|
|
391
|
+
routing: { send: { type: "body", property: "playlistUrl", value: "={{ $value }}" } },
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
displayName: "Operation",
|
|
395
|
+
name: "operation",
|
|
396
|
+
type: "options",
|
|
397
|
+
noDataExpression: true,
|
|
398
|
+
displayOptions: { show: { resource: ["account"] } },
|
|
399
|
+
options: [
|
|
400
|
+
{
|
|
401
|
+
name: "Get Credits",
|
|
402
|
+
value: "credits",
|
|
403
|
+
action: "Get remaining credits",
|
|
404
|
+
routing: {
|
|
405
|
+
request: { method: "GET", url: "/v1/credits" },
|
|
406
|
+
output: unwrapData,
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
name: "Get Logs",
|
|
411
|
+
value: "logs",
|
|
412
|
+
action: "Get request logs",
|
|
413
|
+
routing: {
|
|
414
|
+
request: { method: "GET", url: "/v1/logs" },
|
|
415
|
+
output: unwrapData,
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: "Get Usage",
|
|
420
|
+
value: "usage",
|
|
421
|
+
action: "Get usage statistics",
|
|
422
|
+
routing: {
|
|
423
|
+
request: { method: "GET", url: "/v1/usage" },
|
|
424
|
+
output: unwrapData,
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
default: "credits",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
displayName: "Days",
|
|
432
|
+
name: "days",
|
|
433
|
+
type: "number",
|
|
434
|
+
default: 30,
|
|
435
|
+
description: "Number of days to look back",
|
|
436
|
+
displayOptions: { show: { resource: ["account"], operation: ["usage"] } },
|
|
437
|
+
routing: { send: { type: "query", property: "days", value: "={{ $value }}" } },
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
displayName: "Additional Fields",
|
|
441
|
+
name: "additionalFields",
|
|
442
|
+
type: "collection",
|
|
443
|
+
placeholder: "Add Field",
|
|
444
|
+
default: {},
|
|
445
|
+
displayOptions: { show: { resource: ["account"], operation: ["logs"] } },
|
|
446
|
+
options: [
|
|
447
|
+
{
|
|
448
|
+
displayName: "Days",
|
|
449
|
+
name: "days",
|
|
450
|
+
type: "number",
|
|
451
|
+
default: 30,
|
|
452
|
+
description: "Number of days to look back",
|
|
453
|
+
routing: { send: { type: "query", property: "days", value: "={{ $value }}" } },
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
displayName: "Endpoint",
|
|
457
|
+
name: "endpoint",
|
|
458
|
+
type: "string",
|
|
459
|
+
default: "",
|
|
460
|
+
placeholder: "/v1/search",
|
|
461
|
+
description: "Filter by endpoint",
|
|
462
|
+
routing: { send: { type: "query", property: "endpoint", value: "={{ $value }}" } },
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
},
|
|
466
|
+
],
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
exports.Stophy = Stophy;
|
|
471
|
+
//# sourceMappingURL=Stophy.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stophy.node.js","s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B;oBAChC,IAAI,EAAE,kBAAkB;oBACxB,IAAI,EAAE,YAAY;oBAClB,WAAW,EAAE,WAAW;oBACxB,OAAO,EAAE,EAAE;oBACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;oBACxE,OAAO,EAAE;wBACR;4BACC,WAAW,EAAE,MAAM;4BACnB,IAAI,EAAE,MAAM;4BACZ,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,EAAE;4BACX,WAAW,EAAE,6BAA6B;4BAC1C,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE;yBAC9E;wBACD;4BACC,WAAW,EAAE,UAAU;4BACvB,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,EAAE;4BACX,WAAW,EAAE,YAAY;4BACzB,WAAW,EAAE,oBAAoB;4BACjC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE;yBAClF;qBACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA5cD,wBA4cC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-stophy.stophy",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Data & Storage", "AI"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://stophy.dev"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://stophy.dev"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400">
|
|
2
|
+
<rect width="400" height="400" rx="64" fill="#171b17"/>
|
|
3
|
+
<path d="M110 118 L110 282 L226 200 Z" fill="#2e9e5e"/>
|
|
4
|
+
<rect x="242" y="154" width="74" height="22" rx="11" fill="#2e9e5e"/>
|
|
5
|
+
<rect x="242" y="189" width="54" height="22" rx="11" fill="#2e9e5e"/>
|
|
6
|
+
<rect x="242" y="224" width="34" height="22" rx="11" fill="#2e9e5e"/>
|
|
7
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-stophy",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "n8n community node to interact with the Stophy API.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Hussein Hakizimana",
|
|
8
|
+
"email": "hussein@hakiiizimana.com"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://stophy.dev",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/stophydotdev/n8n-nodes-stophy.git"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/stophydotdev/n8n-nodes-stophy/issues"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"n8n-community-node-package",
|
|
23
|
+
"n8n",
|
|
24
|
+
"stophy",
|
|
25
|
+
"youtube",
|
|
26
|
+
"youtube-transcript",
|
|
27
|
+
"youtube-comments",
|
|
28
|
+
"youtube-channel",
|
|
29
|
+
"youtube-playlist",
|
|
30
|
+
"youtube-search",
|
|
31
|
+
"ai-agent",
|
|
32
|
+
"llm"
|
|
33
|
+
],
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=20"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "n8n-node build",
|
|
39
|
+
"build:watch": "tsc --watch",
|
|
40
|
+
"dev": "n8n-node dev",
|
|
41
|
+
"lint": "n8n-node lint",
|
|
42
|
+
"lint:fix": "n8n-node lint --fix",
|
|
43
|
+
"release": "n8n-node release",
|
|
44
|
+
"prepublishOnly": "n8n-node build"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist/nodes",
|
|
48
|
+
"dist/credentials"
|
|
49
|
+
],
|
|
50
|
+
"n8n": {
|
|
51
|
+
"n8nNodesApiVersion": 1,
|
|
52
|
+
"credentials": [
|
|
53
|
+
"dist/credentials/StophyApi.credentials.js"
|
|
54
|
+
],
|
|
55
|
+
"nodes": [
|
|
56
|
+
"dist/nodes/Stophy/Stophy.node.js"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"n8n-workflow": "*"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@n8n/node-cli": "^0.37.2",
|
|
64
|
+
"eslint": "9.39.4",
|
|
65
|
+
"prettier": "^3.9.4",
|
|
66
|
+
"release-it": "^20.2.1",
|
|
67
|
+
"typescript": "^5.9.3"
|
|
68
|
+
}
|
|
69
|
+
}
|