@uploadista/flow-documents-nodes 0.0.16-beta.2

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.
@@ -0,0 +1,16 @@
1
+
2
+ 
3
+ > @uploadista/flow-documents-nodes@0.0.1 build /Users/denislaboureyras/Documents/uploadista/dev/uploadista-workspace/uploadista-sdk/packages/flow/documents/nodes
4
+ > tsdown
5
+
6
+ ℹ tsdown v0.16.5 powered by rolldown v1.0.0-beta.50
7
+ ℹ entry: src/index.ts
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ Cleaning 4 files
11
+ ℹ dist/index.mjs 15.42 kB │ gzip: 2.85 kB
12
+ ℹ dist/index.mjs.map 33.62 kB │ gzip: 5.72 kB
13
+ ℹ dist/index.d.mts.map  6.54 kB │ gzip: 0.87 kB
14
+ ℹ dist/index.d.mts 32.65 kB │ gzip: 1.51 kB
15
+ ℹ 4 files, total: 88.23 kB
16
+ ✔ Build complete in 5406ms
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 uploadista
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,57 @@
1
+ # @uploadista/flow-documents-nodes
2
+
3
+ Document processing nodes for Uploadista Flow engine.
4
+
5
+ ## Features
6
+
7
+ - **OCR Node**: Extract text from scanned documents and images using AI
8
+ - **Extract Text Node**: Extract plain text from searchable PDFs
9
+ - **Split PDF Node**: Split PDFs by page range or into individual pages
10
+ - **Merge PDF Node**: Combine multiple PDFs into a single document
11
+ - **Describe Document Node**: Extract document metadata
12
+ - **Convert to Markdown Node**: Convert documents to Markdown format
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ pnpm add @uploadista/flow-documents-nodes
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```typescript
23
+ import {
24
+ createOcrNode,
25
+ createExtractTextNode,
26
+ createSplitPdfNode,
27
+ createMergePdfNode,
28
+ createDescribeDocumentNode,
29
+ createConvertToMarkdownNode,
30
+ } from "@uploadista/flow-documents-nodes";
31
+
32
+ // Create an OCR node
33
+ const ocrNode = yield* createOcrNode("ocr-1", {
34
+ taskType: "convertToMarkdown",
35
+ resolution: "gundam",
36
+ credentialId: "replicate-credential-id",
37
+ });
38
+
39
+ // Create an extract text node
40
+ const extractNode = yield* createExtractTextNode("extract-1", {});
41
+
42
+ // Create a split PDF node
43
+ const splitNode = yield* createSplitPdfNode("split-1", {
44
+ mode: "range",
45
+ startPage: 1,
46
+ endPage: 5,
47
+ });
48
+ ```
49
+
50
+ ## Requirements
51
+
52
+ - **DocumentPlugin**: Required for PDF operations (split, merge, extract text, metadata)
53
+ - **DocumentAiPlugin**: Required for OCR operations
54
+
55
+ ## License
56
+
57
+ MIT