n8n-nodes-anysearch 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.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MCapricorns
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,103 @@
1
+ # n8n-nodes-anysearch
2
+
3
+ [n8n](https://n8n.io) community nodes for [AnySearch](https://www.anysearch.com) — real-time
4
+ search infrastructure built for AI agents. This package lets n8n workflows run unified web
5
+ searches, vertical (capability-tag) searches, and clean URL content extraction through a single
6
+ API.
7
+
8
+ ## Nodes
9
+
10
+ ### AnySearch
11
+
12
+ One node with three resources:
13
+
14
+ | Resource | Operation | API endpoint | Description |
15
+ | --- | --- | --- | --- |
16
+ | Search | Search | `POST /v1/search` | Unified or vertical search. Returns one item per result (title, url, snippet, content) or the full response envelope. |
17
+ | Extract | Extract Content | `POST /v1/extract` | Extracts cleaned content (plain text/Markdown) from a public HTTP(S) URL. |
18
+ | Capability | List All Domains | `GET /v1/domains` | Lists every capability domain (code, finance, academic, ...) with its sub-domain count. |
19
+ | Capability | Get Sub-Domains | `GET /v1/sub-domains` | Lists capability tags (e.g. `code.snippet`, `finance.quote`) and their parameters for the selected domains. |
20
+
21
+ Search options: `maxResults` (1–10), `tag` (vertical capability tag like `code.snippet`),
22
+ `zone` (`cn` / `intl`), `language` (e.g. `zh-CN`), `format` (`json` / `markdown`),
23
+ `params` (extra JSON parameters for the tag, e.g. `{"lang": "go"}`), and `simplify`.
24
+
25
+ The node also works as an AI tool (`usableAsTool`), so you can plug it straight into AI Agent
26
+ workflows.
27
+
28
+ ## Compatibility
29
+
30
+ - Requires n8n version 1.x or later.
31
+ - No runtime dependencies.
32
+
33
+ ## Credentials
34
+
35
+ The `AnySearch API` credential holds a single API key. It is **optional** — without it, requests
36
+ use anonymous access (rate-limited per IP against a daily free quota). With a key, requests draw
37
+ from that key's quota and get higher concurrency limits.
38
+
39
+ To register a key with a test email:
40
+
41
+ ```bash
42
+ curl -s -X POST "https://api.anysearch.com/v1/auth/email/register" \
43
+ -H "Content-Type: application/json" \
44
+ -d '{"email": "you@example.com"}'
45
+ ```
46
+
47
+ The response contains an `api_key` value starting with `as_sk_`. Paste it into the credential's
48
+ **API Key** field. The credential's connection test calls `GET /v1/domains`, which does not
49
+ consume search quota.
50
+
51
+ ## Installation
52
+
53
+ ### In n8n (self-hosted or cloud)
54
+
55
+ Install via the **Settings > Community Nodes** panel: search for `n8n-nodes-anysearch` and click
56
+ install. On self-hosted instances without the panel, set:
57
+
58
+ ```
59
+ N8N_COMMUNITY_PACKAGES_ENABLED=true
60
+ ```
61
+
62
+ ### Manual (self-hosted)
63
+
64
+ ```bash
65
+ cd ~/.n8n/custom
66
+ npm install n8n-nodes-anysearch
67
+ ```
68
+
69
+ Restart n8n and the **AnySearch** node appears in the node panel.
70
+
71
+ ## Usage examples
72
+
73
+ - **Web search**: Resource `Search`, query `n8n workflow automation`, Max Results `5` → one item
74
+ per result, ready for an AI Agent or a Slack message.
75
+ - **Vertical search**: add Capability Tag `code.snippet` and Tag Parameters `{"lang": "python"}` to
76
+ search real code implementations only.
77
+ - **Read a page**: Resource `Extract`, URL of an article → cleaned `content` plus `title`.
78
+ - **Discover tags**: Resource `Capability` → List All Domains, then Get Sub-Domains for the
79
+ domains you care about.
80
+
81
+ ## Development
82
+
83
+ ```bash
84
+ npm install # install dev dependencies
85
+ npm run build # compile to dist/
86
+ npm run lint # lint with the n8n node config
87
+ npm run dev # run a local n8n instance with the node loaded
88
+ ANYSEARCH_API_KEY=as_sk_xxx node scripts/smoke.mjs # live smoke test against the real API
89
+ ```
90
+
91
+ ## Release
92
+
93
+ This package follows the official n8n community node release flow:
94
+
95
+ 1. `npm run release` — bumps the version, updates the changelog, tags, and pushes.
96
+ 2. The [publish workflow](.github/workflows/publish.yml) publishes to npm with a provenance
97
+ attestation (required by n8n for verification since May 2026).
98
+ 3. Submit the published version for verification in the
99
+ [n8n Creator Portal](https://creators.n8n.io/nodes).
100
+
101
+ ## License
102
+
103
+ [MIT](LICENSE.md)
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none" role="img" aria-labelledby="title desc">
2
+ <title id="title">AnySearch</title>
3
+ <desc id="desc">AnySearch brand mark</desc>
4
+ <path d="M20 30H9.99997V10H30V20H40V0H-3.05176e-05V40H20V30Z" fill="#3559F0"/>
5
+ <path d="M40 30H30V40H40V30Z" fill="#3559F0"/>
6
+ <path d="M20 30H10V40H20V30Z" fill="#3E84FF"/>
7
+ <path d="M9.99999 0H-1.52588e-05V10H9.99999V0Z" fill="#3559F0"/>
8
+ <path d="M30 0H10V10H30V0Z" fill="#3E84FF"/>
9
+ <path d="M40 0H30V10H40V0Z" fill="#3559F0"/>
10
+ <path d="M40 10.0039H30V20.0039H40V10.0039Z" fill="#3E84FF"/>
11
+ </svg>
12
+
@@ -0,0 +1,21 @@
1
+ import type { ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class AnySearchApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: Icon;
7
+ properties: INodeProperties[];
8
+ authenticate: {
9
+ type: "generic";
10
+ properties: {
11
+ headers: {
12
+ Authorization: string;
13
+ };
14
+ };
15
+ };
16
+ test: {
17
+ request: {
18
+ url: string;
19
+ };
20
+ };
21
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnySearchApi = void 0;
4
+ class AnySearchApi {
5
+ constructor() {
6
+ this.name = 'anySearchApi';
7
+ this.displayName = 'AnySearch API';
8
+ this.documentationUrl = 'https://github.com/MCapricorns/n8n-nodes-anysearch#credentials';
9
+ this.icon = 'file:AnySearch.svg';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API Key',
13
+ name: 'apiKey',
14
+ type: 'string',
15
+ typeOptions: {
16
+ password: true,
17
+ },
18
+ default: '',
19
+ required: true,
20
+ description: 'AnySearch API key (starts with as_sk_). Register one via POST /v1/auth/email/register or at https://www.anysearch.com',
21
+ },
22
+ ];
23
+ this.authenticate = {
24
+ type: 'generic',
25
+ properties: {
26
+ headers: {
27
+ Authorization: '=Bearer {{$credentials.apiKey}}',
28
+ },
29
+ },
30
+ };
31
+ this.test = {
32
+ request: {
33
+ url: 'https://api.anysearch.com/v1/domains',
34
+ },
35
+ };
36
+ }
37
+ }
38
+ exports.AnySearchApi = AnySearchApi;
39
+ //# sourceMappingURL=AnySearchApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnySearchApi.credentials.js","sourceRoot":"","sources":["../../credentials/AnySearchApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,gEAAgE,CAAC;QAEpF,SAAI,GAAS,oBAAoB,CAAC;QAElC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EACV,uHAAuH;aACxH;SACD,CAAC;QAEF,iBAAY,GAAG;YACd,IAAI,EAAE,SAAkB;YACxB,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAGF,SAAI,GAAG;YACN,OAAO,EAAE;gBACR,GAAG,EAAE,sCAAsC;aAC3C;SACD,CAAC;IACH,CAAC;CAAA;AAvCD,oCAuCC"}
@@ -0,0 +1,10 @@
1
+ import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class AnySearch implements INodeType {
3
+ methods: {
4
+ loadOptions: {
5
+ getDomains(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
6
+ };
7
+ };
8
+ description: INodeTypeDescription;
9
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
10
+ }
@@ -0,0 +1,517 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnySearch = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const API_BASE_URL = 'https://api.anysearch.com';
6
+ async function hasAnySearchCredential() {
7
+ try {
8
+ await this.getCredentials('anySearchApi');
9
+ return true;
10
+ }
11
+ catch {
12
+ return false;
13
+ }
14
+ }
15
+ async function anySearchRequest(options) {
16
+ const requestOptions = {
17
+ json: true,
18
+ ...options,
19
+ };
20
+ let response;
21
+ try {
22
+ response = (await hasAnySearchCredential.call(this))
23
+ ? await this.helpers.httpRequestWithAuthentication.call(this, 'anySearchApi', requestOptions)
24
+ : await this.helpers.httpRequest(requestOptions);
25
+ }
26
+ catch (error) {
27
+ throw toUpstreamError(this.getNode(), error);
28
+ }
29
+ if (typeof response.code === 'number' && response.code !== 0) {
30
+ const detail = response.message && response.message.trim().length > 0
31
+ ? response.message
32
+ : `AnySearch API error ${response.code}`;
33
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), detail);
34
+ }
35
+ return response;
36
+ }
37
+ function toUpstreamError(node, error) {
38
+ var _a;
39
+ const message = error instanceof Error ? error.message : String(error);
40
+ const description = error.description;
41
+ const combined = `${message} ${typeof description === 'string' ? description : ''}`;
42
+ const httpCode = Number((_a = error.httpCode) !== null && _a !== void 0 ? _a : error.statusCode);
43
+ if (httpCode === 402 || /api_key|password/i.test(combined)) {
44
+ return new n8n_workflow_1.NodeOperationError(node, 'AnySearch quota exhausted. Register an API key at https://www.anysearch.com (or POST /v1/auth/email/register), set it in the AnySearch API credential, then retry.');
45
+ }
46
+ return new n8n_workflow_1.NodeOperationError(node, message);
47
+ }
48
+ function parseJsonObjectParameter(node, value, fieldName) {
49
+ let parsed = value;
50
+ if (typeof value === 'string') {
51
+ const trimmed = value.trim();
52
+ if (trimmed === '') {
53
+ throw new n8n_workflow_1.NodeOperationError(node, `${fieldName} must be a JSON object`);
54
+ }
55
+ try {
56
+ parsed = JSON.parse(trimmed);
57
+ }
58
+ catch {
59
+ throw new n8n_workflow_1.NodeOperationError(node, `${fieldName} must be valid JSON`);
60
+ }
61
+ }
62
+ if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
63
+ throw new n8n_workflow_1.NodeOperationError(node, `${fieldName} must be a JSON object`);
64
+ }
65
+ return parsed;
66
+ }
67
+ function toStringArray(node, value, fieldName) {
68
+ const raw = typeof value === 'string' ? value.split(',') : Array.isArray(value) ? value : [value];
69
+ const values = raw.map((entry) => String(entry).trim()).filter((entry) => entry.length > 0);
70
+ if (values.length === 0) {
71
+ throw new n8n_workflow_1.NodeOperationError(node, `${fieldName} must not be empty`);
72
+ }
73
+ return values;
74
+ }
75
+ async function searchOperation(itemIndex) {
76
+ var _a, _b, _c;
77
+ const query = this.getNodeParameter('query', itemIndex).trim();
78
+ if (query === '') {
79
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Query must not be empty');
80
+ }
81
+ const options = this.getNodeParameter('options', itemIndex, {});
82
+ const body = { query };
83
+ if (options.maxResults !== undefined && options.maxResults !== null) {
84
+ body.max_results = options.maxResults;
85
+ }
86
+ const tag = options.tag;
87
+ if (tag && tag.trim() !== '') {
88
+ body.tag = tag.trim();
89
+ }
90
+ const zone = options.zone;
91
+ if (zone) {
92
+ body.zone = zone;
93
+ }
94
+ const language = options.language;
95
+ if (language && language.trim() !== '') {
96
+ body.language = language.trim();
97
+ }
98
+ const format = options.format;
99
+ if (format && format !== 'json') {
100
+ body.format = format;
101
+ }
102
+ if (options.params !== undefined && options.params !== '') {
103
+ body.params = parseJsonObjectParameter(this.getNode(), options.params, 'Options > Tag Parameters');
104
+ }
105
+ const envelope = await anySearchRequest.call(this, {
106
+ method: 'POST',
107
+ url: `${API_BASE_URL}/v1/search`,
108
+ body,
109
+ });
110
+ const data = (_a = envelope.data) !== null && _a !== void 0 ? _a : {};
111
+ const results = (_b = data.results) !== null && _b !== void 0 ? _b : [];
112
+ const simplify = options.simplify === undefined ? true : Boolean(options.simplify);
113
+ if (simplify) {
114
+ return results.map((result) => ({
115
+ json: result,
116
+ pairedItem: {
117
+ item: itemIndex,
118
+ },
119
+ }));
120
+ }
121
+ return [
122
+ {
123
+ json: {
124
+ request_id: envelope.request_id,
125
+ results,
126
+ metadata: (_c = data.metadata) !== null && _c !== void 0 ? _c : {},
127
+ },
128
+ pairedItem: {
129
+ item: itemIndex,
130
+ },
131
+ },
132
+ ];
133
+ }
134
+ async function extractOperation(itemIndex) {
135
+ var _a, _b, _c, _d;
136
+ const url = this.getNodeParameter('url', itemIndex).trim();
137
+ if (!/^https?:\/\//i.test(url)) {
138
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'URL must start with http:// or https://');
139
+ }
140
+ const envelope = await anySearchRequest.call(this, {
141
+ method: 'POST',
142
+ url: `${API_BASE_URL}/v1/extract`,
143
+ body: { url },
144
+ });
145
+ const data = (_a = envelope.data) !== null && _a !== void 0 ? _a : {};
146
+ return [
147
+ {
148
+ json: {
149
+ url: (_b = data.url) !== null && _b !== void 0 ? _b : url,
150
+ title: (_c = data.title) !== null && _c !== void 0 ? _c : '',
151
+ content: (_d = data.content) !== null && _d !== void 0 ? _d : '',
152
+ },
153
+ pairedItem: {
154
+ item: itemIndex,
155
+ },
156
+ },
157
+ ];
158
+ }
159
+ async function capabilityOperation(itemIndex, operation) {
160
+ var _a, _b, _c, _d;
161
+ if (operation === 'getDomains') {
162
+ const envelope = await anySearchRequest.call(this, {
163
+ method: 'GET',
164
+ url: `${API_BASE_URL}/v1/domains`,
165
+ });
166
+ const domains = (_b = (_a = envelope.data) === null || _a === void 0 ? void 0 : _a.domains) !== null && _b !== void 0 ? _b : [];
167
+ return domains.map((domain) => ({
168
+ json: domain,
169
+ pairedItem: {
170
+ item: itemIndex,
171
+ },
172
+ }));
173
+ }
174
+ if (operation === 'getSubDomains') {
175
+ const domains = toStringArray(this.getNode(), this.getNodeParameter('domains', itemIndex, []), 'Domain Names or IDs');
176
+ const searchParams = new URLSearchParams();
177
+ for (const domain of domains) {
178
+ searchParams.append('domain', domain);
179
+ }
180
+ const envelope = await anySearchRequest.call(this, {
181
+ method: 'GET',
182
+ url: `${API_BASE_URL}/v1/sub-domains?${searchParams.toString()}`,
183
+ });
184
+ const resultDomains = (_d = (_c = envelope.data) === null || _c === void 0 ? void 0 : _c.domains) !== null && _d !== void 0 ? _d : [];
185
+ return resultDomains.map((domain) => ({
186
+ json: domain,
187
+ pairedItem: {
188
+ item: itemIndex,
189
+ },
190
+ }));
191
+ }
192
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown capability operation: ${operation}`);
193
+ }
194
+ class AnySearch {
195
+ constructor() {
196
+ this.methods = {
197
+ loadOptions: {
198
+ async getDomains() {
199
+ var _a, _b;
200
+ const envelope = await anySearchRequest.call(this, {
201
+ method: 'GET',
202
+ url: `${API_BASE_URL}/v1/domains`,
203
+ });
204
+ const domains = (_b = (_a = envelope.data) === null || _a === void 0 ? void 0 : _a.domains) !== null && _b !== void 0 ? _b : [];
205
+ return domains.map((domain) => {
206
+ var _a, _b, _c;
207
+ return ({
208
+ value: String((_a = domain.domain) !== null && _a !== void 0 ? _a : ''),
209
+ name: `${String((_b = domain.domain) !== null && _b !== void 0 ? _b : '')} — ${String((_c = domain.description) !== null && _c !== void 0 ? _c : '')}`,
210
+ });
211
+ });
212
+ },
213
+ },
214
+ };
215
+ this.description = {
216
+ displayName: 'AnySearch',
217
+ name: 'anySearch',
218
+ icon: { light: 'file:anysearch.svg', dark: 'file:anysearch.dark.svg' },
219
+ group: ['transform'],
220
+ version: 1,
221
+ subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
222
+ description: 'Search the web with unified or vertical capability tags, and extract clean page content, via AnySearch',
223
+ defaults: {
224
+ name: 'AnySearch',
225
+ },
226
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
227
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
228
+ usableAsTool: true,
229
+ credentials: [
230
+ {
231
+ name: 'anySearchApi',
232
+ required: false,
233
+ },
234
+ ],
235
+ properties: [
236
+ {
237
+ displayName: 'Resource',
238
+ name: 'resource',
239
+ type: 'options',
240
+ noDataExpression: true,
241
+ required: true,
242
+ options: [
243
+ {
244
+ name: 'Search',
245
+ value: 'search',
246
+ description: 'Run a unified or vertical web search',
247
+ },
248
+ {
249
+ name: 'Extract',
250
+ value: 'extract',
251
+ description: 'Extract clean content from a public URL',
252
+ },
253
+ {
254
+ name: 'Capability',
255
+ value: 'capability',
256
+ description: 'Browse domains and capability tags',
257
+ },
258
+ ],
259
+ default: 'search',
260
+ },
261
+ {
262
+ displayName: 'Operation',
263
+ name: 'operation',
264
+ type: 'options',
265
+ noDataExpression: true,
266
+ displayOptions: {
267
+ show: {
268
+ resource: ['search'],
269
+ },
270
+ },
271
+ options: [
272
+ {
273
+ name: 'Search',
274
+ value: 'search',
275
+ description: 'Run a search query',
276
+ action: 'Search the web',
277
+ },
278
+ ],
279
+ default: 'search',
280
+ },
281
+ {
282
+ displayName: 'Query',
283
+ name: 'query',
284
+ type: 'string',
285
+ required: true,
286
+ displayOptions: {
287
+ show: {
288
+ resource: ['search'],
289
+ operation: ['search'],
290
+ },
291
+ },
292
+ default: '',
293
+ placeholder: 'e.g. Go 1.26 release notes',
294
+ description: 'The search query',
295
+ },
296
+ {
297
+ displayName: 'Options',
298
+ name: 'options',
299
+ type: 'collection',
300
+ placeholder: 'Add option',
301
+ default: {},
302
+ displayOptions: {
303
+ show: {
304
+ resource: ['search'],
305
+ operation: ['search'],
306
+ },
307
+ },
308
+ options: [
309
+ {
310
+ displayName: 'Capability Tag',
311
+ name: 'tag',
312
+ type: 'string',
313
+ default: '',
314
+ placeholder: 'e.g. code.snippet',
315
+ description: 'Vertical capability tag (domain.sub_domain) to narrow the search. Use the Capability resource to discover tags. Leave empty for unified search.',
316
+ },
317
+ {
318
+ displayName: 'Language',
319
+ name: 'language',
320
+ type: 'string',
321
+ default: '',
322
+ placeholder: 'e.g. zh-CN, en',
323
+ description: 'Preferred result language',
324
+ },
325
+ {
326
+ displayName: 'Max Results',
327
+ name: 'maxResults',
328
+ type: 'number',
329
+ typeOptions: {
330
+ minValue: 1,
331
+ maxValue: 10,
332
+ },
333
+ default: 10,
334
+ description: 'Number of results to return (1-10)',
335
+ },
336
+ {
337
+ displayName: 'Response Format',
338
+ name: 'format',
339
+ type: 'options',
340
+ options: [
341
+ {
342
+ name: 'JSON',
343
+ value: 'json',
344
+ },
345
+ {
346
+ name: 'Markdown',
347
+ value: 'markdown',
348
+ },
349
+ ],
350
+ default: 'json',
351
+ description: 'With Markdown, the content field of each result holds rendered Markdown',
352
+ },
353
+ {
354
+ displayName: 'Simplify Output',
355
+ name: 'simplify',
356
+ type: 'boolean',
357
+ default: true,
358
+ description: 'Whether to return one item per search result instead of a single item with the full response',
359
+ },
360
+ {
361
+ displayName: 'Tag Parameters',
362
+ name: 'params',
363
+ type: 'json',
364
+ default: '',
365
+ placeholder: '{"lang": "go"}',
366
+ description: 'JSON object with extra parameters for the capability tag (e.g. {"ticker": "AAPL"} for finance.quote)',
367
+ },
368
+ {
369
+ displayName: 'Zone',
370
+ name: 'zone',
371
+ type: 'options',
372
+ options: [
373
+ {
374
+ name: 'Auto',
375
+ value: '',
376
+ description: 'Let AnySearch decide the region',
377
+ },
378
+ {
379
+ name: 'China',
380
+ value: 'cn',
381
+ },
382
+ {
383
+ name: 'International',
384
+ value: 'intl',
385
+ },
386
+ ],
387
+ default: '',
388
+ description: 'Region preference for results',
389
+ },
390
+ ],
391
+ },
392
+ {
393
+ displayName: 'Operation',
394
+ name: 'operation',
395
+ type: 'options',
396
+ noDataExpression: true,
397
+ displayOptions: {
398
+ show: {
399
+ resource: ['extract'],
400
+ },
401
+ },
402
+ options: [
403
+ {
404
+ name: 'Extract Content',
405
+ value: 'extract',
406
+ description: 'Extract clean content from a URL',
407
+ action: 'Extract content from a URL',
408
+ },
409
+ ],
410
+ default: 'extract',
411
+ },
412
+ {
413
+ displayName: 'URL',
414
+ name: 'url',
415
+ type: 'string',
416
+ required: true,
417
+ displayOptions: {
418
+ show: {
419
+ resource: ['extract'],
420
+ operation: ['extract'],
421
+ },
422
+ },
423
+ default: '',
424
+ placeholder: 'https://example.com/article',
425
+ description: 'Public HTTP(S) URL to extract content from',
426
+ },
427
+ {
428
+ displayName: 'Operation',
429
+ name: 'operation',
430
+ type: 'options',
431
+ noDataExpression: true,
432
+ displayOptions: {
433
+ show: {
434
+ resource: ['capability'],
435
+ },
436
+ },
437
+ options: [
438
+ {
439
+ name: 'List All Domains',
440
+ value: 'getDomains',
441
+ description: 'List every capability domain with its sub-domain count',
442
+ action: 'List all capability domains',
443
+ },
444
+ {
445
+ name: 'Get Sub-Domains',
446
+ value: 'getSubDomains',
447
+ description: 'List capability tags and parameters for selected domains',
448
+ action: 'Get sub domains for selected domains',
449
+ },
450
+ ],
451
+ default: 'getDomains',
452
+ },
453
+ {
454
+ displayName: 'Domain Names or IDs',
455
+ name: 'domains',
456
+ type: 'multiOptions',
457
+ typeOptions: {
458
+ loadOptionsMethod: 'getDomains',
459
+ },
460
+ required: true,
461
+ displayOptions: {
462
+ show: {
463
+ resource: ['capability'],
464
+ operation: ['getSubDomains'],
465
+ },
466
+ },
467
+ default: [],
468
+ description: 'Domains to inspect, e.g. code, finance. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
469
+ },
470
+ ],
471
+ };
472
+ }
473
+ async execute() {
474
+ const items = this.getInputData();
475
+ const returnData = [];
476
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
477
+ try {
478
+ const resource = this.getNodeParameter('resource', itemIndex);
479
+ const operation = this.getNodeParameter('operation', itemIndex);
480
+ if (resource === 'search') {
481
+ returnData.push(...(await searchOperation.call(this, itemIndex)));
482
+ }
483
+ else if (resource === 'extract') {
484
+ returnData.push(...(await extractOperation.call(this, itemIndex)));
485
+ }
486
+ else if (resource === 'capability') {
487
+ returnData.push(...(await capabilityOperation.call(this, itemIndex, operation)));
488
+ }
489
+ else {
490
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`, {
491
+ itemIndex,
492
+ });
493
+ }
494
+ }
495
+ catch (error) {
496
+ if (this.continueOnFail()) {
497
+ returnData.push({
498
+ json: {
499
+ error: error instanceof Error
500
+ ? error.message
501
+ : 'AnySearch operation failed unexpectedly',
502
+ },
503
+ pairedItem: {
504
+ item: itemIndex,
505
+ },
506
+ });
507
+ continue;
508
+ }
509
+ const detail = error instanceof Error ? error : new Error(String(error));
510
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), detail, { itemIndex });
511
+ }
512
+ }
513
+ return [returnData];
514
+ }
515
+ }
516
+ exports.AnySearch = AnySearch;
517
+ //# sourceMappingURL=AnySearch.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnySearch.node.js","sourceRoot":"","sources":["../../../nodes/AnySearch/AnySearch.node.ts"],"names":[],"mappings":";;;AAWA,+CAAuE;AAEvE,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAsBjD,KAAK,UAAU,sBAAsB;IACpC,IAAI,CAAC;QACJ,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;IACb,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,KAAK,CAAC;IACd,CAAC;AACF,CAAC;AAMD,KAAK,UAAU,gBAAgB,CAE9B,OAA4B;IAE5B,MAAM,cAAc,GAAwB;QAC3C,IAAI,EAAE,IAAI;QACV,GAAG,OAAO;KACV,CAAC;IAEF,IAAI,QAA2B,CAAC;IAChC,IAAI,CAAC;QACJ,QAAQ,GAAG,CAAC,MAAM,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnD,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,cAAc,CAAC;YAC7F,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;QAC9D,MAAM,MAAM,GACX,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,EAA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,CAAC;oBACtC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,mBAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;gBAClF,CAAC;qBAAM,CAAC;oBACP,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,qBAAqB,QAAQ,EAAE,EAAE;wBAC7E,SAAS;qBACT,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EACJ,KAAK,YAAY,KAAK;gCACrB,CAAC,CAAC,KAAK,CAAC,OAAO;gCACf,CAAC,CAAC,yCAAyC;yBAC7C;wBACD,UAAU,EAAE;4BACX,IAAI,EAAE,SAAS;yBACf;qBACD,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBACzE,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAnUD,8BAmUC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-anysearch",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["AI", "Utility"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/MCapricorns/n8n-nodes-anysearch#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/MCapricorns/n8n-nodes-anysearch#readme"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none" role="img" aria-labelledby="title desc">
2
+ <title id="title">AnySearch</title>
3
+ <desc id="desc">AnySearch brand mark</desc>
4
+ <path d="M20 30H9.99997V10H30V20H40V0H-3.05176e-05V40H20V30Z" fill="#7D9BFF"/>
5
+ <path d="M40 30H30V40H40V30Z" fill="#7D9BFF"/>
6
+ <path d="M20 30H10V40H20V30Z" fill="#9DB8FF"/>
7
+ <path d="M9.99999 0H-1.52588e-05V10H9.99999V0Z" fill="#7D9BFF"/>
8
+ <path d="M30 0H10V10H30V0Z" fill="#9DB8FF"/>
9
+ <path d="M40 0H30V10H40V0Z" fill="#7D9BFF"/>
10
+ <path d="M40 10.0039H30V20.0039H40V10.0039Z" fill="#9DB8FF"/>
11
+ </svg>
12
+
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none" role="img" aria-labelledby="title desc">
2
+ <title id="title">AnySearch</title>
3
+ <desc id="desc">AnySearch brand mark</desc>
4
+ <path d="M20 30H9.99997V10H30V20H40V0H-3.05176e-05V40H20V30Z" fill="#3559F0"/>
5
+ <path d="M40 30H30V40H40V30Z" fill="#3559F0"/>
6
+ <path d="M20 30H10V40H20V30Z" fill="#3E84FF"/>
7
+ <path d="M9.99999 0H-1.52588e-05V10H9.99999V0Z" fill="#3559F0"/>
8
+ <path d="M30 0H10V10H30V0Z" fill="#3E84FF"/>
9
+ <path d="M40 0H30V10H40V0Z" fill="#3559F0"/>
10
+ <path d="M40 10.0039H30V20.0039H40V10.0039Z" fill="#3E84FF"/>
11
+ </svg>
12
+
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "n8n-nodes-anysearch",
3
+ "version": "0.1.1",
4
+ "description": "n8n community nodes for AnySearch: unified web search, vertical capability search, and URL content extraction",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/MCapricorns/n8n-nodes-anysearch#readme",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "n8n",
10
+ "anysearch",
11
+ "search",
12
+ "web-search"
13
+ ],
14
+ "author": {
15
+ "name": "MCapricorns",
16
+ "email": "MCapricorns@users.noreply.github.com"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/MCapricorns/n8n-nodes-anysearch.git"
21
+ },
22
+ "scripts": {
23
+ "build": "n8n-node build",
24
+ "dev": "n8n-node dev",
25
+ "lint": "n8n-node lint",
26
+ "lint:fix": "n8n-node lint --fix",
27
+ "release": "n8n-node release",
28
+ "prepublishOnly": "n8n-node prerelease"
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "!dist/tsconfig.tsbuildinfo"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "n8n": {
38
+ "n8nNodesApiVersion": 1,
39
+ "strict": true,
40
+ "credentials": [
41
+ "dist/credentials/AnySearchApi.credentials.js"
42
+ ],
43
+ "nodes": [
44
+ "dist/nodes/AnySearch/AnySearch.node.js"
45
+ ]
46
+ },
47
+ "devDependencies": {
48
+ "@n8n/node-cli": "*",
49
+ "eslint": "9.39.4",
50
+ "prettier": "3.8.3",
51
+ "release-it": "20.2.0",
52
+ "typescript": "5.9.3"
53
+ },
54
+ "peerDependencies": {
55
+ "n8n-workflow": "*"
56
+ }
57
+ }
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "n8n-nodes-anysearch",
3
+ "version": "0.1.1",
4
+ "description": "n8n community nodes for AnySearch: unified web search, vertical capability search, and URL content extraction",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/MCapricorns/n8n-nodes-anysearch#readme",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "n8n",
10
+ "anysearch",
11
+ "search",
12
+ "web-search"
13
+ ],
14
+ "author": {
15
+ "name": "MCapricorns",
16
+ "email": "MCapricorns@users.noreply.github.com"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/MCapricorns/n8n-nodes-anysearch.git"
21
+ },
22
+ "scripts": {
23
+ "build": "n8n-node build",
24
+ "dev": "n8n-node dev",
25
+ "lint": "n8n-node lint",
26
+ "lint:fix": "n8n-node lint --fix",
27
+ "release": "n8n-node release",
28
+ "prepublishOnly": "n8n-node prerelease"
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "!dist/tsconfig.tsbuildinfo"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "n8n": {
38
+ "n8nNodesApiVersion": 1,
39
+ "strict": true,
40
+ "credentials": [
41
+ "dist/credentials/AnySearchApi.credentials.js"
42
+ ],
43
+ "nodes": [
44
+ "dist/nodes/AnySearch/AnySearch.node.js"
45
+ ]
46
+ },
47
+ "devDependencies": {
48
+ "@n8n/node-cli": "*",
49
+ "eslint": "9.39.4",
50
+ "prettier": "3.8.3",
51
+ "release-it": "20.2.0",
52
+ "typescript": "5.9.3"
53
+ },
54
+ "peerDependencies": {
55
+ "n8n-workflow": "*"
56
+ }
57
+ }