├── index.js ├── .release-please-manifest.json ├── docs ├── node.png ├── node-installation.png ├── node-parameters.png └── node-actions-and-triggers.png ├── .gitignore ├── .editorconfig ├── gulpfile.js ├── release-please-config.json ├── tsconfig.json ├── nodes └── Twitch │ ├── twitch.svg │ ├── GenericFunctions.ts │ ├── TwitchTrigger.node.ts │ └── Twitch.node.ts ├── credentials └── TwitchApi.credentials.ts ├── LICENSE ├── .github └── workflows │ └── publish.yml ├── package.json ├── CHANGELOG.md ├── README.md └── eslint.config.js /index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.release-please-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | ".": "1.8.0" 3 | } -------------------------------------------------------------------------------- /docs/node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodelyTV/n8n-nodes-twitch/HEAD/docs/node.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | .tmp 4 | tmp 5 | dist 6 | npm-debug.log* 7 | yarn.lock 8 | -------------------------------------------------------------------------------- /docs/node-installation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodelyTV/n8n-nodes-twitch/HEAD/docs/node-installation.png -------------------------------------------------------------------------------- /docs/node-parameters.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodelyTV/n8n-nodes-twitch/HEAD/docs/node-parameters.png -------------------------------------------------------------------------------- /docs/node-actions-and-triggers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodelyTV/n8n-nodes-twitch/HEAD/docs/node-actions-and-triggers.png -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = tab 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [package.json] 12 | indent_style = space 13 | 14 | [*.md] 15 | indent_style = space 16 | trim_trailing_whitespace = false 17 | 18 | [*.yml] 19 | indent_style = space 20 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | import path from 'path'; 2 | import { task, src, dest } from 'gulp'; 3 | 4 | task('build:icons', copyIcons); 5 | 6 | function copyIcons() { 7 | const nodeSource = path.resolve('nodes', '**', '*.{png,svg}'); 8 | const nodeDestination = path.resolve('dist', 'nodes'); 9 | 10 | src(nodeSource).pipe(dest(nodeDestination)); 11 | 12 | const credSource = path.resolve('credentials', '**', '*.{png,svg}'); 13 | const credDestination = path.resolve('dist', 'credentials'); 14 | 15 | return src(credSource).pipe(dest(credDestination)); 16 | } -------------------------------------------------------------------------------- /release-please-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": { 3 | ".": { 4 | "changelog-path": "CHANGELOG.md", 5 | "release-type": "node", 6 | "pull-request-title-pattern": "chore: release ${version}", 7 | "pull-request-header": "🍄 Release bump", 8 | "bump-minor-pre-major": true, 9 | "bump-patch-for-minor-pre-major": false, 10 | "draft": false, 11 | "prerelease": false, 12 | "include-v-in-tag": true, 13 | "include-component-in-tag": false 14 | } 15 | }, 16 | "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" 17 | } 18 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "compilerOptions": { 4 | "strict": true, 5 | "module": "es2020", 6 | "moduleResolution": "node", 7 | "target": "es2019", 8 | "lib": ["es2019", "es2020", "es2022.error"], 9 | "removeComments": true, 10 | "useUnknownInCatchVariables": false, 11 | "forceConsistentCasingInFileNames": true, 12 | "noImplicitAny": true, 13 | "noImplicitReturns": true, 14 | "noUnusedLocals": true, 15 | "strictNullChecks": true, 16 | "preserveConstEnums": true, 17 | "esModuleInterop": true, 18 | "resolveJsonModule": true, 19 | "incremental": true, 20 | "declaration": true, 21 | "sourceMap": true, 22 | "skipLibCheck": true, 23 | "outDir": "./dist/", 24 | }, 25 | "include": [ 26 | "credentials/**/*", 27 | "nodes/**/*", 28 | "nodes/**/*.json", 29 | "package.json", 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /nodes/Twitch/twitch.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /credentials/TwitchApi.credentials.ts: -------------------------------------------------------------------------------- 1 | import { 2 | ICredentialTestRequest, 3 | ICredentialType, 4 | INodeProperties, 5 | } from 'n8n-workflow'; 6 | 7 | export class TwitchApi implements ICredentialType { 8 | name = 'twitchApi'; 9 | displayName = 'Twitch API'; 10 | documentationUrl = 'https://github.com/CodelyTV/n8n-nodes-twitch?tab=readme-ov-file#-how-to-get-twitch-credentials'; 11 | properties: INodeProperties[] = [ 12 | { 13 | displayName: 'Client ID', 14 | name: 'clientId', 15 | type: 'string', 16 | default: '', 17 | }, 18 | { 19 | displayName: 'Client Secret', 20 | name: 'clientSecret', 21 | type: 'string', 22 | typeOptions: { password: true }, 23 | default: '', 24 | }, 25 | ]; 26 | 27 | test: ICredentialTestRequest = { 28 | request: { 29 | baseURL: 'https://id.twitch.tv', 30 | url: '/oauth2/token', 31 | method: 'POST', 32 | headers: { 33 | 'Content-Type': 'application/json', 34 | }, 35 | qs: { 36 | client_id: '={{$credentials.clientId}}', 37 | client_secret: '={{$credentials.clientSecret}}', 38 | grant_type: 'client_credentials', 39 | }, 40 | }, 41 | }; 42 | } 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2025 Codely Enseña y Entretiene SL. https://codely.com 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 13 | all 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 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json 2 | name: CI 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | jobs: 9 | lint-test: 10 | name: 🚀 Lint and build 11 | runs-on: ubuntu-latest 12 | timeout-minutes: 5 13 | steps: 14 | - uses: actions/checkout@v4 15 | with: 16 | fetch-depth: 2 17 | - uses: actions/setup-node@v4 18 | with: 19 | node-version: lts/* 20 | cache: npm 21 | - name: 📥 Install dependencies 22 | run: npm ci 23 | - name: 💅 Lint code style 24 | run: npm run lint 25 | - name: 💻 Build 26 | run: npm run build 27 | 28 | publish: 29 | if: github.ref == 'refs/heads/main' && github.event_name == 'push' 30 | name: 📦 Publish 31 | runs-on: ubuntu-latest 32 | needs: lint-test 33 | timeout-minutes: 5 34 | permissions: 35 | # Needed by googleapis/release-please-action@v4 36 | contents: write 37 | pull-requests: write 38 | issues: write 39 | # Needed by `npm publish --provenance` 40 | id-token: write 41 | steps: 42 | - name: 🍄 Bump package version, create GitHub release, and update changelog 43 | uses: googleapis/release-please-action@v4 44 | id: release 45 | - uses: actions/checkout@v4 46 | if: ${{ steps.release.outputs.release_created }} 47 | - uses: actions/setup-node@v4 48 | if: ${{ steps.release.outputs.release_created }} 49 | with: 50 | node-version: lts/* 51 | cache: npm 52 | registry-url: https://registry.npmjs.org 53 | - name: 🚀 Publish to npm 54 | if: ${{ steps.release.outputs.release_created }} 55 | run: | 56 | npm ci 57 | npm run build 58 | npm publish --access public --provenance 59 | env: 60 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 61 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@codelytv/n8n-nodes-twitch", 3 | "version": "1.8.0", 4 | "description": "n8n node for Twitch: Execute workflows on stream start, stream end, and new follows.", 5 | "keywords": [ 6 | "n8n", 7 | "n8n-node", 8 | "n8n-nodes", 9 | "node", 10 | "twitch", 11 | "streaming", 12 | "n8n-community-node-package", 13 | "codely", 14 | "codelytv" 15 | ], 16 | "license": "MIT", 17 | "homepage": "https://github.com/codelytv/n8n-nodes-twitch#readme", 18 | "bugs": { 19 | "url": "https://github.com/codelytv/n8n-nodes-twitch/issues" 20 | }, 21 | "author": { 22 | "name": "CodelyTV", 23 | "email": "support@codely.com" 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "https://github.com/CodelyTV/n8n-nodes-twitch" 28 | }, 29 | "type": "module", 30 | "engines": { 31 | "node": ">=20.0.0", 32 | "npm": ">=10.0.0" 33 | }, 34 | "main": "index.js", 35 | "scripts": { 36 | "build": "tsc && gulp build:icons", 37 | "dev": "tsc --watch", 38 | "format": "prettier nodes credentials --write", 39 | "lint": "eslint nodes credentials package.json", 40 | "lintfix": "eslint nodes credentials package.json --fix" 41 | }, 42 | "files": [ 43 | "dist" 44 | ], 45 | "n8n": { 46 | "n8nNodesApiVersion": 1, 47 | "credentials": [ 48 | "dist/credentials/TwitchApi.credentials.js" 49 | ], 50 | "nodes": [ 51 | "dist/nodes/Twitch/TwitchTrigger.node.js", 52 | "dist/nodes/Twitch/Twitch.node.js" 53 | ] 54 | }, 55 | "devDependencies": { 56 | "typescript": "^5.8.3", 57 | "n8n-workflow": "^1.82.0", 58 | "@types/express": "^5.0.2", 59 | "@types/node": "^22.15.21", 60 | "gulp": "^5.0.0", 61 | "jsonc-eslint-parser": "^2.4.0", 62 | "nodelinter": "^0.1.9", 63 | "eslint": "^9.27.0", 64 | "globals": "^16.1.0", 65 | "eslint-plugin-jsonc": "^2.20.1", 66 | "eslint-plugin-n8n-nodes-base": "^1.16.3", 67 | "typescript-eslint": "^8.32.1", 68 | "@typescript-eslint/eslint-plugin": "^8.32.1", 69 | "@typescript-eslint/parser": "^8.32.1" 70 | }, 71 | "peerDependencies": { 72 | "n8n-workflow": "*" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /nodes/Twitch/GenericFunctions.ts: -------------------------------------------------------------------------------- 1 | import { 2 | IDataObject, 3 | IExecuteFunctions, 4 | IHookFunctions, 5 | IHttpRequestMethods, 6 | IHttpRequestOptions, 7 | ILoadOptionsFunctions, 8 | INodePropertyOptions, 9 | IWebhookFunctions 10 | } from 'n8n-workflow'; 11 | 12 | export async function twitchApiRequest( 13 | this: 14 | | IExecuteFunctions 15 | | IWebhookFunctions 16 | | IHookFunctions 17 | | ILoadOptionsFunctions, 18 | method: string, 19 | resource: string, 20 | body: any = {}, 21 | query: IDataObject = {}, 22 | option: IDataObject = {}, 23 | ): Promise { 24 | // tslint:disable-line:no-any 25 | 26 | const credentials = (await this.getCredentials('twitchApi')) as IDataObject; 27 | 28 | const clientId = credentials.clientId; 29 | const clientSecret = credentials.clientSecret; 30 | 31 | const optionsForAppToken: IHttpRequestOptions = { 32 | headers: { 33 | 'Content-Type': 'application/json', 34 | }, 35 | method: 'POST', 36 | qs: { 37 | client_id: clientId, 38 | client_secret: clientSecret, 39 | grant_type: 'client_credentials', 40 | }, 41 | url: 'https://id.twitch.tv/oauth2/token', 42 | json: true, 43 | }; 44 | 45 | let appTokenResponse = null; 46 | 47 | try { 48 | appTokenResponse = await this.helpers.httpRequest(optionsForAppToken); 49 | } catch (errorObject: any) { 50 | if (errorObject.error) { 51 | const errorMessage = errorObject.error.message; 52 | throw new Error( 53 | `Twitch API App Token error response [${errorObject.error.status}]: ${errorMessage}`, 54 | ); 55 | } 56 | throw errorObject; 57 | } 58 | 59 | const endpoint = 'https://api.twitch.tv/helix'; 60 | const options: IHttpRequestOptions = { 61 | headers: { 62 | 'Content-Type': 'application/json', 63 | 'Client-Id': clientId, 64 | Authorization: 'Bearer ' + appTokenResponse.access_token, 65 | }, 66 | method: method as IHttpRequestMethods, 67 | body, 68 | qs: query, 69 | url: `${endpoint}${resource}`, 70 | json: true, 71 | }; 72 | if (!Object.keys(body).length) { 73 | delete options.body; 74 | } 75 | if (!Object.keys(query).length) { 76 | delete options.qs; 77 | } 78 | 79 | try { 80 | return await this.helpers.httpRequest(options); 81 | } catch (errorObject: any) { 82 | if (errorObject.error) { 83 | const errorMessage = errorObject.error.message; 84 | throw new Error( 85 | `Twitch API error response [${errorObject.error.status}]: ${errorMessage}`, 86 | ); 87 | } 88 | throw errorObject; 89 | } 90 | } 91 | 92 | export async function getChannels(this: ILoadOptionsFunctions): Promise { 93 | const returnData: INodePropertyOptions[] = []; 94 | const channels = await twitchApiRequest.call(this, 'GET', '/search/channels', {}, { query: this.getNodeParameter('userLogin', 0) as string}); 95 | 96 | if (channels.data === undefined) { 97 | throw new Error('No channels found'); 98 | } 99 | 100 | for (const channel of channels.data) { 101 | const channelName = channel.display_name; 102 | const channelId = channel.id; 103 | 104 | returnData.push({ 105 | name: channelName, 106 | value: channelId, 107 | }); 108 | } 109 | 110 | return returnData; 111 | } 112 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [1.8.0](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.7.0...v1.8.0) (2025-07-28) 4 | 5 | 6 | ### Features 7 | 8 | * add credentials test to validate credentials configuration in n8n ([#20](https://github.com/CodelyTV/n8n-nodes-twitch/issues/20)) ([34eb3cd](https://github.com/CodelyTV/n8n-nodes-twitch/commit/34eb3cd09f0ee6946b36b063bd707aedee0ac62b)) 9 | 10 | ## [1.7.0](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.6.0...v1.7.0) (2025-06-05) 11 | 12 | 13 | ### Features 14 | 15 | * add actions: searchChannels, searchCategories, getGameDetails, getTopGames ([#17](https://github.com/CodelyTV/n8n-nodes-twitch/issues/17)) ([149d56f](https://github.com/CodelyTV/n8n-nodes-twitch/commit/149d56f92e81c3fc231fb7412be4a8ef559ce9af)) 16 | 17 | ## [1.6.0](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.5.3...v1.6.0) (2025-05-26) 18 | 19 | 20 | ### Features 21 | 22 | * add Twitch action to fetch channel streams ([#14](https://github.com/CodelyTV/n8n-nodes-twitch/issues/14)) ([7d5d57d](https://github.com/CodelyTV/n8n-nodes-twitch/commit/7d5d57dcec28d37043f71b9d39b87a548c7fa257)) 23 | 24 | ## [1.5.3](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.5.2...v1.5.3) (2025-05-25) 25 | 26 | 27 | ### Bug Fixes 28 | 29 | * move non-necessary production dependencies to peer deps, improve docs ([#12](https://github.com/CodelyTV/n8n-nodes-twitch/issues/12)) ([215cc8e](https://github.com/CodelyTV/n8n-nodes-twitch/commit/215cc8e759185cb9d9fe7fd365c64123de1c327e)) 30 | * move non-necessary production dependencies to peer ones* ([b200c67](https://github.com/CodelyTV/n8n-nodes-twitch/commit/b200c67e297c5e30023e7d2292d875e27e53aab3)) 31 | * point the node documentation URL to the Readme section on how to authenticate as it is more user friendlyˆ ([27938b6](https://github.com/CodelyTV/n8n-nodes-twitch/commit/27938b6a22eba11df10646f9a35461a5b61e8eb2)) 32 | 33 | ## [1.5.2](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.5.1...v1.5.2) (2025-05-25) 34 | 35 | 36 | ### Bug Fixes 37 | 38 | * automate the release process* ([#10](https://github.com/CodelyTV/n8n-nodes-twitch/issues/10)) ([93946b3](https://github.com/CodelyTV/n8n-nodes-twitch/commit/93946b3047321125b9f0aabaee588423c15c8e0b)) 39 | 40 | ## [1.5.1](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.5.0...v1.5.1) (2025-05-25) 41 | 42 | 43 | ### Bug Fixes 44 | 45 | * resize documentation images* ([#8](https://github.com/CodelyTV/n8n-nodes-twitch/issues/8)) ([b1909f2](https://github.com/CodelyTV/n8n-nodes-twitch/commit/b1909f2651c3694a741970bcfdb1cbe9236d8f87)) 46 | 47 | ## [1.5.0](https://github.com/CodelyTV/n8n-nodes-twitch/compare/v1.4.0...v1.5.0) (2025-05-25) 48 | 49 | 50 | ### Features 51 | 52 | * publish npm on new release create ([35d3caa](https://github.com/CodelyTV/n8n-nodes-twitch/commit/35d3caa0b5ebdb07fd5bf43405921b6fab063432)) 53 | * refactor Twitch node to align with n8n best practices, improve CI/CD, update tooling, and ensure verified publishing with provenance [#3](https://github.com/CodelyTV/n8n-nodes-twitch/issues/3) ([039335f](https://github.com/CodelyTV/n8n-nodes-twitch/commit/039335fb866fc2c8ef130e63c753ecc4aae98bfc)) 54 | * twitch trigger node for n8n ([c252a3f](https://github.com/CodelyTV/n8n-nodes-twitch/commit/c252a3f20eb1472c926dd57a46dd1f4c0845c281)) 55 | 56 | 57 | ### Bug Fixes 58 | 59 | * add readme and license ([4ca1903](https://github.com/CodelyTV/n8n-nodes-twitch/commit/4ca19037908830a68369a502ea899caf173530e4)) 60 | * add version in packages.json ([ec18243](https://github.com/CodelyTV/n8n-nodes-twitch/commit/ec1824344e306fe154b94bf352edd21f85966294)) 61 | * adding public visibility for package ([bf65695](https://github.com/CodelyTV/n8n-nodes-twitch/commit/bf65695ee9ba55c34b287b9bf1552998adbb10a9)) 62 | * bump version for node ([bab6b2c](https://github.com/CodelyTV/n8n-nodes-twitch/commit/bab6b2c567a4b1db4aea7188effb045edac5455a)) 63 | * bump version for npmjs ([f91d964](https://github.com/CodelyTV/n8n-nodes-twitch/commit/f91d964ea1cf77d07c6473dad5a204e881ff8411)) 64 | * bump version to test auto-publish ([42e6215](https://github.com/CodelyTV/n8n-nodes-twitch/commit/42e62159b4a64a7475d33783f34eb37116dc8355)) 65 | * images in readme ([69efe0c](https://github.com/CodelyTV/n8n-nodes-twitch/commit/69efe0c8a829dac7538769b6268bd12ff1645224)) 66 | * missing workflows folder ([3614262](https://github.com/CodelyTV/n8n-nodes-twitch/commit/3614262757d2df41f46a10d6fc6e353f9a0b6287)) 67 | * package name ([72cbef5](https://github.com/CodelyTV/n8n-nodes-twitch/commit/72cbef5885ac64cc25bdb53fe88663dbcd3ddb97)) 68 | * readme urls with new repo name ([603ea30](https://github.com/CodelyTV/n8n-nodes-twitch/commit/603ea30009572b4475e0fd26843923289e83be7c)) 69 | * rename package and repo ([fc76957](https://github.com/CodelyTV/n8n-nodes-twitch/commit/fc7695798179ea67d626601e24f5c7189c9288e4)) 70 | * rerename package to nodes again ([927a823](https://github.com/CodelyTV/n8n-nodes-twitch/commit/927a823f72c87d9e986a3824ad1fda8767c374db)) 71 | * version number ([8c2b121](https://github.com/CodelyTV/n8n-nodes-twitch/commit/8c2b121a0f34a79d923c4850cd53c55f11cb2141)) 72 | -------------------------------------------------------------------------------- /nodes/Twitch/TwitchTrigger.node.ts: -------------------------------------------------------------------------------- 1 | import { 2 | ICredentialTestFunctions, 3 | ICredentialsDecrypted, 4 | IDataObject, 5 | IHookFunctions, 6 | INodeCredentialTestResult, 7 | INodeType, 8 | INodeTypeDescription, 9 | IWebhookFunctions, 10 | IWebhookResponseData 11 | } from 'n8n-workflow'; 12 | 13 | import { twitchApiRequest } from './GenericFunctions.js'; 14 | 15 | export class TwitchTrigger implements INodeType { 16 | description: INodeTypeDescription = { 17 | displayName: 'Twitch Trigger', 18 | name: 'twitchTrigger', 19 | icon: 'file:twitch.svg', 20 | group: ['trigger'], 21 | version: 1, 22 | subtitle: '={{$parameter["event"]}}', 23 | description: 'Handle Twitch events via webhooks', 24 | defaults: { 25 | name: 'Twitch Trigger', 26 | }, 27 | inputs: [], 28 | outputs: ['main'], 29 | credentials: [ 30 | { 31 | name: 'twitchApi', 32 | required: true, 33 | testedBy: 'testTwitchAuth', 34 | }, 35 | ], 36 | webhooks: [ 37 | { 38 | name: 'default', 39 | httpMethod: 'POST', 40 | responseMode: 'onReceived', 41 | path: 'webhook', 42 | }, 43 | ], 44 | properties: [ 45 | { 46 | displayName: 'Event', 47 | name: 'event', 48 | type: 'options', 49 | required: true, 50 | default: 'stream.online', 51 | options: [ 52 | { 53 | name: 'Channel Follow', 54 | value: 'channel.follow', 55 | }, 56 | { 57 | name: 'Channel Raid', 58 | value: 'channel.raid', 59 | }, 60 | { 61 | name: 'Channel Update', 62 | value: 'channel.update', 63 | }, 64 | { 65 | name: 'Stream Offline', 66 | value: 'stream.offline', 67 | }, 68 | { 69 | name: 'Stream Online', 70 | value: 'stream.online', 71 | }, 72 | ], 73 | }, 74 | { 75 | displayName: 'Channel', 76 | name: 'channel_name', 77 | type: 'string', 78 | required: true, 79 | default: '', 80 | }, 81 | ], 82 | }; 83 | 84 | methods = { 85 | credentialTest: { 86 | async testTwitchAuth( 87 | this: ICredentialTestFunctions, 88 | credential: ICredentialsDecrypted, 89 | ): Promise { 90 | const credentials = credential.data; 91 | 92 | const optionsForAppToken = { 93 | headers: { 94 | 'Content-Type': 'application/json', 95 | }, 96 | method: 'POST', 97 | qs: { 98 | client_id: credentials!.clientId, 99 | client_secret: credentials!.clientSecret, 100 | grant_type: 'client_credentials', 101 | }, 102 | uri: 'https://id.twitch.tv/oauth2/token', 103 | json: true, 104 | }; 105 | 106 | try { 107 | const response = await this.helpers.request(optionsForAppToken); 108 | if (!response.access_token) { 109 | return { 110 | status: 'Error', 111 | message: 'AccessToken not received', 112 | }; 113 | } 114 | } catch (err: unknown) { 115 | if (err instanceof Error) { 116 | return { 117 | status: 'Error', 118 | message: `Error getting access token; ${err.message}`, 119 | }; 120 | } 121 | } 122 | 123 | return { 124 | status: 'OK', 125 | message: 'Authentication successful!', 126 | }; 127 | }, 128 | }, 129 | }; 130 | 131 | webhookMethods = { 132 | default: { 133 | async checkExists(this: IHookFunctions): Promise { 134 | const webhookData = this.getWorkflowStaticData('node'); 135 | const webhookUrl = this.getNodeWebhookUrl('default'); 136 | const event = this.getNodeParameter('event') as string; 137 | const { data: webhooks } = await twitchApiRequest.call( 138 | this, 139 | 'GET', 140 | '/eventsub/subscriptions', 141 | ); 142 | for (const webhook of webhooks) { 143 | if ( 144 | webhook.transport.callback === webhookUrl && 145 | webhook.type === event 146 | ) { 147 | webhookData.webhookId = webhook.id; 148 | return true; 149 | } 150 | } 151 | return false; 152 | }, 153 | async create(this: IHookFunctions): Promise { 154 | const webhookUrl = this.getNodeWebhookUrl('default'); 155 | const webhookData = this.getWorkflowStaticData('node'); 156 | const event = this.getNodeParameter('event'); 157 | const channel = this.getNodeParameter('channel_name') as string; 158 | const userData = await twitchApiRequest.call( 159 | this, 160 | 'GET', 161 | '/users', 162 | {}, 163 | { login: channel }, 164 | ); 165 | const body = { 166 | type: event, 167 | version: '1', 168 | condition: { 169 | broadcaster_user_id: userData.data[0].id ?? '', 170 | }, 171 | transport: { 172 | method: 'webhook', 173 | callback: webhookUrl, 174 | secret: 'n8ncreatedSecret', 175 | }, 176 | }; 177 | const webhook = await twitchApiRequest.call( 178 | this, 179 | 'POST', 180 | '/eventsub/subscriptions', 181 | body, 182 | ); 183 | webhookData.webhookId = webhook.data[0].id; 184 | return true; 185 | }, 186 | async delete(this: IHookFunctions): Promise { 187 | const webhookData = this.getWorkflowStaticData('node'); 188 | try { 189 | await twitchApiRequest.call( 190 | this, 191 | 'DELETE', 192 | '/eventsub/subscriptions', 193 | {}, 194 | { id: webhookData.webhookId }, 195 | ); 196 | } catch (error) { 197 | return false; 198 | } 199 | delete webhookData.webhookId; 200 | return true; 201 | }, 202 | }, 203 | }; 204 | 205 | async webhook(this: IWebhookFunctions): Promise { 206 | const bodyData = this.getBodyData() as IDataObject; 207 | const res = this.getResponseObject(); 208 | const req = this.getRequestObject(); 209 | 210 | // Check if we're getting twitch challenge request to validate the webhook that has been created. 211 | if (bodyData['challenge']) { 212 | res.status(200).send(bodyData['challenge']).end(); 213 | return { 214 | noWebhookResponse: true, 215 | }; 216 | } 217 | 218 | return { 219 | workflowData: [this.helpers.returnJsonArray(req.body)], 220 | }; 221 | } 222 | } 223 | -------------------------------------------------------------------------------- /nodes/Twitch/Twitch.node.ts: -------------------------------------------------------------------------------- 1 | import { 2 | IDataObject, 3 | IExecuteFunctions, 4 | INodeType, 5 | INodeTypeDescription, 6 | } from 'n8n-workflow'; 7 | 8 | import { twitchApiRequest } from './GenericFunctions.js'; 9 | 10 | export class Twitch implements INodeType { 11 | description: INodeTypeDescription = { 12 | displayName: 'Twitch', 13 | name: 'twitch', 14 | icon: 'file:twitch.svg', 15 | group: ['transform'], 16 | version: 1, 17 | description: 'Interact with Twitch', 18 | defaults: { 19 | name: 'Twitch', 20 | }, 21 | inputs: ['main'], 22 | outputs: ['main'], 23 | credentials: [ 24 | { 25 | name: 'twitchApi', 26 | required: true, 27 | }, 28 | ], 29 | properties: [ 30 | { 31 | displayName: 'Operation', 32 | name: 'operation', 33 | type: 'options', 34 | noDataExpression: true, 35 | default: 'getChannelStreams', 36 | options: [ 37 | { 38 | name: 'Get Channel Streams', 39 | value: 'getChannelStreams', 40 | action: 'Get channel streams', 41 | }, 42 | { 43 | name: 'Get Game Details', 44 | value: 'getGameDetails', 45 | action: 'Get game details', 46 | }, 47 | { 48 | name: 'Get Top Games', 49 | value: 'getTopGames', 50 | action: 'Get top games', 51 | }, 52 | { 53 | name: 'Search Categories', 54 | value: 'searchCategories', 55 | action: 'Search categories', 56 | }, 57 | { 58 | name: 'Search Channels', 59 | value: 'searchChannels', 60 | action: 'Search channels', 61 | }, 62 | ], 63 | }, 64 | { 65 | displayName: 'Channel Name', 66 | name: 'channel_name', 67 | type: 'string', 68 | required: true, 69 | default: '', 70 | description: 'Name of the channel whose streams to retrieve', 71 | displayOptions: { 72 | show: { 73 | operation: ['getChannelStreams'], 74 | }, 75 | }, 76 | }, 77 | { 78 | displayName: 'Query', 79 | name: 'query', 80 | type: 'string', 81 | required: true, 82 | default: '', 83 | description: 'Search query', 84 | displayOptions: { 85 | show: { 86 | operation: ['searchChannels', 'searchCategories'], 87 | }, 88 | }, 89 | }, 90 | { 91 | displayName: 'Game Name', 92 | name: 'game_name', 93 | type: 'string', 94 | required: true, 95 | default: '', 96 | description: 'Name of the game', 97 | displayOptions: { 98 | show: { 99 | operation: ['getGameDetails'], 100 | }, 101 | }, 102 | }, 103 | { 104 | displayName: 'Limit', 105 | name: 'limit', 106 | type: 'number', 107 | typeOptions: { minValue: 1 }, 108 | default: 50, 109 | description: 'Max number of results to return', 110 | displayOptions: { 111 | show: { 112 | operation: ['getTopGames'], 113 | }, 114 | }, 115 | }, 116 | ], 117 | }; 118 | 119 | async execute(this: IExecuteFunctions) { 120 | const items = this.getInputData(); 121 | const returnData: IDataObject[] = []; 122 | 123 | for (let i = 0; i < items.length; i++) { 124 | const operation = this.getNodeParameter('operation', i) as string; 125 | 126 | if (operation === 'getChannelStreams') { 127 | const channelName = this.getNodeParameter('channel_name', i) as string; 128 | 129 | const response = await twitchApiRequest.call( 130 | this, 131 | 'GET', 132 | '/streams', 133 | {}, 134 | { user_login: channelName }, 135 | ); 136 | 137 | if (Array.isArray(response.data)) { 138 | returnData.push(...response.data); 139 | } 140 | } 141 | 142 | if (operation === 'searchChannels') { 143 | const query = this.getNodeParameter('query', i) as string; 144 | const response = await twitchApiRequest.call( 145 | this, 146 | 'GET', 147 | '/search/channels', 148 | {}, 149 | { query }, 150 | ); 151 | if (Array.isArray(response.data)) { 152 | returnData.push(...response.data); 153 | } 154 | } 155 | 156 | if (operation === 'searchCategories') { 157 | const query = this.getNodeParameter('query', i) as string; 158 | const response = await twitchApiRequest.call( 159 | this, 160 | 'GET', 161 | '/search/categories', 162 | {}, 163 | { query }, 164 | ); 165 | if (Array.isArray(response.data)) { 166 | returnData.push(...response.data); 167 | } 168 | } 169 | 170 | if (operation === 'getGameDetails') { 171 | const gameName = this.getNodeParameter('game_name', i) as string; 172 | const response = await twitchApiRequest.call( 173 | this, 174 | 'GET', 175 | '/games', 176 | {}, 177 | { name: gameName }, 178 | ); 179 | if (Array.isArray(response.data)) { 180 | returnData.push(...response.data); 181 | } 182 | } 183 | 184 | if (operation === 'getTopGames') { 185 | const limit = this.getNodeParameter('limit', i) as number; 186 | const response = await twitchApiRequest.call( 187 | this, 188 | 'GET', 189 | '/games/top', 190 | {}, 191 | { first: limit }, 192 | ); 193 | if (Array.isArray(response.data)) { 194 | returnData.push(...response.data); 195 | } 196 | } 197 | } 198 | 199 | return [this.helpers.returnJsonArray(returnData)]; 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | 4 | 5 | 6 | Codely logo 7 | 8 | 9 |

10 | 11 |

12 | 🛠 Twitch node for n8n 13 |

14 | 15 |

16 | Codely Open Source projects 17 | Codely Pro courses 18 |

19 | 20 |

21 | Trigger workflows on stream start or stream end, search for Twitch streams details… 22 |

23 | 24 |

25 | Stars welcomed 😊 26 |

27 | 28 | # 👀 n8n Twitch node features 29 | 30 | Once installed, you will be able to add Twitch triggers and actions to your n8n workflows. 31 | 32 | 1. Search for Twitch node: 33 | 34 | Twitch node in the n8n nodes panel 35 | 36 | 2. Select the desired action or trigger: 37 | 38 | Twitch node triggers 39 | 40 | 3. Parametrize it: 41 | 42 | Twitch node parameters 43 | 44 | # 🚀 Installation instructions 45 | 46 | This node is in the process to be officially verified by n8n. 47 | The installation process will be as simple as searching for "Twitch" in the nodes panel once we get that verification, 48 | but in the meantime, you have several options that depend on how you use n8n. 49 | 50 | We recommend checking out the [updated n8n instructions 51 | on how to install community nodes](https://docs.n8n.io/integrations/community-nodes/installation/) for possible updates to this process. 52 | 53 | ## a) n8n cloud instance 54 | 55 | It is not possible to install unverified community nodes in n8n cloud ([documentation](https://docs.n8n.io/integrations/community-nodes/installation/)). 56 | Once we get that verification, you will be able to install this node following [this step by step](https://docs.n8n.io/integrations/community-nodes/installation/verified-install/). 57 | 58 | ## b) Self-hosted n8n instance 59 | 60 | ### b.a) Not using queue mode: GUI installation 61 | 62 | Follow [the official instructions](https://docs.n8n.io/integrations/community-nodes/installation/gui-install/) 63 | specifying `@codelytv/n8n-nodes-twitch` as the node name to install: 64 | 65 | Twitch community node installation 66 | 67 | ## b.b) Using queue mode 68 | 69 | ### b.b.a) Install as npm package 70 | 71 | This is the officially recommended way for self-hosted n8n instances running in queue mode ([documentation](https://docs.n8n.io/integrations/community-nodes/installation/manual-install/). 72 | 73 | Go to the folder where n8n is installed (if you are using the standard Docker installation, it will probably be: 74 | `/usr/local/lib/node_modules/n8n`) and install the package as any other npm package: 75 | 76 | ```bash 77 | npm i @codelytv/n8n-nodes-twitch 78 | ``` 79 | 80 | ### b.b.b) Install as Custom Docker image 81 | 82 | `Dockerfile` contents example for a custom image with this node added: 83 | 84 | ```dockerfile 85 | ARG N8N_VERSION 86 | FROM n8nio/n8n:${N8N_VERSION} 87 | 88 | RUN if [ -z "$N8N_VERSION" ]; then echo "💥 N8N_VERSION argument missing."; exit 1; fi && \ 89 | mkdir -p /home/node/.n8n/nodes && \ 90 | npm install --prefix /home/node/.n8n/nodes --production --silent @codelytv/n8n-nodes-twitch 91 | ``` 92 | 93 | ### b.b.c) Install using Docker Compose / Docker Swarm with mapped volume 94 | 95 | Take into account that this option has a considerable downside: 96 | The workflows you create will contain `CUSTOM.twitchTrigger` as the node type reference instead of `@codelytv/n8n-nodes-twitch.twitchTrigger`. However, it could be the best approach if you want a faster feedback loop while developing. 97 | Take into account that localhost will not be reachable from Twitch, so you `probably are interested into exposing it with a tunnel using something like `cloudflared`, or just expose a remote host to Twitch. 98 | 99 | Docker Compose / Docker Swarm definition snippet: 100 | 101 | ```yaml 102 | volumes: 103 | n8n_data: 104 | name: '{{.Service.Name}}_{{.Task.Slot}}' 105 | 106 | services: 107 | n8n-main: 108 | volumes: 109 | - n8n_data:/home/node/.n8n 110 | - /home/codely/n8n-custom-nodes:/home/node/.n8n/custom 111 | ``` 112 | 113 | Deploy process: 114 | 115 | ```bash 116 | CUSTOM_NODES_DIR="$HOME/n8n-custom-nodes" 117 | 118 | mkdir -p "$CUSTOM_NODES_DIR" 119 | 120 | docker run --rm \ 121 | --user "$(id -u):$(id -g)" \ 122 | -v "$CUSTOM_NODES_DIR":/data \ 123 | -w /data \ 124 | node:22-alpine \ 125 | sh -c "npm install @codelytv/n8n-nodes-twitch --production --silent" 126 | 127 | docker stack deploy -c n8n-swarm.yml n8n 128 | ``` 129 | 130 | # 🔑 How to get Twitch credentials 131 | 132 | You will need to create a new Twitch application to get Client ID and Client Secret following these steps: 133 | 134 | 1. Go to the [Twitch Developer Console](https://dev.twitch.tv/console/apps). 135 | 2. Log in using your Twitch account credentials. 136 | 3. Click on the "+ Register Your Application" button. 137 | 4. Fill out the form as follows and click "Create": 138 | - Name: Name your app (e.g., “n8nTwitchBot”). 139 | - OAuth Redirect URLs: Use a valid redirect URL. 140 | Something like http://localhost:5678/rest/oauth2-credential/callback works. 141 | We do not plan to display Twitch authentication to end users with Oauth. 142 | We're only interested in getting the Client ID and Client Secret, so it's fine to specify a local URL. 143 | - Category: Application Integration 144 | - Client Type: Confidential 145 | 5. Get your credentials: 146 | - Click on "Manage" 147 | - Client ID: Visible right away. 148 | - Client Secret: Click "New Secret" to generate one. Be sure to store this securely (it won’t be shown again). 149 | 150 | # 💻 Documentation for node contributors 151 | 152 | How to locally test this node (based on [the official n8n guide](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/)): 153 | 154 | 1. Clone and move to the node development folder 155 | ```bash 156 | cd ~/Code/work/codely/public/ 157 | git clone git@github.com:CodelyTV/n8n-nodes-twitch.git 158 | cd n8n-nodes-twitch 159 | ``` 160 | 2. Build the node 161 | ```bash 162 | npm run build 163 | ``` 164 | 3. Create a npm global symlink to the locally installed package 165 | ```bash 166 | npm link 167 | ``` 168 | 4. Install n8n locally: 169 | ```bash 170 | npm install n8n -g 171 | ``` 172 | 5. Move to your n8n local installation 173 | ```bash 174 | cd ~/.n8n/ 175 | ``` 176 | 6. Create a custom nodes folder 177 | ```bash 178 | mkdir custom 179 | cd custom 180 | 7. Link the node package to the symlink previously created 181 | ```bash 182 | npm link @codelytv/n8n-nodes-twitch 183 | ``` 184 | 8. Validate that the local n8n instance has the Twitch node pointing to the local folder 185 | ```bash 186 | tree -L 3 -d 187 | ``` 188 | Expected output: 189 | ```bash 190 | . 191 | └── node_modules 192 | └── @codelytv 193 | └── n8n-nodes-twitch -> ../../../../Code/work/codely/public/n8n-nodes-twitch 194 | ``` 195 | 9. Run n8n 196 | ```bash 197 | n8n start 198 | ``` 199 | 10. Enjoy! 200 | 201 | # 👌 Codely Code Quality Standards 202 | 203 | Publishing this package we are committing ourselves to the following code quality standards: 204 | 205 | - 🤝 Respect **Semantic Versioning**: No breaking changes in patch or minor versions 206 | - 🤏 No surprises in transitive dependencies: Use the **bare minimum dependencies** needed to meet the purpose 207 | - 🎯 **One specific purpose** to meet without having to carry a bunch of unnecessary other utilities 208 | - 📖 **Well documented ReadMe** showing how to install and use 209 | - ⚖️ **License favoring Open Source** and collaboration 210 | -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- 1 | import globals from "globals"; 2 | import tseslint from "typescript-eslint"; 3 | import n8nNodesBasePlugin from "eslint-plugin-n8n-nodes-base"; 4 | import jsoncParser from "jsonc-eslint-parser"; 5 | import jsoncPlugin from "eslint-plugin-jsonc"; 6 | 7 | export default tseslint.config( 8 | { 9 | ignores: [ 10 | "dist/**", 11 | "node_modules/**", 12 | "**/*.js", 13 | "!.eslintrc.js", 14 | "eslint.config.js" 15 | ] 16 | }, 17 | { 18 | files: ["**/*.ts", "**/*.tsx"], 19 | languageOptions: { 20 | parser: tseslint.parser, 21 | parserOptions: { 22 | project: ["./tsconfig.json"], 23 | sourceType: "module", 24 | extraFileExtensions: [], 25 | }, 26 | globals: { 27 | ...globals.browser, 28 | ...globals.es6, 29 | ...globals.node, 30 | }, 31 | }, 32 | plugins: { 33 | "@typescript-eslint": tseslint.plugin, 34 | }, 35 | rules: { 36 | ...tseslint.configs.recommended.rules, 37 | }, 38 | }, 39 | { 40 | files: ["package.json"], 41 | languageOptions: { 42 | parser: jsoncParser, 43 | }, 44 | plugins: { 45 | "jsonc": jsoncPlugin, 46 | "n8n-nodes-base": n8nNodesBasePlugin, 47 | }, 48 | rules: { 49 | ...jsoncPlugin.configs["recommended-with-jsonc"].rules, 50 | ...n8nNodesBasePlugin.configs.community.rules, 51 | "n8n-nodes-base/community-package-json-name-still-default": "off", 52 | }, 53 | }, 54 | { 55 | files: ["./credentials/**/*.ts"], 56 | plugins: { 57 | "n8n-nodes-base": n8nNodesBasePlugin, 58 | }, 59 | rules: { 60 | ...n8nNodesBasePlugin.configs.credentials.rules, 61 | "n8n-nodes-base/cred-class-field-authenticate-type-assertion": "error", 62 | "n8n-nodes-base/cred-class-field-display-name-missing-oauth2": "error", 63 | "n8n-nodes-base/cred-class-field-display-name-miscased": "error", 64 | "n8n-nodes-base/cred-class-field-documentation-url-missing": "error", 65 | "n8n-nodes-base/cred-class-field-documentation-url-miscased": "off", 66 | "n8n-nodes-base/cred-class-field-name-missing-oauth2": "error", 67 | "n8n-nodes-base/cred-class-field-name-unsuffixed": "error", 68 | "n8n-nodes-base/cred-class-field-name-uppercase-first-char": "error", 69 | "n8n-nodes-base/cred-class-field-properties-assertion": "error", 70 | "n8n-nodes-base/cred-class-field-type-options-password-missing": "error", 71 | "n8n-nodes-base/cred-class-name-missing-oauth2-suffix": "error", 72 | "n8n-nodes-base/cred-class-name-unsuffixed": "error", 73 | "n8n-nodes-base/cred-filename-against-convention": "error", 74 | }, 75 | }, 76 | { 77 | files: ["./nodes/**/*.ts"], 78 | plugins: { 79 | "n8n-nodes-base": n8nNodesBasePlugin, 80 | }, 81 | rules: { 82 | ...n8nNodesBasePlugin.configs.nodes.rules, 83 | "n8n-nodes-base/node-class-description-credentials-name-unsuffixed": "error", 84 | "n8n-nodes-base/node-class-description-display-name-unsuffixed-trigger-node": "error", 85 | "n8n-nodes-base/node-class-description-empty-string": "error", 86 | "n8n-nodes-base/node-class-description-icon-not-svg": "error", 87 | "n8n-nodes-base/node-class-description-inputs-wrong-regular-node": "off", 88 | "n8n-nodes-base/node-class-description-inputs-wrong-trigger-node": "error", 89 | "n8n-nodes-base/node-class-description-missing-subtitle": "error", 90 | "n8n-nodes-base/node-class-description-non-core-color-present": "error", 91 | "n8n-nodes-base/node-class-description-name-miscased": "error", 92 | "n8n-nodes-base/node-class-description-name-unsuffixed-trigger-node": "error", 93 | "n8n-nodes-base/node-class-description-outputs-wrong": "off", 94 | "n8n-nodes-base/node-dirname-against-convention": "error", 95 | "n8n-nodes-base/node-execute-block-double-assertion-for-items": "error", 96 | "n8n-nodes-base/node-execute-block-wrong-error-thrown": "error", 97 | "n8n-nodes-base/node-filename-against-convention": "error", 98 | "n8n-nodes-base/node-param-array-type-assertion": "error", 99 | "n8n-nodes-base/node-param-color-type-unused": "error", 100 | "n8n-nodes-base/node-param-default-missing": "error", 101 | "n8n-nodes-base/node-param-default-wrong-for-boolean": "error", 102 | "n8n-nodes-base/node-param-default-wrong-for-collection": "error", 103 | "n8n-nodes-base/node-param-default-wrong-for-fixed-collection": "error", 104 | "n8n-nodes-base/node-param-default-wrong-for-multi-options": "error", 105 | "n8n-nodes-base/node-param-default-wrong-for-number": "error", 106 | "n8n-nodes-base/node-param-default-wrong-for-simplify": "error", 107 | "n8n-nodes-base/node-param-default-wrong-for-string": "error", 108 | "n8n-nodes-base/node-param-description-boolean-without-whether": "error", 109 | "n8n-nodes-base/node-param-description-comma-separated-hyphen": "error", 110 | "n8n-nodes-base/node-param-description-empty-string": "error", 111 | "n8n-nodes-base/node-param-description-excess-final-period": "error", 112 | "n8n-nodes-base/node-param-description-excess-inner-whitespace": "error", 113 | "n8n-nodes-base/node-param-description-identical-to-display-name": "error", 114 | "n8n-nodes-base/node-param-description-line-break-html-tag": "error", 115 | "n8n-nodes-base/node-param-description-lowercase-first-char": "error", 116 | "n8n-nodes-base/node-param-description-miscased-id": "error", 117 | "n8n-nodes-base/node-param-description-miscased-json": "error", 118 | "n8n-nodes-base/node-param-description-miscased-url": "error", 119 | "n8n-nodes-base/node-param-description-missing-final-period": "error", 120 | "n8n-nodes-base/node-param-description-missing-for-ignore-ssl-issues": "error", 121 | "n8n-nodes-base/node-param-description-missing-for-return-all": "error", 122 | "n8n-nodes-base/node-param-description-missing-for-simplify": "error", 123 | "n8n-nodes-base/node-param-description-missing-from-dynamic-multi-options": "error", 124 | "n8n-nodes-base/node-param-description-missing-from-dynamic-options": "error", 125 | "n8n-nodes-base/node-param-description-missing-from-limit": "error", 126 | "n8n-nodes-base/node-param-description-unencoded-angle-brackets": "error", 127 | "n8n-nodes-base/node-param-description-unneeded-backticks": "error", 128 | "n8n-nodes-base/node-param-description-untrimmed": "error", 129 | "n8n-nodes-base/node-param-description-url-missing-protocol": "error", 130 | "n8n-nodes-base/node-param-description-weak": "error", 131 | "n8n-nodes-base/node-param-description-wrong-for-dynamic-multi-options": "error", 132 | "n8n-nodes-base/node-param-description-wrong-for-dynamic-options": "error", 133 | "n8n-nodes-base/node-param-description-wrong-for-ignore-ssl-issues": "error", 134 | "n8n-nodes-base/node-param-description-wrong-for-limit": "error", 135 | "n8n-nodes-base/node-param-description-wrong-for-return-all": "error", 136 | "n8n-nodes-base/node-param-description-wrong-for-simplify": "error", 137 | "n8n-nodes-base/node-param-description-wrong-for-upsert": "error", 138 | "n8n-nodes-base/node-param-display-name-excess-inner-whitespace": "error", 139 | "n8n-nodes-base/node-param-display-name-miscased-id": "error", 140 | "n8n-nodes-base/node-param-display-name-miscased": "error", 141 | "n8n-nodes-base/node-param-display-name-not-first-position": "error", 142 | "n8n-nodes-base/node-param-display-name-untrimmed": "error", 143 | "n8n-nodes-base/node-param-display-name-wrong-for-dynamic-multi-options": "error", 144 | "n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options": "error", 145 | "n8n-nodes-base/node-param-display-name-wrong-for-simplify": "error", 146 | "n8n-nodes-base/node-param-display-name-wrong-for-update-fields": "error", 147 | "n8n-nodes-base/node-param-min-value-wrong-for-limit": "error", 148 | "n8n-nodes-base/node-param-multi-options-type-unsorted-items": "error", 149 | "n8n-nodes-base/node-param-name-untrimmed": "error", 150 | "n8n-nodes-base/node-param-operation-option-action-wrong-for-get-many": "error", 151 | "n8n-nodes-base/node-param-operation-option-description-wrong-for-get-many": "error", 152 | "n8n-nodes-base/node-param-operation-option-without-action": "error", 153 | "n8n-nodes-base/node-param-operation-without-no-data-expression": "error", 154 | "n8n-nodes-base/node-param-option-description-identical-to-name": "error", 155 | "n8n-nodes-base/node-param-option-name-containing-star": "error", 156 | "n8n-nodes-base/node-param-option-name-duplicate": "error", 157 | "n8n-nodes-base/node-param-option-name-wrong-for-get-many": "error", 158 | "n8n-nodes-base/node-param-option-name-wrong-for-upsert": "error", 159 | "n8n-nodes-base/node-param-option-value-duplicate": "error", 160 | "n8n-nodes-base/node-param-options-type-unsorted-items": "error", 161 | "n8n-nodes-base/node-param-placeholder-miscased-id": "error", 162 | "n8n-nodes-base/node-param-placeholder-missing-email": "error", 163 | "n8n-nodes-base/node-param-required-false": "error", 164 | "n8n-nodes-base/node-param-resource-with-plural-option": "error", 165 | "n8n-nodes-base/node-param-resource-without-no-data-expression": "error", 166 | "n8n-nodes-base/node-param-type-options-missing-from-limit": "error", 167 | "n8n-nodes-base/node-param-type-options-password-missing": "error", 168 | }, 169 | } 170 | ); --------------------------------------------------------------------------------