n8n-nodes-h2i 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 davix-agency
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,144 @@
1
+ # Davix H2I (PixLab) — n8n Community Node
2
+
3
+ **Package:** `n8n-nodes-davix-h2i`
4
+ **Homepage:** https://h2i.davix.dev
5
+
6
+ Use Davix H2I (PixLab) API endpoints directly inside **n8n** workflows (H2I, Image, PDF, Tools) without building manual HTTP requests.
7
+
8
+ ---
9
+
10
+ ## Features
11
+
12
+ This node provides easy access to these API groups:
13
+
14
+ - **H2I** — HTML → Image rendering
15
+ - **Image** — Image transforms (resize/format/quality/etc.)
16
+ - **PDF** — PDF operations (merge/split/compress/extract/convert, depending on your API)
17
+ - **Tools** — Helper tools (metadata / detection / etc., depending on your API)
18
+
19
+ ---
20
+
21
+ ## Requirements
22
+
23
+ - An n8n instance (self-hosted or compatible environment for community nodes)
24
+ - A valid **Davix API key**
25
+ - Davix H2I API **Base URL** (default: `https://pixlab.davix.dev`)
26
+
27
+ ---
28
+
29
+ ## Installation
30
+
31
+ ### Install via n8n UI (recommended)
32
+ 1. Open **n8n**
33
+ 2. Go to **Settings → Community Nodes**
34
+ 3. Click **Install**
35
+ 4. Enter:
36
+ ```text
37
+ n8n-nodes-davix-h2i
38
+ Restart n8n if prompted.
39
+
40
+ Install via npm (self-hosted)
41
+ Run inside your n8n installation environment:
42
+
43
+ bash
44
+ Copy code
45
+ npm install n8n-nodes-davix-h2i
46
+ Restart n8n.
47
+
48
+ Credentials
49
+ In n8n, go to Credentials
50
+
51
+ Create new credential: Davix H2I API
52
+
53
+ Fill:
54
+
55
+ API Key
56
+
57
+ Base URL (default: https://pixlab.davix.dev)
58
+
59
+ If you run a private/self-hosted Davix instance, set Base URL to your own domain.
60
+
61
+ Usage
62
+ Add node: Davix H2I
63
+
64
+ Select an Operation (H2I / Image / PDF / Tools)
65
+
66
+ Provide input (HTML, image, PDF, or tool parameters)
67
+
68
+ Execute workflow
69
+
70
+ Inputs & Outputs
71
+ Inputs (depends on operation)
72
+ Direct text (example: HTML string)
73
+
74
+ URLs (example: image/PDF URL)
75
+
76
+ Binary input (from nodes like HTTP Request, Google Drive, S3, etc.)
77
+
78
+ Outputs
79
+ JSON response (status/details)
80
+
81
+ Binary output when the API returns a file (image/PDF/extracted files)
82
+
83
+ Example workflows (high-level)
84
+ HTML → Image (H2I)
85
+ Create your HTML in a Set node
86
+
87
+ Pass it to Davix H2I (Operation: H2I)
88
+
89
+ Save binary output (local disk / S3 / Drive)
90
+
91
+ Resize/convert image (Image)
92
+ Download image as binary (HTTP Request node)
93
+
94
+ Pass binary to Davix H2I (Operation: Image)
95
+
96
+ Output resized/converted image
97
+
98
+ Merge/Split PDF (PDF)
99
+ Provide PDF(s) as binary input
100
+
101
+ Use Davix H2I (Operation: PDF)
102
+
103
+ Output processed PDF(s)
104
+
105
+ Icon
106
+ This package can include a custom SVG icon. If the icon does not appear:
107
+
108
+ restart n8n
109
+
110
+ update/reinstall the package
111
+
112
+ Versioning & Updates
113
+ This package uses semantic versioning.
114
+
115
+ Important: npm does not allow overwriting an already published version.
116
+ To publish an update:
117
+
118
+ bump the version (1.0.1, 1.0.2, ...)
119
+
120
+ create a GitHub Release tag vX.Y.Z
121
+
122
+ Support
123
+ Website: https://h2i.davix.dev
124
+
125
+ Brand: Davix
126
+
127
+ When reporting issues, include:
128
+
129
+ n8n version
130
+
131
+ node version
132
+
133
+ operation used
134
+
135
+ request parameters (remove API keys)
136
+
137
+ workflow error logs
138
+
139
+ License
140
+ MIT
141
+
142
+ makefile
143
+ Copy code
144
+ ::contentReference[oaicite:0]{index=0}
@@ -0,0 +1,6 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class DavixH2IApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ properties: INodeProperties[];
6
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DavixH2IApi = void 0;
4
+ class DavixH2IApi {
5
+ name = 'davixH2IApi';
6
+ displayName = 'Davix H2I (PixLab) API';
7
+ properties = [
8
+ {
9
+ displayName: 'Base URL',
10
+ name: 'baseUrl',
11
+ type: 'string',
12
+ default: 'https://pixlab.davix.dev',
13
+ placeholder: 'https://pixlab.davix.dev',
14
+ description: 'Your PixLab API base URL (no trailing slash). Example: https://pixlab.davix.dev',
15
+ },
16
+ {
17
+ displayName: 'API Key',
18
+ name: 'apiKey',
19
+ type: 'string',
20
+ typeOptions: { password: true },
21
+ default: '',
22
+ },
23
+ ];
24
+ }
25
+ exports.DavixH2IApi = DavixH2IApi;
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class DavixH2I implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }