Flow control nodes for GravityWorkflow - Code, Loop, IfElse, Context, Relay, Note, UMAP
npm install @gravityai-dev/flowFlow control nodes for GravityWorkflow - essential building blocks for workflow logic and data processing.
``bash`
npm install @gravityai-dev/flow
This package follows the Gravity Plugin System architecture. It registers automatically when loaded by the platform.
All nodes are categorized as "Flow" nodes and provide essential workflow control capabilities:
- Promise Nodes: Code, IfElse, Context, Relay, Note, UMAP
- Callback Nodes: Loop (for stateful iteration)
- Template Resolution: All nodes support template expressions in their configuration
- Type Safety: Full TypeScript support with proper type definitions
- State Management: Loop node maintains iteration state across events
- Error Handling: Comprehensive error handling and logging
- Platform Integration: Seamless integration with GravityWorkflow platform
`bashBuild the package
npm run build
Architecture
This package uses the standard Gravity plugin structure:
-
src/NodeName/ - Individual node implementations
- src/shared/platform.ts - Platform dependency management
- src/index.ts` - Plugin registration and setup