@ironfang/n8n-nodes-ironfang 0.2.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) 2026 Ironfang Ltd
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,64 @@
1
+ <p align="center">
2
+ <img src="nodes/Ironfang/ironfang.svg" width="110" alt="Ironfang">
3
+ </p>
4
+
5
+ # @ironfang/n8n-nodes-ironfang
6
+
7
+ Community node for using [Ironfang](https://ironfang.uk) APIs in n8n
8
+ workflows. Pick a product under Resource, then an operation within it.
9
+
10
+ Renderwolf is the first product. It turns URLs, HTML and stored templates
11
+ into screenshots, PDFs and social images, hosted on infrastructure Ironfang
12
+ operates in the UK.
13
+
14
+ ## Install
15
+
16
+ In n8n, open Settings, then Community Nodes, choose Install and enter
17
+ `@ironfang/n8n-nodes-ironfang`.
18
+
19
+ You'll need an API key from [portal.ironfang.uk](https://portal.ironfang.uk).
20
+ The free plan gives 100 renders a month and doesn't ask for a card. Paste the
21
+ key into a new Ironfang API credential; the credential test calls
22
+ `/v1/usage`, so a bad key fails fast.
23
+
24
+ ## Renderwolf operations
25
+
26
+ Screenshot captures a URL or raw HTML as a PNG or JPEG. It supports viewport
27
+ sizing, full-page capture, capturing a single element by CSS selector, dark
28
+ mode and a settle delay for late-painting pages.
29
+
30
+ PDF prints a URL or raw HTML. Landscape, printed backgrounds, header and
31
+ footer templates and page scale are all options.
32
+
33
+ Template Image renders a stored template with your variables, built for OG
34
+ images and social cards.
35
+
36
+ All three of the above put the rendered file on the item as binary data,
37
+ ready for the next node in the workflow.
38
+
39
+ Signed URL mints a stable render URL you can drop straight into an `<img>`
40
+ tag or `og:image` meta tag, and Usage reports the current period's
41
+ consumption against your plan cap. Both return JSON.
42
+
43
+ Identical requests are served from cache and don't count against your plan.
44
+ Renders are capped at 120 a minute per account, and 60 a minute per site
45
+ being rendered, counted across everyone. Bot protection is never bypassed:
46
+ a challenge page is captured as a challenge page.
47
+
48
+ ## Coming from the Renderwolf package
49
+
50
+ This replaces `@ironfang/n8n-nodes-renderwolf`, which is deprecated. n8n asks
51
+ for one node per vendor, so the node is named after the company and
52
+ Renderwolf sits inside it as a resource. Install this package, add an
53
+ Ironfang API credential with the same key, and swap the node in your
54
+ workflows. The operations and their fields are unchanged.
55
+
56
+ ## Links
57
+
58
+ - [API reference](https://ironfang.uk/renderwolf/docs)
59
+ - [OpenAPI spec](https://api.ironfang.uk/openapi.yaml)
60
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
61
+
62
+ ## License
63
+
64
+ MIT
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class IronfangApi implements ICredentialType {
3
+ name: string;
4
+ icon: Icon;
5
+ displayName: string;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IronfangApi = void 0;
4
+ class IronfangApi {
5
+ name = 'ironfangApi';
6
+ icon = 'file:ironfang.svg';
7
+ displayName = 'Ironfang API';
8
+ documentationUrl = 'https://ironfang.uk/renderwolf/docs';
9
+ properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ required: true,
17
+ description: 'An rw_live_ key from your Ironfang dashboard',
18
+ },
19
+ {
20
+ displayName: 'Base URL',
21
+ name: 'baseUrl',
22
+ type: 'string',
23
+ default: 'https://api.ironfang.uk',
24
+ description: 'Only change this if you are pointing at a non-production instance',
25
+ },
26
+ ];
27
+ authenticate = {
28
+ type: 'generic',
29
+ properties: {
30
+ headers: {
31
+ Authorization: '=Bearer {{$credentials.apiKey}}',
32
+ },
33
+ },
34
+ };
35
+ test = {
36
+ request: {
37
+ baseURL: '={{$credentials.baseUrl}}',
38
+ url: '/v1/usage',
39
+ },
40
+ };
41
+ }
42
+ exports.IronfangApi = IronfangApi;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1191 1191"><rect width="1191" height="1191" fill="#fafafa"/><g transform="translate(95.28 95.28) scale(0.84)"><path fill-rule="evenodd" fill="#0a0a0f" d="M 779.500 57.063 C 759.489 57.949, 739.874 59.996, 713 64 C 691.458 67.210, 688.264 67.837, 656.500 75.096 C 635.477 79.900, 627.180 82.119, 602.500 89.537 C 527.244 112.159, 458.095 144.590, 396.500 186.153 C 371.555 202.985, 371.637 202.851, 385.146 204.872 C 405.250 207.881, 437.826 215.625, 436.307 217.035 C 435.863 217.447, 426.275 220.110, 415 222.953 C 279.249 257.181, 168.283 344.834, 100.301 471.538 C 74.639 519.366, 57.383 571.909, 49.572 626 C 45.949 651.085, 42.692 709.215, 44.399 718.314 C 45.429 723.801, 47.488 722.870, 48.961 716.250 C 52.972 698.229, 65.141 666.483, 76.990 643.130 C 105.533 586.876, 154.586 531.277, 204 499.171 C 208.675 496.133, 215.510 491.692, 219.188 489.302 C 229.940 482.316, 257.341 468.631, 272.646 462.605 C 312.494 446.915, 344.559 440.045, 390.250 437.407 C 398.577 436.926, 402 436.366, 402 435.487 C 402 433.514, 373.954 421.697, 352 414.420 C 348.975 413.417, 346.141 412.306, 345.702 411.950 C 344.564 411.028, 368.058 401.021, 384 395.637 C 466.301 367.843, 560.534 363.435, 641.500 383.593 C 657.440 387.562, 671 391.827, 671 392.873 C 671 394.149, 639.944 396.035, 619.222 396.017 C 578.723 395.983, 545.476 401.415, 506.399 414.451 C 485.002 421.589, 458.343 434.005, 442.688 444.123 C 438.660 446.727, 435.551 448, 433.223 448 C 416.213 448, 372.139 458.865, 342.390 470.391 C 261.979 501.547, 189.055 567.547, 150.567 644 C 110.005 724.572, 106.604 805.460, 140.205 890.439 C 145.895 904.830, 160.702 933.669, 169.285 947.078 C 203.561 1000.626, 249.978 1044.970, 304.598 1076.348 C 317.109 1083.535, 318.167 1082.300, 309.310 1070.853 C 282.194 1035.810, 259.246 986.979, 249.565 943.722 C 243.989 918.808, 242.658 905.812, 242.576 875.500 C 242.491 844.097, 243.587 833.281, 249.623 806 C 267.968 723.079, 322.481 651.440, 404.500 602.466 C 450.985 574.710, 511.884 555, 551.161 555 L 561.335 555 549.354 567.250 C 528.802 588.262, 515.168 607.202, 504.277 629.866 C 493.336 652.633, 483.730 686, 488.115 686 C 488.729 686, 494.239 680.755, 500.360 674.345 C 539.099 633.779, 588.825 607.084, 641 598.843 C 654.101 596.773, 693.948 597.062, 706 599.314 C 745.374 606.670, 773.944 619.971, 839 661.236 C 870.852 681.440, 881.804 687.897, 897.861 695.940 C 916.733 705.393, 938.190 711.042, 954.926 710.965 C 1004.310 710.738, 1072.640 663.491, 1130.595 589.500 C 1139.719 577.851, 1146 568.740, 1146 567.154 C 1146 566.462, 1142.963 564.511, 1139.250 562.819 C 1135.537 561.127, 1129.575 558.396, 1126 556.751 C 1122.425 555.105, 1113.875 551.293, 1107 548.278 C 1100.125 545.264, 1089.100 540.405, 1082.500 537.480 C 1068.683 531.357, 1052.004 524.217, 1019.500 510.508 C 1006.850 505.173, 995.010 499.682, 993.189 498.306 C 983.030 490.632, 969.816 462.864, 960.973 430.607 C 948.937 386.703, 928.949 364.082, 876.786 335.331 C 871.129 332.213, 859.525 325.982, 851 321.486 C 808.277 298.950, 790.253 288.406, 772.220 275.400 C 759.488 266.218, 743.828 250.770, 738.710 242.345 C 709.934 194.975, 731.320 127.775, 794.021 68.546 C 804.920 58.251, 806.104 55.920, 800.320 56.155 C 798.219 56.240, 788.850 56.649, 779.500 57.063 M 856.500 126.657 C 855.400 126.891, 850.900 127.757, 846.500 128.583 C 828.485 131.964, 805.370 141.355, 792.382 150.572 C 764.316 170.487, 761.596 204.769, 785.984 231.212 C 797.584 243.789, 816.071 256.493, 837.500 266.612 C 847.773 271.463, 852 272.768, 852 271.088 C 852 270.468, 850.006 265.991, 847.570 261.139 C 837.040 240.172, 833.499 224.813, 834.256 203.376 C 835.065 180.441, 842.734 157.783, 857.661 134.231 C 862.378 126.787, 862.173 125.452, 856.500 126.657 M 761.210 406.040 C 761.531 406.904, 781.357 429.456, 801.612 451.998 C 821.687 474.339, 824.793 476.455, 837.552 476.483 C 844.839 476.498, 846.315 476.149, 853.087 472.802 C 862.259 468.269, 874.528 458.216, 874.435 455.309 C 874.317 451.603, 862.844 435.978, 856.500 430.885 C 845.552 422.096, 848.281 422.836, 765.210 406.122 C 762.850 405.648, 761.050 405.610, 761.210 406.040 M 483.500 586.929 C 431.708 601.368, 394.013 622.717, 357.132 658.500 C 301.493 712.481, 268.979 794.533, 272.332 872.500 C 274.434 921.399, 288.069 964.004, 314.289 1003.605 C 325.981 1021.264, 334.138 1031.233, 349.450 1046.579 C 395.927 1093.160, 453.575 1121.030, 524.500 1131.208 C 538.766 1133.256, 589.553 1132.928, 604 1130.695 C 627.822 1127.013, 644.545 1123.068, 663.500 1116.659 C 734.522 1092.645, 795.856 1044.451, 836.016 981.102 C 844.080 968.381, 854 949.925, 854 947.642 C 854 945.605, 851.660 945.500, 850.030 947.464 C 846.434 951.797, 821.120 969.836, 806.500 978.484 C 723.967 1027.306, 631.360 1028.156, 551.477 980.825 C 520.690 962.584, 491.140 933.822, 474.228 905.636 C 441.838 851.653, 442.427 788.993, 475.833 734.732 C 482.280 724.262, 481.531 723.740, 469.868 730.578 C 465.573 733.095, 461.610 734.877, 461.061 734.538 C 460.511 734.198, 458.914 730.287, 457.511 725.846 C 447.803 695.113, 451.103 660.565, 466.811 628.500 C 471.673 618.576, 483.053 601.566, 490.437 593.186 C 495.835 587.060, 497.318 583.926, 494.750 584.071 C 494.063 584.109, 489 585.396, 483.500 586.929"/><path fill-rule="evenodd" fill="#52525b" d="M 492.458 585.068 C 492.095 585.656, 491.168 585.895, 490.399 585.600 C 489.629 585.304, 489 585.551, 489 586.148 C 489 586.745, 488.100 586.998, 487 586.710 C 485.900 586.423, 485 586.553, 485 587 C 485 587.447, 484.030 587.559, 482.844 587.249 C 481.274 586.838, 480.900 587.029, 481.469 587.950 C 482.051 588.892, 481.676 589.032, 480 588.500 C 478.721 588.094, 477.991 588.177, 478.310 588.693 C 478.619 589.192, 477.295 589.600, 475.368 589.600 C 473.397 589.600, 471.464 590.234, 470.948 591.050 C 470.443 591.847, 470.024 592.107, 470.015 591.628 C 470.007 591.148, 469.345 591.299, 468.544 591.964 C 467.743 592.628, 466.618 592.882, 466.044 592.527 C 465.470 592.172, 465 592.344, 465 592.910 C 465 593.475, 464.325 593.678, 463.500 593.362 C 462.674 593.045, 462 593.332, 462 594 C 462 594.668, 461.326 594.955, 460.500 594.638 C 459.675 594.322, 459 594.525, 459 595.090 C 459 595.656, 458.612 595.878, 458.138 595.585 C 456.964 594.859, 448.936 598.088, 449.529 599.047 C 449.790 599.469, 449.032 599.560, 447.845 599.249 C 446.475 598.891, 445.925 599.069, 446.338 599.738 C 447.173 601.089, 444.504 602.131, 442.336 601.299 C 441.176 600.853, 440.903 601.035, 441.436 601.897 C 441.912 602.667, 441.691 603.047, 440.850 602.904 C 438.739 602.545, 433.959 604.124, 434.501 605.002 C 435.160 606.068, 432.089 607.173, 430.755 606.349 C 430.170 605.987, 429.971 606.145, 430.314 606.699 C 430.657 607.254, 429.798 608.227, 428.405 608.861 C 426.501 609.729, 426.049 609.730, 426.583 608.865 C 426.974 608.233, 424.991 608.969, 422.176 610.501 C 419.362 612.032, 417.340 613.741, 417.684 614.297 C 418.043 614.879, 417.810 615.001, 417.136 614.584 C 415.780 613.746, 409 617.632, 409 619.248 C 409 619.845, 408.707 620.040, 408.349 619.682 C 407.991 619.324, 407.057 619.812, 406.275 620.766 C 405.427 621.799, 405.161 621.894, 405.618 621 C 406.564 619.148, 403.064 621.616, 401.689 623.771 C 401.242 624.470, 400.452 624.779, 399.931 624.458 C 399.411 624.136, 398.717 624.574, 398.388 625.431 C 398.059 626.288, 397.388 626.740, 396.895 626.435 C 396.403 626.131, 396 626.385, 396 627 C 396 627.615, 395.596 627.868, 395.102 627.563 C 394.608 627.257, 392.760 628.356, 390.996 630.004 C 389.232 631.652, 387.548 633, 387.254 633 C 386.961 633, 386.075 633.788, 385.286 634.750 C 384.368 635.870, 384.094 635.960, 384.526 635 C 384.897 634.175, 383.805 635.023, 382.100 636.886 C 380.395 638.748, 378.986 639.873, 378.970 639.386 C 378.953 638.898, 378.481 639.288, 377.920 640.250 C 377.359 641.212, 376.361 642, 375.701 642 C 375.041 642, 373.151 643.360, 371.501 645.023 C 369.850 646.685, 363.624 652.694, 357.665 658.376 C 351.706 664.059, 346.306 669.735, 345.665 670.992 C 345.024 672.248, 344.135 673.191, 343.688 673.088 C 342.955 672.919, 335.782 681.430, 332 686.956 C 331.175 688.162, 329.276 690.530, 327.781 692.220 C 326.285 693.909, 325.261 695.613, 325.505 696.008 C 325.748 696.402, 324.159 698.661, 321.974 701.028 C 319.788 703.396, 317.948 705.820, 317.885 706.416 C 317.821 707.012, 317.709 708.087, 317.635 708.803 C 317.561 709.520, 316.482 710.876, 315.238 711.817 C 313.994 712.757, 312.773 714.584, 312.524 715.877 C 312.275 717.170, 311.268 718.885, 310.286 719.688 C 309.170 720.601, 309.063 720.905, 310 720.500 C 311.202 719.981, 311.185 720.115, 309.912 721.176 C 309.039 721.904, 308.535 723.125, 308.792 723.889 C 309.052 724.663, 308.805 724.998, 308.235 724.645 C 307.671 724.297, 306.943 724.707, 306.616 725.558 C 306.226 726.574, 306.447 726.889, 307.261 726.478 C 307.943 726.133, 307.719 726.492, 306.766 727.275 C 305.812 728.057, 305.324 728.991, 305.682 729.349 C 306.040 729.707, 305.822 730, 305.198 730 C 304.550 730, 304.337 730.714, 304.701 731.664 C 305.131 732.783, 304.957 733.091, 304.170 732.605 C 303.026 731.898, 302.571 733.105, 302.948 735.850 C 303.063 736.686, 302.663 736.910, 301.897 736.436 C 301.048 735.911, 300.850 736.167, 301.267 737.253 C 301.614 738.159, 301.267 739.067, 300.454 739.379 C 299.589 739.711, 299.289 740.590, 299.687 741.626 C 300.167 742.877, 299.985 743.109, 299 742.500 C 298.015 741.891, 297.833 742.123, 298.313 743.374 C 298.708 744.401, 298.414 745.287, 297.573 745.610 C 296.239 746.122, 294.930 749.432, 294.516 753.342 C 294.408 754.355, 293.911 755.480, 293.410 755.842 C 292.910 756.204, 292.343 757.400, 292.150 758.500 C 291.958 759.600, 291.431 760.730, 290.979 761.010 C 289.981 761.631, 288.489 767.019, 288.836 768.750 C 288.975 769.438, 288.632 770, 288.075 770 C 287.518 770, 287.322 770.675, 287.638 771.500 C 287.955 772.325, 287.730 773, 287.138 773 C 286.547 773, 286.322 773.675, 286.638 774.500 C 286.955 775.325, 286.689 776, 286.048 776 C 285.407 776, 285.172 776.470, 285.527 777.044 C 285.882 777.618, 285.571 778.829, 284.836 779.736 C 283.695 781.143, 283.719 781.258, 285 780.520 C 286.260 779.794, 286.249 779.963, 284.929 781.578 C 282.997 783.943, 280.952 790.712, 281.634 792.489 C 281.910 793.209, 281.675 794.083, 281.112 794.431 C 280.548 794.779, 280.323 795.679, 280.612 796.431 C 280.900 797.183, 280.675 798.083, 280.112 798.431 C 279.548 798.779, 279.323 799.679, 279.612 800.431 C 279.900 801.183, 279.648 802.099, 279.052 802.468 C 278.455 802.837, 278.206 803.524, 278.497 803.995 C 278.788 804.466, 278.308 806.968, 277.430 809.554 C 276.552 812.140, 276.054 815.099, 276.323 816.128 C 276.592 817.158, 276.347 818, 275.779 818 C 275.129 818, 274.987 819.515, 275.396 822.074 C 275.862 824.992, 275.725 825.948, 274.912 825.446 C 274.089 824.937, 273.971 826.152, 274.482 829.872 C 274.911 832.986, 274.809 835, 274.223 835 C 273.693 835, 273.280 837.813, 273.306 841.250 C 273.332 844.688, 273.154 854.362, 272.909 862.750 C 272.652 871.571, 272.848 878, 273.375 878 C 273.889 878, 274.014 880.588, 273.663 883.953 C 273.271 887.700, 273.430 890.148, 274.091 890.556 C 274.726 890.949, 274.881 892.744, 274.483 895.103 C 274.121 897.246, 274.208 899, 274.678 899 C 275.148 899, 275.594 901.715, 275.670 905.033 C 275.747 908.350, 276.352 911.720, 277.016 912.520 C 277.680 913.320, 277.968 914.641, 277.656 915.455 C 277.343 916.270, 277.441 917.155, 277.874 917.422 C 278.607 917.875, 280.863 926.618, 281.479 931.393 C 281.925 934.850, 283.225 939.205, 284.603 941.862 C 285.315 943.234, 285.698 944.679, 285.455 945.074 C 285.211 945.468, 285.735 946.068, 286.619 946.407 C 287.659 946.806, 288.037 947.750, 287.690 949.079 C 287.042 951.557, 289.287 957.348, 290.477 956.267 C 290.941 955.845, 290.995 956.066, 290.597 956.758 C 290.198 957.449, 290.580 958.723, 291.445 959.588 C 292.311 960.453, 292.763 961.575, 292.450 962.081 C 292.138 962.586, 292.407 963, 293.048 963 C 293.689 963, 293.955 963.675, 293.638 964.500 C 293.322 965.325, 293.574 966, 294.198 966 C 294.822 966, 295.042 966.291, 294.686 966.648 C 294.134 967.199, 297.503 974.503, 299 976 C 300.402 977.402, 302.053 981.151, 300.974 980.484 C 300.083 979.933, 300.074 980.269, 300.935 981.879 C 301.560 983.046, 302.505 984, 303.035 984 C 303.566 984, 304 984.675, 304 985.500 C 304 986.325, 304.498 987, 305.107 987 C 305.716 987, 305.955 987.675, 305.638 988.500 C 305.288 989.414, 305.637 990, 306.531 990 C 307.339 990, 308 990.477, 308 991.059 C 308 991.641, 307.517 991.819, 306.926 991.454 C 306.333 991.088, 306.422 991.702, 307.125 992.829 C 307.825 993.950, 308.871 994.785, 309.449 994.684 C 310.027 994.583, 310.500 995.175, 310.500 996 C 310.500 996.825, 310.725 997.725, 311 998 C 313.082 1000.082, 315.247 1003.195, 314.176 1002.567 C 313.086 1001.928, 313.079 1002.154, 314.138 1003.850 C 314.846 1004.982, 315.614 1005.720, 315.845 1005.488 C 316.565 1004.768, 320.161 1009.931, 319.586 1010.860 C 319.287 1011.344, 321.171 1013.910, 323.771 1016.562 C 326.372 1019.215, 327.621 1020.736, 326.547 1019.942 C 324.609 1018.511, 324.609 1018.521, 326.547 1021.147 C 327.621 1022.603, 328.815 1023.603, 329.200 1023.369 C 329.585 1023.135, 330.446 1023.969, 331.113 1025.222 C 331.781 1026.475, 333.041 1028.096, 333.913 1028.824 C 335.183 1029.884, 335.200 1030.016, 334 1029.487 C 333.175 1029.124, 333.423 1029.653, 334.551 1030.663 C 335.680 1031.673, 337.846 1034.196, 339.367 1036.269 C 340.887 1038.342, 342.562 1039.771, 343.090 1039.444 C 343.618 1039.118, 343.926 1039.427, 343.775 1040.130 C 343.624 1040.834, 344.063 1041.430, 344.750 1041.455 C 345.438 1041.480, 345.887 1041.813, 345.750 1042.194 C 345.613 1042.576, 347.075 1044.529, 349 1046.534 C 354.414 1052.172, 368.672 1064.746, 367.104 1062.500 C 366.337 1061.400, 367.237 1062.130, 369.104 1064.122 C 372.550 1067.797, 384.096 1077, 385.261 1077 C 385.611 1077, 387.111 1078.125, 388.595 1079.500 C 390.078 1080.875, 391.708 1082, 392.217 1082 C 392.726 1082, 393.822 1082.679, 394.652 1083.509 C 395.482 1084.339, 396.644 1084.720, 397.235 1084.355 C 397.826 1083.990, 398.034 1084.136, 397.698 1084.679 C 397.055 1085.719, 416.264 1097.333, 418.628 1097.333 C 419.382 1097.333, 420 1097.701, 420 1098.150 C 420 1099.487, 430.080 1104.183, 431.653 1103.580 C 432.451 1103.273, 432.862 1103.415, 432.565 1103.894 C 431.840 1105.069, 441.761 1109.266, 443.184 1108.386 C 443.922 1107.930, 444.027 1108.147, 443.490 1109.015 C 442.896 1109.977, 443.128 1110.165, 444.336 1109.701 C 445.251 1109.350, 446 1109.438, 446 1109.897 C 446 1110.666, 456.238 1114.816, 459.910 1115.535 C 460.784 1115.707, 461.613 1115.938, 461.750 1116.048 C 461.887 1116.159, 462.450 1116.362, 463 1116.500 C 463.550 1116.638, 464.225 1116.862, 464.500 1117 C 464.775 1117.138, 465.337 1117.344, 465.750 1117.459 C 466.163 1117.574, 467.850 1118.247, 469.500 1118.956 C 471.150 1119.664, 473.718 1120.264, 475.206 1120.288 C 476.730 1120.314, 477.644 1120.766, 477.300 1121.324 C 476.932 1121.919, 477.550 1122.089, 478.844 1121.751 C 480.030 1121.441, 481 1121.625, 481 1122.161 C 481 1122.697, 481.900 1122.849, 483 1122.500 C 484.225 1122.111, 485 1122.320, 485 1123.040 C 485 1123.686, 485.661 1123.960, 486.468 1123.651 C 487.275 1123.341, 488.206 1123.525, 488.537 1124.060 C 488.868 1124.595, 489.557 1124.774, 490.069 1124.457 C 490.581 1124.141, 491.562 1124.234, 492.250 1124.665 C 492.938 1125.095, 493.950 1125.485, 494.500 1125.531 C 495.050 1125.577, 496.175 1125.884, 497 1126.214 C 500.058 1127.435, 510.057 1128.915, 511.504 1128.360 C 512.327 1128.044, 513 1128.305, 513 1128.938 C 513 1129.714, 514.145 1129.876, 516.500 1129.434 C 518.823 1128.998, 520 1129.158, 520 1129.908 C 520 1130.614, 520.937 1130.803, 522.498 1130.411 C 523.872 1130.066, 525.784 1130.127, 526.748 1130.545 C 530.954 1132.371, 578.368 1133.125, 592.500 1131.590 C 595.800 1131.232, 599.625 1130.833, 601 1130.704 C 602.375 1130.575, 604.042 1130.125, 604.704 1129.704 C 605.366 1129.283, 607.054 1129.226, 608.454 1129.578 C 610.137 1130, 611 1129.804, 611 1129 C 611 1128.211, 611.853 1127.997, 613.425 1128.392 C 614.759 1128.727, 618.922 1128.298, 622.675 1127.440 C 626.429 1126.582, 630.183 1125.773, 631.018 1125.642 C 631.852 1125.512, 633.090 1125.063, 633.768 1124.644 C 634.445 1124.225, 635.419 1124.141, 635.931 1124.457 C 636.443 1124.774, 637.163 1124.545, 637.532 1123.948 C 637.901 1123.352, 638.788 1123.088, 639.503 1123.363 C 640.219 1123.638, 641.111 1123.556, 641.486 1123.181 C 641.860 1122.806, 642.579 1122.444, 643.083 1122.375 C 643.588 1122.306, 644.112 1122.163, 644.250 1122.058 C 644.388 1121.952, 645.850 1121.684, 647.500 1121.463 C 651.967 1120.864, 679.442 1111.174, 679.811 1110.068 C 679.986 1109.542, 680.775 1109.360, 681.565 1109.663 C 682.354 1109.966, 683 1109.791, 683 1109.274 C 683 1108.756, 683.598 1108.333, 684.329 1108.333 C 686.710 1108.333, 696.927 1103.691, 696.405 1102.845 C 696.125 1102.393, 696.668 1102.319, 697.612 1102.681 C 698.868 1103.164, 699.109 1102.985, 698.510 1102.015 C 697.983 1101.164, 698.079 1100.931, 698.777 1101.362 C 700.215 1102.251, 717.288 1093.643, 716.281 1092.537 C 715.851 1092.065, 716.026 1091.981, 716.669 1092.349 C 717.313 1092.717, 718.534 1092.323, 719.384 1091.473 C 720.233 1090.624, 721.181 1089.966, 721.490 1090.012 C 723.033 1090.243, 731.856 1084.577, 731.316 1083.703 C 730.966 1083.135, 731.186 1082.997, 731.819 1083.388 C 734.068 1084.778, 767.555 1059.616, 784.582 1043.742 C 799.174 1030.139, 828.457 995.534, 827.696 992.793 C 827.588 992.404, 828.400 991.358, 829.500 990.469 C 830.600 989.579, 830.825 989.184, 830 989.589 C 829.175 989.995, 829.763 989.127, 831.306 987.659 C 832.889 986.155, 833.803 984.490, 833.402 983.841 C 833.011 983.209, 833.110 982.950, 833.622 983.267 C 834.135 983.583, 835.320 982.507, 836.257 980.874 C 837.289 979.076, 837.476 978.156, 836.730 978.540 C 836.054 978.888, 836.577 978.296, 837.894 977.224 C 839.477 975.934, 840.015 974.805, 839.483 973.887 C 839.041 973.124, 839.055 972.841, 839.514 973.258 C 840.488 974.142, 844.129 969.018, 843.384 967.812 C 843.108 967.366, 843.385 967, 844 967 C 844.615 967, 844.840 966.550, 844.500 966 C 844.160 965.450, 844.326 965, 844.868 965 C 846.244 965, 849.107 958.982, 848.329 957.724 C 847.931 957.080, 848.190 956.999, 849.015 957.510 C 849.985 958.109, 850.164 957.868, 849.681 956.612 C 849.319 955.668, 849.394 955.125, 849.847 955.405 C 850.760 955.970, 854 949.776, 854 947.466 C 854 945.576, 851.598 945.575, 850.030 947.464 C 848.204 949.663, 830.586 962.987, 821.500 969.039 C 817.100 971.970, 813.275 974.622, 813 974.934 C 812.725 975.245, 810.362 976.575, 807.750 977.889 C 805.138 979.203, 803 980.692, 803 981.198 C 803 981.704, 802.578 981.857, 802.061 981.538 C 801.545 981.219, 800.758 981.610, 800.311 982.408 C 799.865 983.205, 799.238 983.777, 798.919 983.679 C 797.672 983.295, 788.102 988.356, 788.588 989.143 C 788.872 989.602, 788.406 989.709, 787.552 989.382 C 786.698 989.054, 786 989.209, 786 989.726 C 786 990.244, 785.438 990.702, 784.750 990.745 C 784.063 990.789, 779.225 992.713, 774 995.022 C 763.114 999.834, 759.808 1001.247, 758.750 1001.541 C 758.337 1001.656, 757.775 1001.862, 757.500 1002 C 757.225 1002.138, 756.550 1002.362, 756 1002.500 C 755.450 1002.638, 754.775 1002.862, 754.500 1003 C 754.225 1003.138, 753.550 1003.362, 753 1003.500 C 752.450 1003.638, 751.775 1003.862, 751.500 1004 C 751.225 1004.138, 750.663 1004.317, 750.250 1004.399 C 746.344 1005.176, 740 1007.416, 740 1008.019 C 740 1008.436, 739.438 1008.757, 738.750 1008.731 C 734.679 1008.580, 731.960 1009.126, 732.493 1009.989 C 732.851 1010.568, 732.421 1010.715, 731.451 1010.343 C 730.515 1009.983, 729.415 1010.314, 728.914 1011.104 C 728.428 1011.872, 728.024 1012.028, 728.015 1011.451 C 728.006 1010.842, 726.530 1010.573, 724.500 1010.810 C 722.575 1011.035, 721 1011.542, 721 1011.936 C 721 1012.331, 719.586 1012.446, 717.858 1012.192 C 715.777 1011.887, 714.940 1012.094, 715.380 1012.806 C 715.829 1013.533, 714.820 1013.712, 712.272 1013.358 C 710.146 1013.063, 709.001 1013.198, 709.648 1013.667 C 710.299 1014.139, 707.159 1014.555, 702.399 1014.627 C 697.122 1014.707, 693.416 1015.240, 692.425 1016.063 C 691.492 1016.836, 690.572 1016.989, 690.174 1016.436 C 689.781 1015.890, 683.802 1015.709, 675.843 1016 C 667.875 1016.292, 662.418 1016.125, 662.744 1015.601 C 663.065 1015.083, 660.376 1014.926, 656.401 1015.230 C 651.929 1015.573, 650.204 1015.443, 651.500 1014.863 C 652.837 1014.264, 651.518 1014.122, 647.519 1014.435 C 643.233 1014.771, 641.958 1014.611, 643.019 1013.872 C 644.100 1013.119, 643.353 1012.971, 640.250 1013.325 C 637.841 1013.600, 636.242 1013.418, 636.559 1012.905 C 636.866 1012.407, 635.854 1011.943, 634.309 1011.872 C 629.484 1011.653, 627.312 1011.311, 626.136 1010.584 C 625.510 1010.197, 624.993 1010.470, 624.985 1011.191 C 624.972 1012.241, 624.809 1012.248, 624.161 1011.227 C 623.295 1009.862, 620.133 1008.882, 615.843 1008.650 C 614.382 1008.571, 613.440 1008.097, 613.750 1007.596 C 614.059 1007.095, 613.342 1006.939, 612.156 1007.249 C 610.970 1007.559, 610 1007.352, 610 1006.790 C 610 1006.227, 609.099 1006.002, 607.999 1006.290 C 606.898 1006.578, 606.196 1006.492, 606.439 1006.098 C 606.956 1005.262, 597.979 1002.687, 597.214 1003.452 C 596.930 1003.736, 596.178 1003.259, 595.544 1002.391 C 594.909 1001.523, 593.220 1000.742, 591.791 1000.656 C 590.361 1000.570, 589.359 1000.230, 589.563 999.899 C 589.856 999.424, 583.214 996.740, 581 996.439 C 580.725 996.402, 576.337 994.294, 571.250 991.756 C 566.163 989.217, 562 987.366, 562 987.642 C 562 987.917, 561.342 987.485, 560.538 986.681 C 559.121 985.264, 543.032 975.602, 541.976 975.534 C 541.688 975.515, 540.143 974.287, 538.544 972.804 C 536.944 971.320, 535.315 970.305, 534.923 970.548 C 534.530 970.790, 533.952 970.316, 533.636 969.494 C 533.321 968.672, 532.374 968, 531.531 968 C 530.689 968, 530 967.657, 530 967.238 C 530 966.818, 527.058 964.231, 523.463 961.488 C 515.600 955.489, 498.507 938.349, 490.065 928 C 486.701 923.875, 482.886 919.263, 481.589 917.750 C 480.292 916.237, 479.434 915, 479.683 915 C 480.276 915, 475.861 908.683, 474.713 907.888 C 474.227 907.552, 473.931 906.954, 474.055 906.560 C 474.444 905.319, 469.925 898, 468.769 898 C 468.163 898, 467.930 897.736, 468.253 897.414 C 469.022 896.644, 463.489 884.346, 461.460 882.317 C 460.594 881.451, 460.122 880.125, 460.411 879.371 C 460.700 878.617, 460.614 878, 460.219 877.999 C 459.823 877.999, 459.431 876.986, 459.347 875.749 C 459.264 874.512, 458.628 872.150, 457.936 870.500 C 457.244 868.850, 456.750 867.163, 456.839 866.750 C 456.927 866.337, 456.520 866, 455.933 866 C 455.320 866, 455.136 865.147, 455.500 864 C 455.849 862.900, 455.723 862, 455.220 862 C 454.716 862, 454.253 860.763, 454.190 859.250 C 454.127 857.737, 453.194 851.960, 452.116 846.410 C 449.781 834.392, 449.503 811.098, 451.574 801 C 452.307 797.425, 453.067 792.908, 453.263 790.963 C 453.458 789.018, 453.956 786.881, 454.368 786.213 C 454.781 785.546, 454.859 784.581, 454.543 784.069 C 454.226 783.557, 454.432 782.851, 455 782.500 C 455.568 782.149, 455.762 781.423, 455.430 780.887 C 455.099 780.351, 455.278 779.370, 455.829 778.706 C 456.379 778.043, 456.922 777.050, 457.035 776.500 C 457.147 775.950, 457.680 774.375, 458.217 773 C 458.755 771.625, 459.264 769.488, 459.347 768.251 C 459.431 767.014, 459.823 766.001, 460.219 766.001 C 460.614 766, 460.700 765.383, 460.411 764.629 C 460.122 763.875, 460.523 762.620, 461.302 761.841 C 463.181 759.962, 466.976 751.310, 466.243 750.577 C 465.926 750.259, 466.218 750, 466.892 750 C 467.566 750, 467.840 749.550, 467.500 749 C 467.160 748.450, 467.385 748, 468 748 C 468.615 748, 468.864 747.588, 468.553 747.085 C 468.242 746.582, 468.331 746.020, 468.752 745.835 C 469.735 745.404, 480 728.145, 480 726.924 C 480 726.416, 479.528 726, 478.950 726 C 477.120 726, 472 729.009, 472 730.085 C 472 730.653, 471.566 730.850, 471.036 730.523 C 470.507 730.195, 469.194 730.806, 468.120 731.880 C 467.046 732.954, 465.915 733.581, 465.607 733.274 C 465.299 732.966, 464.767 733.445, 464.424 734.339 C 463.436 736.913, 460.353 734.615, 458.950 730.258 C 458.284 728.191, 457.293 725.938, 456.747 725.250 C 456.202 724.563, 456.090 724, 456.500 724 C 456.910 724, 456.701 723.345, 456.036 722.544 C 455.372 721.743, 455.099 720.649, 455.430 720.113 C 455.762 719.577, 455.568 718.851, 455 718.500 C 454.432 718.149, 454.226 717.443, 454.543 716.931 C 454.859 716.419, 454.793 715.474, 454.396 714.832 C 453.023 712.609, 452.501 703.432, 452.786 686.500 C 453.165 663.994, 453.165 664, 454.081 664 C 454.518 664, 454.873 663.212, 454.871 662.250 C 454.861 658.747, 455.749 655.050, 457.470 651.422 C 458.438 649.383, 459.290 646.654, 459.365 645.358 C 459.439 644.062, 459.886 643.001, 460.357 643.001 C 460.828 643, 460.955 642.325, 460.638 641.500 C 460.322 640.675, 460.485 640, 461 640 C 461.515 640, 461.650 639.251, 461.299 638.336 C 460.931 637.378, 461.070 636.925, 461.627 637.269 C 462.569 637.852, 467.747 627.244, 467.250 625.750 C 467.112 625.338, 467.525 625, 468.167 625 C 468.808 625, 469.046 624.713, 468.695 624.361 C 468.343 624.010, 469.168 622.400, 470.528 620.784 C 471.888 619.169, 473 617.206, 473 616.423 C 473 615.640, 473.450 615, 474 615 C 474.550 615, 475 614.362, 475 613.583 C 475 612.804, 475.354 612.017, 475.786 611.833 C 477.225 611.223, 481 605.216, 481 603.537 C 481 602.627, 481.427 602.146, 481.950 602.469 C 482.472 602.792, 483.433 602.031, 484.085 600.778 C 484.738 599.525, 485.998 597.780, 486.886 596.900 C 490.893 592.929, 494.979 587.999, 494.274 587.985 C 493.848 587.976, 494.120 587.577, 494.878 587.096 C 495.636 586.616, 495.947 585.723, 495.569 585.112 C 494.700 583.705, 493.312 583.686, 492.458 585.068"/></g></svg>
@@ -0,0 +1,13 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ /**
3
+ * Ironfang node. One node per vendor: pick a product with Resource, then an
4
+ * operation within it. Renderwolf (https://ironfang.uk/renderwolf/docs) is the
5
+ * first product; later ones are added as further resources rather than as
6
+ * separate nodes.
7
+ *
8
+ * Render operations return binary data; sign and usage return JSON.
9
+ */
10
+ export declare class Ironfang implements INodeType {
11
+ description: INodeTypeDescription;
12
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
13
+ }
@@ -0,0 +1,412 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Ironfang = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ /**
6
+ * Ironfang node. One node per vendor: pick a product with Resource, then an
7
+ * operation within it. Renderwolf (https://ironfang.uk/renderwolf/docs) is the
8
+ * first product; later ones are added as further resources rather than as
9
+ * separate nodes.
10
+ *
11
+ * Render operations return binary data; sign and usage return JSON.
12
+ */
13
+ class Ironfang {
14
+ description = {
15
+ displayName: 'Ironfang',
16
+ name: 'ironfang',
17
+ icon: 'file:ironfang.svg',
18
+ usableAsTool: true,
19
+ group: ['transform'],
20
+ version: 1,
21
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
22
+ description: 'Rendering and developer APIs from Ironfang',
23
+ defaults: { name: 'Ironfang' },
24
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
25
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
26
+ credentials: [{ name: 'ironfangApi', required: true }],
27
+ properties: [
28
+ {
29
+ displayName: 'Resource',
30
+ name: 'resource',
31
+ type: 'options',
32
+ noDataExpression: true,
33
+ default: 'renderwolf',
34
+ options: [
35
+ {
36
+ name: 'Renderwolf',
37
+ value: 'renderwolf',
38
+ description: 'Screenshots, PDFs and templated images',
39
+ },
40
+ ],
41
+ },
42
+ {
43
+ displayName: 'Operation',
44
+ name: 'operation',
45
+ type: 'options',
46
+ noDataExpression: true,
47
+ default: 'screenshot',
48
+ displayOptions: { show: { resource: ['renderwolf'] } },
49
+ options: [
50
+ {
51
+ name: 'PDF',
52
+ value: 'pdf',
53
+ description: 'Print a URL or raw HTML to PDF',
54
+ action: 'Render a PDF',
55
+ },
56
+ {
57
+ name: 'Screenshot',
58
+ value: 'screenshot',
59
+ description: 'Capture a URL or raw HTML as an image',
60
+ action: 'Take a screenshot',
61
+ },
62
+ {
63
+ name: 'Signed URL',
64
+ value: 'sign',
65
+ description: 'Mint a stable render URL for &lt;img&gt; tags',
66
+ action: 'Create a signed URL',
67
+ },
68
+ {
69
+ name: 'Template Image',
70
+ value: 'image',
71
+ description: 'Render a stored template with variables (OG images)',
72
+ action: 'Render a template image',
73
+ },
74
+ {
75
+ name: 'Usage',
76
+ value: 'usage',
77
+ description: 'Current period usage against your plan cap',
78
+ action: 'Get usage',
79
+ },
80
+ ],
81
+ },
82
+ /* ------------------------- source (screenshot/pdf) ------------------ */
83
+ {
84
+ displayName: 'Source',
85
+ name: 'source',
86
+ type: 'options',
87
+ default: 'url',
88
+ displayOptions: { show: { operation: ['screenshot', 'pdf'] } },
89
+ options: [
90
+ { name: 'URL', value: 'url' },
91
+ { name: 'HTML', value: 'html' },
92
+ ],
93
+ },
94
+ {
95
+ displayName: 'URL',
96
+ name: 'url',
97
+ type: 'string',
98
+ default: '',
99
+ required: true,
100
+ placeholder: 'https://example.com',
101
+ displayOptions: { show: { operation: ['screenshot', 'pdf'], source: ['url'] } },
102
+ },
103
+ {
104
+ displayName: 'HTML',
105
+ name: 'html',
106
+ type: 'string',
107
+ typeOptions: { rows: 6 },
108
+ default: '',
109
+ required: true,
110
+ displayOptions: { show: { operation: ['screenshot', 'pdf'], source: ['html'] } },
111
+ },
112
+ /* ------------------------- screenshot options ----------------------- */
113
+ {
114
+ displayName: 'Options',
115
+ name: 'screenshotOptions',
116
+ type: 'collection',
117
+ placeholder: 'Add option',
118
+ default: {},
119
+ displayOptions: { show: { operation: ['screenshot'] } },
120
+ options: [
121
+ { displayName: 'Dark Mode', name: 'dark_mode', type: 'boolean', default: false },
122
+ {
123
+ displayName: 'Delay (Ms)',
124
+ name: 'delay_ms',
125
+ type: 'number',
126
+ default: 0,
127
+ description: 'Extra settle time after load for late-painting pages',
128
+ },
129
+ {
130
+ displayName: 'Format',
131
+ name: 'format',
132
+ type: 'options',
133
+ default: 'png',
134
+ options: [
135
+ { name: 'PNG', value: 'png' },
136
+ { name: 'JPEG', value: 'jpeg' },
137
+ ],
138
+ },
139
+ { displayName: 'Full Page', name: 'full_page', type: 'boolean', default: false },
140
+ { displayName: 'Height', name: 'height', type: 'number', default: 800 },
141
+ {
142
+ displayName: 'JPEG Quality',
143
+ name: 'quality',
144
+ type: 'number',
145
+ default: 85,
146
+ typeOptions: { minValue: 1, maxValue: 100 },
147
+ },
148
+ {
149
+ displayName: 'No Cache',
150
+ name: 'no_cache',
151
+ type: 'boolean',
152
+ default: false,
153
+ description: 'Whether to force a live capture instead of reusing an identical recent render. Use when the page must be captured exactly as it is right now, such as evidence or change detection. Counts against your quota.',
154
+ },
155
+ {
156
+ displayName: 'Selector',
157
+ name: 'selector',
158
+ type: 'string',
159
+ default: '',
160
+ description: 'CSS selector - capture just that element',
161
+ },
162
+ { displayName: 'Width', name: 'width', type: 'number', default: 1280 },
163
+ ],
164
+ },
165
+ /* ------------------------- pdf options ------------------------------ */
166
+ {
167
+ displayName: 'Options',
168
+ name: 'pdfOptions',
169
+ type: 'collection',
170
+ placeholder: 'Add option',
171
+ default: {},
172
+ displayOptions: { show: { operation: ['pdf'] } },
173
+ options: [
174
+ { displayName: 'Footer HTML', name: 'footer_html', type: 'string', default: '' },
175
+ { displayName: 'Header HTML', name: 'header_html', type: 'string', default: '' },
176
+ { displayName: 'Landscape', name: 'landscape', type: 'boolean', default: false },
177
+ {
178
+ displayName: 'No Cache',
179
+ name: 'no_cache',
180
+ type: 'boolean',
181
+ default: false,
182
+ description: 'Whether to force a live capture instead of reusing an identical recent render. Use when the page must be captured exactly as it is right now, such as evidence or change detection. Counts against your quota.',
183
+ },
184
+ {
185
+ displayName: 'Print Background',
186
+ name: 'print_background',
187
+ type: 'boolean',
188
+ default: true,
189
+ },
190
+ {
191
+ displayName: 'Scale',
192
+ name: 'scale',
193
+ type: 'number',
194
+ default: 1,
195
+ typeOptions: { minValue: 0.1, maxValue: 2, numberPrecision: 2 },
196
+ },
197
+ ],
198
+ },
199
+ /* ------------------------- template image --------------------------- */
200
+ {
201
+ displayName: 'Template ID',
202
+ name: 'templateId',
203
+ type: 'string',
204
+ default: '',
205
+ required: true,
206
+ displayOptions: { show: { operation: ['image'] } },
207
+ },
208
+ {
209
+ displayName: 'Variables',
210
+ name: 'vars',
211
+ type: 'fixedCollection',
212
+ typeOptions: { multipleValues: true },
213
+ default: {},
214
+ placeholder: 'Add variable',
215
+ displayOptions: { show: { operation: ['image'] } },
216
+ options: [
217
+ {
218
+ name: 'values',
219
+ displayName: 'Variable',
220
+ values: [
221
+ { displayName: 'Name', name: 'name', type: 'string', default: '' },
222
+ { displayName: 'Value', name: 'value', type: 'string', default: '' },
223
+ ],
224
+ },
225
+ ],
226
+ },
227
+ {
228
+ displayName: 'Format',
229
+ name: 'imageFormat',
230
+ type: 'options',
231
+ default: 'png',
232
+ displayOptions: { show: { operation: ['image'] } },
233
+ options: [
234
+ { name: 'PNG', value: 'png' },
235
+ { name: 'JPEG', value: 'jpeg' },
236
+ ],
237
+ },
238
+ /* ------------------------- signed url ------------------------------- */
239
+ {
240
+ displayName: 'Kind',
241
+ name: 'signKind',
242
+ type: 'options',
243
+ default: 'screenshot',
244
+ displayOptions: { show: { operation: ['sign'] } },
245
+ options: [
246
+ { name: 'Screenshot', value: 'screenshot' },
247
+ { name: 'Template Image', value: 'image' },
248
+ ],
249
+ },
250
+ {
251
+ displayName: 'URL',
252
+ name: 'signUrl',
253
+ type: 'string',
254
+ default: '',
255
+ required: true,
256
+ displayOptions: { show: { operation: ['sign'], signKind: ['screenshot'] } },
257
+ },
258
+ {
259
+ displayName: 'Full Page',
260
+ name: 'signFullPage',
261
+ type: 'boolean',
262
+ default: false,
263
+ displayOptions: { show: { operation: ['sign'], signKind: ['screenshot'] } },
264
+ },
265
+ {
266
+ displayName: 'Template ID',
267
+ name: 'signTemplateId',
268
+ type: 'string',
269
+ default: '',
270
+ required: true,
271
+ displayOptions: { show: { operation: ['sign'], signKind: ['image'] } },
272
+ },
273
+ {
274
+ displayName: 'Variables',
275
+ name: 'signVars',
276
+ type: 'fixedCollection',
277
+ typeOptions: { multipleValues: true },
278
+ default: {},
279
+ placeholder: 'Add variable',
280
+ displayOptions: { show: { operation: ['sign'], signKind: ['image'] } },
281
+ options: [
282
+ {
283
+ name: 'values',
284
+ displayName: 'Variable',
285
+ values: [
286
+ { displayName: 'Name', name: 'name', type: 'string', default: '' },
287
+ { displayName: 'Value', name: 'value', type: 'string', default: '' },
288
+ ],
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ displayName: 'TTL (Hours)',
294
+ name: 'ttlHours',
295
+ type: 'number',
296
+ default: 0,
297
+ description: '0 means the URL never expires',
298
+ displayOptions: { show: { operation: ['sign'] } },
299
+ },
300
+ /* ------------------------- binary output ---------------------------- */
301
+ {
302
+ displayName: 'Put Output in Field',
303
+ name: 'binaryProperty',
304
+ type: 'string',
305
+ default: 'data',
306
+ description: 'Name of the binary field to write the rendered file to',
307
+ displayOptions: { show: { operation: ['screenshot', 'pdf', 'image'] } },
308
+ },
309
+ ],
310
+ };
311
+ async execute() {
312
+ const items = this.getInputData();
313
+ const out = [];
314
+ const collectVars = (raw) => {
315
+ const vars = {};
316
+ for (const v of raw.values ?? []) {
317
+ vars[String(v.name)] = String(v.value);
318
+ }
319
+ return vars;
320
+ };
321
+ for (let i = 0; i < items.length; i++) {
322
+ const operation = this.getNodeParameter('operation', i);
323
+ const credentials = await this.getCredentials('ironfangApi');
324
+ const baseUrl = String(credentials.baseUrl || 'https://api.ironfang.uk').replace(/\/+$/, '');
325
+ try {
326
+ if (operation === 'screenshot' || operation === 'pdf') {
327
+ const source = this.getNodeParameter('source', i);
328
+ const body = operation === 'screenshot'
329
+ ? { ...this.getNodeParameter('screenshotOptions', i) }
330
+ : { ...this.getNodeParameter('pdfOptions', i) };
331
+ if (source === 'url') {
332
+ body.url = this.getNodeParameter('url', i);
333
+ }
334
+ else {
335
+ body.html = this.getNodeParameter('html', i);
336
+ }
337
+ const data = (await this.helpers.httpRequestWithAuthentication.call(this, 'ironfangApi', {
338
+ method: 'POST',
339
+ url: `${baseUrl}/v1/${operation}`,
340
+ body,
341
+ encoding: 'arraybuffer',
342
+ }));
343
+ const binaryProperty = this.getNodeParameter('binaryProperty', i);
344
+ const isPdf = operation === 'pdf';
345
+ const format = isPdf ? 'pdf' : (body.format || 'png');
346
+ const binary = await this.helpers.prepareBinaryData(Buffer.from(data), `render.${format}`, isPdf ? 'application/pdf' : `image/${format}`);
347
+ out.push({
348
+ json: { operation, bytes: binary.fileSize },
349
+ binary: { [binaryProperty]: binary },
350
+ pairedItem: { item: i },
351
+ });
352
+ }
353
+ else if (operation === 'image') {
354
+ const templateId = this.getNodeParameter('templateId', i);
355
+ const format = this.getNodeParameter('imageFormat', i);
356
+ const vars = collectVars(this.getNodeParameter('vars', i));
357
+ const data = (await this.helpers.httpRequestWithAuthentication.call(this, 'ironfangApi', {
358
+ method: 'POST',
359
+ url: `${baseUrl}/v1/image/${templateId}`,
360
+ body: { vars, format },
361
+ encoding: 'arraybuffer',
362
+ }));
363
+ const binaryProperty = this.getNodeParameter('binaryProperty', i);
364
+ const binary = await this.helpers.prepareBinaryData(Buffer.from(data), `render.${format}`, `image/${format}`);
365
+ out.push({
366
+ json: { operation, template: templateId, bytes: binary.fileSize },
367
+ binary: { [binaryProperty]: binary },
368
+ pairedItem: { item: i },
369
+ });
370
+ }
371
+ else if (operation === 'sign') {
372
+ const kind = this.getNodeParameter('signKind', i);
373
+ const body = {
374
+ kind,
375
+ ttl_hours: this.getNodeParameter('ttlHours', i),
376
+ };
377
+ if (kind === 'screenshot') {
378
+ body.url = this.getNodeParameter('signUrl', i);
379
+ body.full_page = this.getNodeParameter('signFullPage', i);
380
+ }
381
+ else {
382
+ body.template = this.getNodeParameter('signTemplateId', i);
383
+ body.vars = collectVars(this.getNodeParameter('signVars', i));
384
+ }
385
+ const resp = (await this.helpers.httpRequestWithAuthentication.call(this, 'ironfangApi', { method: 'POST', url: `${baseUrl}/v1/sign`, body, json: true }));
386
+ out.push({ json: resp, pairedItem: { item: i } });
387
+ }
388
+ else if (operation === 'usage') {
389
+ const resp = (await this.helpers.httpRequestWithAuthentication.call(this, 'ironfangApi', { method: 'GET', url: `${baseUrl}/v1/usage`, json: true }));
390
+ out.push({ json: resp, pairedItem: { item: i } });
391
+ }
392
+ else {
393
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation ${operation}`, {
394
+ itemIndex: i,
395
+ });
396
+ }
397
+ }
398
+ catch (error) {
399
+ if (this.continueOnFail()) {
400
+ out.push({
401
+ json: { error: error instanceof Error ? error.message : String(error) },
402
+ pairedItem: { item: i },
403
+ });
404
+ continue;
405
+ }
406
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
407
+ }
408
+ }
409
+ return [out];
410
+ }
411
+ }
412
+ exports.Ironfang = Ironfang;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1191 1191"><rect width="1191" height="1191" fill="#fafafa"/><g transform="translate(95.28 95.28) scale(0.84)"><path fill-rule="evenodd" fill="#0a0a0f" d="M 779.500 57.063 C 759.489 57.949, 739.874 59.996, 713 64 C 691.458 67.210, 688.264 67.837, 656.500 75.096 C 635.477 79.900, 627.180 82.119, 602.500 89.537 C 527.244 112.159, 458.095 144.590, 396.500 186.153 C 371.555 202.985, 371.637 202.851, 385.146 204.872 C 405.250 207.881, 437.826 215.625, 436.307 217.035 C 435.863 217.447, 426.275 220.110, 415 222.953 C 279.249 257.181, 168.283 344.834, 100.301 471.538 C 74.639 519.366, 57.383 571.909, 49.572 626 C 45.949 651.085, 42.692 709.215, 44.399 718.314 C 45.429 723.801, 47.488 722.870, 48.961 716.250 C 52.972 698.229, 65.141 666.483, 76.990 643.130 C 105.533 586.876, 154.586 531.277, 204 499.171 C 208.675 496.133, 215.510 491.692, 219.188 489.302 C 229.940 482.316, 257.341 468.631, 272.646 462.605 C 312.494 446.915, 344.559 440.045, 390.250 437.407 C 398.577 436.926, 402 436.366, 402 435.487 C 402 433.514, 373.954 421.697, 352 414.420 C 348.975 413.417, 346.141 412.306, 345.702 411.950 C 344.564 411.028, 368.058 401.021, 384 395.637 C 466.301 367.843, 560.534 363.435, 641.500 383.593 C 657.440 387.562, 671 391.827, 671 392.873 C 671 394.149, 639.944 396.035, 619.222 396.017 C 578.723 395.983, 545.476 401.415, 506.399 414.451 C 485.002 421.589, 458.343 434.005, 442.688 444.123 C 438.660 446.727, 435.551 448, 433.223 448 C 416.213 448, 372.139 458.865, 342.390 470.391 C 261.979 501.547, 189.055 567.547, 150.567 644 C 110.005 724.572, 106.604 805.460, 140.205 890.439 C 145.895 904.830, 160.702 933.669, 169.285 947.078 C 203.561 1000.626, 249.978 1044.970, 304.598 1076.348 C 317.109 1083.535, 318.167 1082.300, 309.310 1070.853 C 282.194 1035.810, 259.246 986.979, 249.565 943.722 C 243.989 918.808, 242.658 905.812, 242.576 875.500 C 242.491 844.097, 243.587 833.281, 249.623 806 C 267.968 723.079, 322.481 651.440, 404.500 602.466 C 450.985 574.710, 511.884 555, 551.161 555 L 561.335 555 549.354 567.250 C 528.802 588.262, 515.168 607.202, 504.277 629.866 C 493.336 652.633, 483.730 686, 488.115 686 C 488.729 686, 494.239 680.755, 500.360 674.345 C 539.099 633.779, 588.825 607.084, 641 598.843 C 654.101 596.773, 693.948 597.062, 706 599.314 C 745.374 606.670, 773.944 619.971, 839 661.236 C 870.852 681.440, 881.804 687.897, 897.861 695.940 C 916.733 705.393, 938.190 711.042, 954.926 710.965 C 1004.310 710.738, 1072.640 663.491, 1130.595 589.500 C 1139.719 577.851, 1146 568.740, 1146 567.154 C 1146 566.462, 1142.963 564.511, 1139.250 562.819 C 1135.537 561.127, 1129.575 558.396, 1126 556.751 C 1122.425 555.105, 1113.875 551.293, 1107 548.278 C 1100.125 545.264, 1089.100 540.405, 1082.500 537.480 C 1068.683 531.357, 1052.004 524.217, 1019.500 510.508 C 1006.850 505.173, 995.010 499.682, 993.189 498.306 C 983.030 490.632, 969.816 462.864, 960.973 430.607 C 948.937 386.703, 928.949 364.082, 876.786 335.331 C 871.129 332.213, 859.525 325.982, 851 321.486 C 808.277 298.950, 790.253 288.406, 772.220 275.400 C 759.488 266.218, 743.828 250.770, 738.710 242.345 C 709.934 194.975, 731.320 127.775, 794.021 68.546 C 804.920 58.251, 806.104 55.920, 800.320 56.155 C 798.219 56.240, 788.850 56.649, 779.500 57.063 M 856.500 126.657 C 855.400 126.891, 850.900 127.757, 846.500 128.583 C 828.485 131.964, 805.370 141.355, 792.382 150.572 C 764.316 170.487, 761.596 204.769, 785.984 231.212 C 797.584 243.789, 816.071 256.493, 837.500 266.612 C 847.773 271.463, 852 272.768, 852 271.088 C 852 270.468, 850.006 265.991, 847.570 261.139 C 837.040 240.172, 833.499 224.813, 834.256 203.376 C 835.065 180.441, 842.734 157.783, 857.661 134.231 C 862.378 126.787, 862.173 125.452, 856.500 126.657 M 761.210 406.040 C 761.531 406.904, 781.357 429.456, 801.612 451.998 C 821.687 474.339, 824.793 476.455, 837.552 476.483 C 844.839 476.498, 846.315 476.149, 853.087 472.802 C 862.259 468.269, 874.528 458.216, 874.435 455.309 C 874.317 451.603, 862.844 435.978, 856.500 430.885 C 845.552 422.096, 848.281 422.836, 765.210 406.122 C 762.850 405.648, 761.050 405.610, 761.210 406.040 M 483.500 586.929 C 431.708 601.368, 394.013 622.717, 357.132 658.500 C 301.493 712.481, 268.979 794.533, 272.332 872.500 C 274.434 921.399, 288.069 964.004, 314.289 1003.605 C 325.981 1021.264, 334.138 1031.233, 349.450 1046.579 C 395.927 1093.160, 453.575 1121.030, 524.500 1131.208 C 538.766 1133.256, 589.553 1132.928, 604 1130.695 C 627.822 1127.013, 644.545 1123.068, 663.500 1116.659 C 734.522 1092.645, 795.856 1044.451, 836.016 981.102 C 844.080 968.381, 854 949.925, 854 947.642 C 854 945.605, 851.660 945.500, 850.030 947.464 C 846.434 951.797, 821.120 969.836, 806.500 978.484 C 723.967 1027.306, 631.360 1028.156, 551.477 980.825 C 520.690 962.584, 491.140 933.822, 474.228 905.636 C 441.838 851.653, 442.427 788.993, 475.833 734.732 C 482.280 724.262, 481.531 723.740, 469.868 730.578 C 465.573 733.095, 461.610 734.877, 461.061 734.538 C 460.511 734.198, 458.914 730.287, 457.511 725.846 C 447.803 695.113, 451.103 660.565, 466.811 628.500 C 471.673 618.576, 483.053 601.566, 490.437 593.186 C 495.835 587.060, 497.318 583.926, 494.750 584.071 C 494.063 584.109, 489 585.396, 483.500 586.929"/><path fill-rule="evenodd" fill="#52525b" d="M 492.458 585.068 C 492.095 585.656, 491.168 585.895, 490.399 585.600 C 489.629 585.304, 489 585.551, 489 586.148 C 489 586.745, 488.100 586.998, 487 586.710 C 485.900 586.423, 485 586.553, 485 587 C 485 587.447, 484.030 587.559, 482.844 587.249 C 481.274 586.838, 480.900 587.029, 481.469 587.950 C 482.051 588.892, 481.676 589.032, 480 588.500 C 478.721 588.094, 477.991 588.177, 478.310 588.693 C 478.619 589.192, 477.295 589.600, 475.368 589.600 C 473.397 589.600, 471.464 590.234, 470.948 591.050 C 470.443 591.847, 470.024 592.107, 470.015 591.628 C 470.007 591.148, 469.345 591.299, 468.544 591.964 C 467.743 592.628, 466.618 592.882, 466.044 592.527 C 465.470 592.172, 465 592.344, 465 592.910 C 465 593.475, 464.325 593.678, 463.500 593.362 C 462.674 593.045, 462 593.332, 462 594 C 462 594.668, 461.326 594.955, 460.500 594.638 C 459.675 594.322, 459 594.525, 459 595.090 C 459 595.656, 458.612 595.878, 458.138 595.585 C 456.964 594.859, 448.936 598.088, 449.529 599.047 C 449.790 599.469, 449.032 599.560, 447.845 599.249 C 446.475 598.891, 445.925 599.069, 446.338 599.738 C 447.173 601.089, 444.504 602.131, 442.336 601.299 C 441.176 600.853, 440.903 601.035, 441.436 601.897 C 441.912 602.667, 441.691 603.047, 440.850 602.904 C 438.739 602.545, 433.959 604.124, 434.501 605.002 C 435.160 606.068, 432.089 607.173, 430.755 606.349 C 430.170 605.987, 429.971 606.145, 430.314 606.699 C 430.657 607.254, 429.798 608.227, 428.405 608.861 C 426.501 609.729, 426.049 609.730, 426.583 608.865 C 426.974 608.233, 424.991 608.969, 422.176 610.501 C 419.362 612.032, 417.340 613.741, 417.684 614.297 C 418.043 614.879, 417.810 615.001, 417.136 614.584 C 415.780 613.746, 409 617.632, 409 619.248 C 409 619.845, 408.707 620.040, 408.349 619.682 C 407.991 619.324, 407.057 619.812, 406.275 620.766 C 405.427 621.799, 405.161 621.894, 405.618 621 C 406.564 619.148, 403.064 621.616, 401.689 623.771 C 401.242 624.470, 400.452 624.779, 399.931 624.458 C 399.411 624.136, 398.717 624.574, 398.388 625.431 C 398.059 626.288, 397.388 626.740, 396.895 626.435 C 396.403 626.131, 396 626.385, 396 627 C 396 627.615, 395.596 627.868, 395.102 627.563 C 394.608 627.257, 392.760 628.356, 390.996 630.004 C 389.232 631.652, 387.548 633, 387.254 633 C 386.961 633, 386.075 633.788, 385.286 634.750 C 384.368 635.870, 384.094 635.960, 384.526 635 C 384.897 634.175, 383.805 635.023, 382.100 636.886 C 380.395 638.748, 378.986 639.873, 378.970 639.386 C 378.953 638.898, 378.481 639.288, 377.920 640.250 C 377.359 641.212, 376.361 642, 375.701 642 C 375.041 642, 373.151 643.360, 371.501 645.023 C 369.850 646.685, 363.624 652.694, 357.665 658.376 C 351.706 664.059, 346.306 669.735, 345.665 670.992 C 345.024 672.248, 344.135 673.191, 343.688 673.088 C 342.955 672.919, 335.782 681.430, 332 686.956 C 331.175 688.162, 329.276 690.530, 327.781 692.220 C 326.285 693.909, 325.261 695.613, 325.505 696.008 C 325.748 696.402, 324.159 698.661, 321.974 701.028 C 319.788 703.396, 317.948 705.820, 317.885 706.416 C 317.821 707.012, 317.709 708.087, 317.635 708.803 C 317.561 709.520, 316.482 710.876, 315.238 711.817 C 313.994 712.757, 312.773 714.584, 312.524 715.877 C 312.275 717.170, 311.268 718.885, 310.286 719.688 C 309.170 720.601, 309.063 720.905, 310 720.500 C 311.202 719.981, 311.185 720.115, 309.912 721.176 C 309.039 721.904, 308.535 723.125, 308.792 723.889 C 309.052 724.663, 308.805 724.998, 308.235 724.645 C 307.671 724.297, 306.943 724.707, 306.616 725.558 C 306.226 726.574, 306.447 726.889, 307.261 726.478 C 307.943 726.133, 307.719 726.492, 306.766 727.275 C 305.812 728.057, 305.324 728.991, 305.682 729.349 C 306.040 729.707, 305.822 730, 305.198 730 C 304.550 730, 304.337 730.714, 304.701 731.664 C 305.131 732.783, 304.957 733.091, 304.170 732.605 C 303.026 731.898, 302.571 733.105, 302.948 735.850 C 303.063 736.686, 302.663 736.910, 301.897 736.436 C 301.048 735.911, 300.850 736.167, 301.267 737.253 C 301.614 738.159, 301.267 739.067, 300.454 739.379 C 299.589 739.711, 299.289 740.590, 299.687 741.626 C 300.167 742.877, 299.985 743.109, 299 742.500 C 298.015 741.891, 297.833 742.123, 298.313 743.374 C 298.708 744.401, 298.414 745.287, 297.573 745.610 C 296.239 746.122, 294.930 749.432, 294.516 753.342 C 294.408 754.355, 293.911 755.480, 293.410 755.842 C 292.910 756.204, 292.343 757.400, 292.150 758.500 C 291.958 759.600, 291.431 760.730, 290.979 761.010 C 289.981 761.631, 288.489 767.019, 288.836 768.750 C 288.975 769.438, 288.632 770, 288.075 770 C 287.518 770, 287.322 770.675, 287.638 771.500 C 287.955 772.325, 287.730 773, 287.138 773 C 286.547 773, 286.322 773.675, 286.638 774.500 C 286.955 775.325, 286.689 776, 286.048 776 C 285.407 776, 285.172 776.470, 285.527 777.044 C 285.882 777.618, 285.571 778.829, 284.836 779.736 C 283.695 781.143, 283.719 781.258, 285 780.520 C 286.260 779.794, 286.249 779.963, 284.929 781.578 C 282.997 783.943, 280.952 790.712, 281.634 792.489 C 281.910 793.209, 281.675 794.083, 281.112 794.431 C 280.548 794.779, 280.323 795.679, 280.612 796.431 C 280.900 797.183, 280.675 798.083, 280.112 798.431 C 279.548 798.779, 279.323 799.679, 279.612 800.431 C 279.900 801.183, 279.648 802.099, 279.052 802.468 C 278.455 802.837, 278.206 803.524, 278.497 803.995 C 278.788 804.466, 278.308 806.968, 277.430 809.554 C 276.552 812.140, 276.054 815.099, 276.323 816.128 C 276.592 817.158, 276.347 818, 275.779 818 C 275.129 818, 274.987 819.515, 275.396 822.074 C 275.862 824.992, 275.725 825.948, 274.912 825.446 C 274.089 824.937, 273.971 826.152, 274.482 829.872 C 274.911 832.986, 274.809 835, 274.223 835 C 273.693 835, 273.280 837.813, 273.306 841.250 C 273.332 844.688, 273.154 854.362, 272.909 862.750 C 272.652 871.571, 272.848 878, 273.375 878 C 273.889 878, 274.014 880.588, 273.663 883.953 C 273.271 887.700, 273.430 890.148, 274.091 890.556 C 274.726 890.949, 274.881 892.744, 274.483 895.103 C 274.121 897.246, 274.208 899, 274.678 899 C 275.148 899, 275.594 901.715, 275.670 905.033 C 275.747 908.350, 276.352 911.720, 277.016 912.520 C 277.680 913.320, 277.968 914.641, 277.656 915.455 C 277.343 916.270, 277.441 917.155, 277.874 917.422 C 278.607 917.875, 280.863 926.618, 281.479 931.393 C 281.925 934.850, 283.225 939.205, 284.603 941.862 C 285.315 943.234, 285.698 944.679, 285.455 945.074 C 285.211 945.468, 285.735 946.068, 286.619 946.407 C 287.659 946.806, 288.037 947.750, 287.690 949.079 C 287.042 951.557, 289.287 957.348, 290.477 956.267 C 290.941 955.845, 290.995 956.066, 290.597 956.758 C 290.198 957.449, 290.580 958.723, 291.445 959.588 C 292.311 960.453, 292.763 961.575, 292.450 962.081 C 292.138 962.586, 292.407 963, 293.048 963 C 293.689 963, 293.955 963.675, 293.638 964.500 C 293.322 965.325, 293.574 966, 294.198 966 C 294.822 966, 295.042 966.291, 294.686 966.648 C 294.134 967.199, 297.503 974.503, 299 976 C 300.402 977.402, 302.053 981.151, 300.974 980.484 C 300.083 979.933, 300.074 980.269, 300.935 981.879 C 301.560 983.046, 302.505 984, 303.035 984 C 303.566 984, 304 984.675, 304 985.500 C 304 986.325, 304.498 987, 305.107 987 C 305.716 987, 305.955 987.675, 305.638 988.500 C 305.288 989.414, 305.637 990, 306.531 990 C 307.339 990, 308 990.477, 308 991.059 C 308 991.641, 307.517 991.819, 306.926 991.454 C 306.333 991.088, 306.422 991.702, 307.125 992.829 C 307.825 993.950, 308.871 994.785, 309.449 994.684 C 310.027 994.583, 310.500 995.175, 310.500 996 C 310.500 996.825, 310.725 997.725, 311 998 C 313.082 1000.082, 315.247 1003.195, 314.176 1002.567 C 313.086 1001.928, 313.079 1002.154, 314.138 1003.850 C 314.846 1004.982, 315.614 1005.720, 315.845 1005.488 C 316.565 1004.768, 320.161 1009.931, 319.586 1010.860 C 319.287 1011.344, 321.171 1013.910, 323.771 1016.562 C 326.372 1019.215, 327.621 1020.736, 326.547 1019.942 C 324.609 1018.511, 324.609 1018.521, 326.547 1021.147 C 327.621 1022.603, 328.815 1023.603, 329.200 1023.369 C 329.585 1023.135, 330.446 1023.969, 331.113 1025.222 C 331.781 1026.475, 333.041 1028.096, 333.913 1028.824 C 335.183 1029.884, 335.200 1030.016, 334 1029.487 C 333.175 1029.124, 333.423 1029.653, 334.551 1030.663 C 335.680 1031.673, 337.846 1034.196, 339.367 1036.269 C 340.887 1038.342, 342.562 1039.771, 343.090 1039.444 C 343.618 1039.118, 343.926 1039.427, 343.775 1040.130 C 343.624 1040.834, 344.063 1041.430, 344.750 1041.455 C 345.438 1041.480, 345.887 1041.813, 345.750 1042.194 C 345.613 1042.576, 347.075 1044.529, 349 1046.534 C 354.414 1052.172, 368.672 1064.746, 367.104 1062.500 C 366.337 1061.400, 367.237 1062.130, 369.104 1064.122 C 372.550 1067.797, 384.096 1077, 385.261 1077 C 385.611 1077, 387.111 1078.125, 388.595 1079.500 C 390.078 1080.875, 391.708 1082, 392.217 1082 C 392.726 1082, 393.822 1082.679, 394.652 1083.509 C 395.482 1084.339, 396.644 1084.720, 397.235 1084.355 C 397.826 1083.990, 398.034 1084.136, 397.698 1084.679 C 397.055 1085.719, 416.264 1097.333, 418.628 1097.333 C 419.382 1097.333, 420 1097.701, 420 1098.150 C 420 1099.487, 430.080 1104.183, 431.653 1103.580 C 432.451 1103.273, 432.862 1103.415, 432.565 1103.894 C 431.840 1105.069, 441.761 1109.266, 443.184 1108.386 C 443.922 1107.930, 444.027 1108.147, 443.490 1109.015 C 442.896 1109.977, 443.128 1110.165, 444.336 1109.701 C 445.251 1109.350, 446 1109.438, 446 1109.897 C 446 1110.666, 456.238 1114.816, 459.910 1115.535 C 460.784 1115.707, 461.613 1115.938, 461.750 1116.048 C 461.887 1116.159, 462.450 1116.362, 463 1116.500 C 463.550 1116.638, 464.225 1116.862, 464.500 1117 C 464.775 1117.138, 465.337 1117.344, 465.750 1117.459 C 466.163 1117.574, 467.850 1118.247, 469.500 1118.956 C 471.150 1119.664, 473.718 1120.264, 475.206 1120.288 C 476.730 1120.314, 477.644 1120.766, 477.300 1121.324 C 476.932 1121.919, 477.550 1122.089, 478.844 1121.751 C 480.030 1121.441, 481 1121.625, 481 1122.161 C 481 1122.697, 481.900 1122.849, 483 1122.500 C 484.225 1122.111, 485 1122.320, 485 1123.040 C 485 1123.686, 485.661 1123.960, 486.468 1123.651 C 487.275 1123.341, 488.206 1123.525, 488.537 1124.060 C 488.868 1124.595, 489.557 1124.774, 490.069 1124.457 C 490.581 1124.141, 491.562 1124.234, 492.250 1124.665 C 492.938 1125.095, 493.950 1125.485, 494.500 1125.531 C 495.050 1125.577, 496.175 1125.884, 497 1126.214 C 500.058 1127.435, 510.057 1128.915, 511.504 1128.360 C 512.327 1128.044, 513 1128.305, 513 1128.938 C 513 1129.714, 514.145 1129.876, 516.500 1129.434 C 518.823 1128.998, 520 1129.158, 520 1129.908 C 520 1130.614, 520.937 1130.803, 522.498 1130.411 C 523.872 1130.066, 525.784 1130.127, 526.748 1130.545 C 530.954 1132.371, 578.368 1133.125, 592.500 1131.590 C 595.800 1131.232, 599.625 1130.833, 601 1130.704 C 602.375 1130.575, 604.042 1130.125, 604.704 1129.704 C 605.366 1129.283, 607.054 1129.226, 608.454 1129.578 C 610.137 1130, 611 1129.804, 611 1129 C 611 1128.211, 611.853 1127.997, 613.425 1128.392 C 614.759 1128.727, 618.922 1128.298, 622.675 1127.440 C 626.429 1126.582, 630.183 1125.773, 631.018 1125.642 C 631.852 1125.512, 633.090 1125.063, 633.768 1124.644 C 634.445 1124.225, 635.419 1124.141, 635.931 1124.457 C 636.443 1124.774, 637.163 1124.545, 637.532 1123.948 C 637.901 1123.352, 638.788 1123.088, 639.503 1123.363 C 640.219 1123.638, 641.111 1123.556, 641.486 1123.181 C 641.860 1122.806, 642.579 1122.444, 643.083 1122.375 C 643.588 1122.306, 644.112 1122.163, 644.250 1122.058 C 644.388 1121.952, 645.850 1121.684, 647.500 1121.463 C 651.967 1120.864, 679.442 1111.174, 679.811 1110.068 C 679.986 1109.542, 680.775 1109.360, 681.565 1109.663 C 682.354 1109.966, 683 1109.791, 683 1109.274 C 683 1108.756, 683.598 1108.333, 684.329 1108.333 C 686.710 1108.333, 696.927 1103.691, 696.405 1102.845 C 696.125 1102.393, 696.668 1102.319, 697.612 1102.681 C 698.868 1103.164, 699.109 1102.985, 698.510 1102.015 C 697.983 1101.164, 698.079 1100.931, 698.777 1101.362 C 700.215 1102.251, 717.288 1093.643, 716.281 1092.537 C 715.851 1092.065, 716.026 1091.981, 716.669 1092.349 C 717.313 1092.717, 718.534 1092.323, 719.384 1091.473 C 720.233 1090.624, 721.181 1089.966, 721.490 1090.012 C 723.033 1090.243, 731.856 1084.577, 731.316 1083.703 C 730.966 1083.135, 731.186 1082.997, 731.819 1083.388 C 734.068 1084.778, 767.555 1059.616, 784.582 1043.742 C 799.174 1030.139, 828.457 995.534, 827.696 992.793 C 827.588 992.404, 828.400 991.358, 829.500 990.469 C 830.600 989.579, 830.825 989.184, 830 989.589 C 829.175 989.995, 829.763 989.127, 831.306 987.659 C 832.889 986.155, 833.803 984.490, 833.402 983.841 C 833.011 983.209, 833.110 982.950, 833.622 983.267 C 834.135 983.583, 835.320 982.507, 836.257 980.874 C 837.289 979.076, 837.476 978.156, 836.730 978.540 C 836.054 978.888, 836.577 978.296, 837.894 977.224 C 839.477 975.934, 840.015 974.805, 839.483 973.887 C 839.041 973.124, 839.055 972.841, 839.514 973.258 C 840.488 974.142, 844.129 969.018, 843.384 967.812 C 843.108 967.366, 843.385 967, 844 967 C 844.615 967, 844.840 966.550, 844.500 966 C 844.160 965.450, 844.326 965, 844.868 965 C 846.244 965, 849.107 958.982, 848.329 957.724 C 847.931 957.080, 848.190 956.999, 849.015 957.510 C 849.985 958.109, 850.164 957.868, 849.681 956.612 C 849.319 955.668, 849.394 955.125, 849.847 955.405 C 850.760 955.970, 854 949.776, 854 947.466 C 854 945.576, 851.598 945.575, 850.030 947.464 C 848.204 949.663, 830.586 962.987, 821.500 969.039 C 817.100 971.970, 813.275 974.622, 813 974.934 C 812.725 975.245, 810.362 976.575, 807.750 977.889 C 805.138 979.203, 803 980.692, 803 981.198 C 803 981.704, 802.578 981.857, 802.061 981.538 C 801.545 981.219, 800.758 981.610, 800.311 982.408 C 799.865 983.205, 799.238 983.777, 798.919 983.679 C 797.672 983.295, 788.102 988.356, 788.588 989.143 C 788.872 989.602, 788.406 989.709, 787.552 989.382 C 786.698 989.054, 786 989.209, 786 989.726 C 786 990.244, 785.438 990.702, 784.750 990.745 C 784.063 990.789, 779.225 992.713, 774 995.022 C 763.114 999.834, 759.808 1001.247, 758.750 1001.541 C 758.337 1001.656, 757.775 1001.862, 757.500 1002 C 757.225 1002.138, 756.550 1002.362, 756 1002.500 C 755.450 1002.638, 754.775 1002.862, 754.500 1003 C 754.225 1003.138, 753.550 1003.362, 753 1003.500 C 752.450 1003.638, 751.775 1003.862, 751.500 1004 C 751.225 1004.138, 750.663 1004.317, 750.250 1004.399 C 746.344 1005.176, 740 1007.416, 740 1008.019 C 740 1008.436, 739.438 1008.757, 738.750 1008.731 C 734.679 1008.580, 731.960 1009.126, 732.493 1009.989 C 732.851 1010.568, 732.421 1010.715, 731.451 1010.343 C 730.515 1009.983, 729.415 1010.314, 728.914 1011.104 C 728.428 1011.872, 728.024 1012.028, 728.015 1011.451 C 728.006 1010.842, 726.530 1010.573, 724.500 1010.810 C 722.575 1011.035, 721 1011.542, 721 1011.936 C 721 1012.331, 719.586 1012.446, 717.858 1012.192 C 715.777 1011.887, 714.940 1012.094, 715.380 1012.806 C 715.829 1013.533, 714.820 1013.712, 712.272 1013.358 C 710.146 1013.063, 709.001 1013.198, 709.648 1013.667 C 710.299 1014.139, 707.159 1014.555, 702.399 1014.627 C 697.122 1014.707, 693.416 1015.240, 692.425 1016.063 C 691.492 1016.836, 690.572 1016.989, 690.174 1016.436 C 689.781 1015.890, 683.802 1015.709, 675.843 1016 C 667.875 1016.292, 662.418 1016.125, 662.744 1015.601 C 663.065 1015.083, 660.376 1014.926, 656.401 1015.230 C 651.929 1015.573, 650.204 1015.443, 651.500 1014.863 C 652.837 1014.264, 651.518 1014.122, 647.519 1014.435 C 643.233 1014.771, 641.958 1014.611, 643.019 1013.872 C 644.100 1013.119, 643.353 1012.971, 640.250 1013.325 C 637.841 1013.600, 636.242 1013.418, 636.559 1012.905 C 636.866 1012.407, 635.854 1011.943, 634.309 1011.872 C 629.484 1011.653, 627.312 1011.311, 626.136 1010.584 C 625.510 1010.197, 624.993 1010.470, 624.985 1011.191 C 624.972 1012.241, 624.809 1012.248, 624.161 1011.227 C 623.295 1009.862, 620.133 1008.882, 615.843 1008.650 C 614.382 1008.571, 613.440 1008.097, 613.750 1007.596 C 614.059 1007.095, 613.342 1006.939, 612.156 1007.249 C 610.970 1007.559, 610 1007.352, 610 1006.790 C 610 1006.227, 609.099 1006.002, 607.999 1006.290 C 606.898 1006.578, 606.196 1006.492, 606.439 1006.098 C 606.956 1005.262, 597.979 1002.687, 597.214 1003.452 C 596.930 1003.736, 596.178 1003.259, 595.544 1002.391 C 594.909 1001.523, 593.220 1000.742, 591.791 1000.656 C 590.361 1000.570, 589.359 1000.230, 589.563 999.899 C 589.856 999.424, 583.214 996.740, 581 996.439 C 580.725 996.402, 576.337 994.294, 571.250 991.756 C 566.163 989.217, 562 987.366, 562 987.642 C 562 987.917, 561.342 987.485, 560.538 986.681 C 559.121 985.264, 543.032 975.602, 541.976 975.534 C 541.688 975.515, 540.143 974.287, 538.544 972.804 C 536.944 971.320, 535.315 970.305, 534.923 970.548 C 534.530 970.790, 533.952 970.316, 533.636 969.494 C 533.321 968.672, 532.374 968, 531.531 968 C 530.689 968, 530 967.657, 530 967.238 C 530 966.818, 527.058 964.231, 523.463 961.488 C 515.600 955.489, 498.507 938.349, 490.065 928 C 486.701 923.875, 482.886 919.263, 481.589 917.750 C 480.292 916.237, 479.434 915, 479.683 915 C 480.276 915, 475.861 908.683, 474.713 907.888 C 474.227 907.552, 473.931 906.954, 474.055 906.560 C 474.444 905.319, 469.925 898, 468.769 898 C 468.163 898, 467.930 897.736, 468.253 897.414 C 469.022 896.644, 463.489 884.346, 461.460 882.317 C 460.594 881.451, 460.122 880.125, 460.411 879.371 C 460.700 878.617, 460.614 878, 460.219 877.999 C 459.823 877.999, 459.431 876.986, 459.347 875.749 C 459.264 874.512, 458.628 872.150, 457.936 870.500 C 457.244 868.850, 456.750 867.163, 456.839 866.750 C 456.927 866.337, 456.520 866, 455.933 866 C 455.320 866, 455.136 865.147, 455.500 864 C 455.849 862.900, 455.723 862, 455.220 862 C 454.716 862, 454.253 860.763, 454.190 859.250 C 454.127 857.737, 453.194 851.960, 452.116 846.410 C 449.781 834.392, 449.503 811.098, 451.574 801 C 452.307 797.425, 453.067 792.908, 453.263 790.963 C 453.458 789.018, 453.956 786.881, 454.368 786.213 C 454.781 785.546, 454.859 784.581, 454.543 784.069 C 454.226 783.557, 454.432 782.851, 455 782.500 C 455.568 782.149, 455.762 781.423, 455.430 780.887 C 455.099 780.351, 455.278 779.370, 455.829 778.706 C 456.379 778.043, 456.922 777.050, 457.035 776.500 C 457.147 775.950, 457.680 774.375, 458.217 773 C 458.755 771.625, 459.264 769.488, 459.347 768.251 C 459.431 767.014, 459.823 766.001, 460.219 766.001 C 460.614 766, 460.700 765.383, 460.411 764.629 C 460.122 763.875, 460.523 762.620, 461.302 761.841 C 463.181 759.962, 466.976 751.310, 466.243 750.577 C 465.926 750.259, 466.218 750, 466.892 750 C 467.566 750, 467.840 749.550, 467.500 749 C 467.160 748.450, 467.385 748, 468 748 C 468.615 748, 468.864 747.588, 468.553 747.085 C 468.242 746.582, 468.331 746.020, 468.752 745.835 C 469.735 745.404, 480 728.145, 480 726.924 C 480 726.416, 479.528 726, 478.950 726 C 477.120 726, 472 729.009, 472 730.085 C 472 730.653, 471.566 730.850, 471.036 730.523 C 470.507 730.195, 469.194 730.806, 468.120 731.880 C 467.046 732.954, 465.915 733.581, 465.607 733.274 C 465.299 732.966, 464.767 733.445, 464.424 734.339 C 463.436 736.913, 460.353 734.615, 458.950 730.258 C 458.284 728.191, 457.293 725.938, 456.747 725.250 C 456.202 724.563, 456.090 724, 456.500 724 C 456.910 724, 456.701 723.345, 456.036 722.544 C 455.372 721.743, 455.099 720.649, 455.430 720.113 C 455.762 719.577, 455.568 718.851, 455 718.500 C 454.432 718.149, 454.226 717.443, 454.543 716.931 C 454.859 716.419, 454.793 715.474, 454.396 714.832 C 453.023 712.609, 452.501 703.432, 452.786 686.500 C 453.165 663.994, 453.165 664, 454.081 664 C 454.518 664, 454.873 663.212, 454.871 662.250 C 454.861 658.747, 455.749 655.050, 457.470 651.422 C 458.438 649.383, 459.290 646.654, 459.365 645.358 C 459.439 644.062, 459.886 643.001, 460.357 643.001 C 460.828 643, 460.955 642.325, 460.638 641.500 C 460.322 640.675, 460.485 640, 461 640 C 461.515 640, 461.650 639.251, 461.299 638.336 C 460.931 637.378, 461.070 636.925, 461.627 637.269 C 462.569 637.852, 467.747 627.244, 467.250 625.750 C 467.112 625.338, 467.525 625, 468.167 625 C 468.808 625, 469.046 624.713, 468.695 624.361 C 468.343 624.010, 469.168 622.400, 470.528 620.784 C 471.888 619.169, 473 617.206, 473 616.423 C 473 615.640, 473.450 615, 474 615 C 474.550 615, 475 614.362, 475 613.583 C 475 612.804, 475.354 612.017, 475.786 611.833 C 477.225 611.223, 481 605.216, 481 603.537 C 481 602.627, 481.427 602.146, 481.950 602.469 C 482.472 602.792, 483.433 602.031, 484.085 600.778 C 484.738 599.525, 485.998 597.780, 486.886 596.900 C 490.893 592.929, 494.979 587.999, 494.274 587.985 C 493.848 587.976, 494.120 587.577, 494.878 587.096 C 495.636 586.616, 495.947 585.723, 495.569 585.112 C 494.700 583.705, 493.312 583.686, 492.458 585.068"/></g></svg>
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@ironfang/n8n-nodes-ironfang",
3
+ "version": "0.2.0",
4
+ "description": "n8n community node for Ironfang APIs - screenshots, PDFs and templated images from Renderwolf",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "ironfang",
8
+ "renderwolf",
9
+ "screenshot",
10
+ "pdf",
11
+ "og-image",
12
+ "rendering"
13
+ ],
14
+ "license": "MIT",
15
+ "homepage": "https://ironfang.uk",
16
+ "author": {
17
+ "name": "Ironfang Ltd",
18
+ "email": "rick@ironfang.uk"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/ironfang-ltd/n8n-nodes-ironfang.git"
23
+ },
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "main": "index.js",
28
+ "scripts": {
29
+ "build": "tsc && node scripts/copy-assets.mjs",
30
+ "dev": "tsc --watch",
31
+ "lint": "tsc --noEmit"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "n8n": {
37
+ "n8nNodesApiVersion": 1,
38
+ "credentials": [
39
+ "dist/credentials/IronfangApi.credentials.js"
40
+ ],
41
+ "nodes": [
42
+ "dist/nodes/Ironfang/Ironfang.node.js"
43
+ ]
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^26.2.0",
47
+ "n8n-workflow": "^1.70.0",
48
+ "typescript": "^5.6.0"
49
+ },
50
+ "peerDependencies": {
51
+ "n8n-workflow": "*"
52
+ }
53
+ }