@fractal-solutions/qflow 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,6 +24,22 @@ npm install @fractal-solutions/qflow
24
24
  bun add @fractal-solutions/qflow
25
25
  ```
26
26
 
27
+ ## Module Imports
28
+
29
+ `qflow` provides different entry points for its core functionalities and built-in nodes to keep your imports clean and specific.
30
+
31
+ * **Core Classes (`Node`, `Flow`, `AsyncNode`, `AsyncFlow`, etc.):**
32
+ These are imported directly from the main package:
33
+ ```javascript
34
+ import { Node, Flow, AsyncNode, AsyncFlow } from '@fractal-solutions/qflow';
35
+ ```
36
+
37
+ * **Built-in Integration Nodes (`LLMNode`, `DeepSeekLLMNode`, `GitHubNode`, `WebScraperNode`, etc.):**
38
+ These are imported from the `/nodes` subpath:
39
+ ```javascript
40
+ import { DeepSeekLLMNode, GitHubNode, WebScraperNode } from '@fractal-solutions/qflow/nodes';
41
+ ```
42
+
27
43
  ## Core Abstractions
28
44
 
29
45
  `qflow` is built around a few core abstractions that enable powerful and flexible workflow definitions.
@@ -407,8 +423,21 @@ class HereticNode extends DeepSeekLLMNode {
407
423
 
408
424
  ```
409
425
 
426
+ ## Exploring More Examples
427
+
428
+ The examples above cover the core functionalities of `qflow`. For more advanced and specific use cases involving the built-in integrations, please explore the [`examples/` folder](https://github.com/fractal-solutions/qflow/tree/main/examples) in the project's GitHub repository. There you will find detailed scripts demonstrating how to use nodes for:
429
+
430
+ * **GitHub:** Creating and managing issues.
431
+ * **HackerNews:** Fetching top stories and item details.
432
+ * **Stripe:** Creating charges and retrieving account balances.
433
+ * **WebScraper:** Fetching and processing web content.
434
+ * **LLMs (DeepSeek, OpenAI, Gemini):** Building powerful AI-driven workflows.
435
+
436
+ These examples are a great resource for understanding how to leverage `qflow` to its full potential.
437
+
410
438
  ## Error Handling
411
439
 
440
+
412
441
  `qflow` provides mechanisms to handle errors gracefully within your workflows.
413
442
 
414
443
  * **Node-level Error Handling:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractal-solutions/qflow",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A lightweight and flexible JavaScript library for creating and managing workflows and agents.",
5
5
  "main": "dist/qflow.js",
6
6
  "types": "dist/qflow.d.ts",