Extract logic from your apps with a user-friendly node editor powered by React.
| Files | Last commit | Last update |
|---|---|---|
Upgrade version to 1.1.0 and change access level to public in configuration. Remove obsolete changeset file and add build step in release workflow. | 1 year ago | |
Upgrade version to 1.1.0 and change access level to public in configuration. Remove obsolete changeset file and add build step in release workflow. | 1 year ago | |
Migrate Repo to Typescript (#229) * Upgraded rollup and added TS support * Conversion in-progress * Converted toasts reducer to TS * Adds Toaster.tsx & css module support * Converted context and textInput * Converted cache, commentsReducer, constants, stageReducer * Updated connectionCalculator * Converted Draggable component * Converted Checkbox * Converted connections container * Converted Connection * Converted ContextMenu * Converted Select * Converted NodesReducer & Control * Converted Comment * Converted Stage * Converted Color Picker * Converted IoPorts * Tightened up typebuilder types * Converted Node * Converted NodeEditor * Stage cleanup * Converted root engine * Added basic documentation on types * port type builder config is now optional * v1.0.0-0 * Fixed types for control builders * Moved useRootEngine to its own file * v1.0.1-0 * Exported colors object now autocompletes correctly * Context is now an optional prop of useRootEngine * v1.0.2-0 * Fixed type for custom render functions * v1.0.2-1 * v1.0.2-2 * Lightened default theme and updated docs * Fixed bug preventing color picker * Published 1.0.2-3 * v1.0.2-4 --------- Co-authored-by: Christopher Patty <christopher.patty@aggiemail.usu.edu> | 3 years ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
🐛 Updated react scripts and fixed tests (#149) * Updated react scripts and fixed tests * Added missing dev dependency | 4 years ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
V1.2.0 release (#261) * Update yarn.lock * 1.2.0 | 11 months ago | |
Fix array index bug in toastsReducer when toast ID not found (#262) When findIndex returns -1 (toast not found), the reducer would corrupt state by accessing toasts[-1] (undefined) and creating incorrect slices. This adds guards to return the original state unchanged when the target toast ID doesn't exist, preventing state corruption from race conditions. | 9 months ago | |
Migrate Repo to Typescript (#229) * Upgraded rollup and added TS support * Conversion in-progress * Converted toasts reducer to TS * Adds Toaster.tsx & css module support * Converted context and textInput * Converted cache, commentsReducer, constants, stageReducer * Updated connectionCalculator * Converted Draggable component * Converted Checkbox * Converted connections container * Converted Connection * Converted ContextMenu * Converted Select * Converted NodesReducer & Control * Converted Comment * Converted Stage * Converted Color Picker * Converted IoPorts * Tightened up typebuilder types * Converted Node * Converted NodeEditor * Stage cleanup * Converted root engine * Added basic documentation on types * port type builder config is now optional * v1.0.0-0 * Fixed types for control builders * Moved useRootEngine to its own file * v1.0.1-0 * Exported colors object now autocompletes correctly * Context is now an optional prop of useRootEngine * v1.0.2-0 * Fixed type for custom render functions * v1.0.2-1 * v1.0.2-2 * Lightened default theme and updated docs * Fixed bug preventing color picker * Published 1.0.2-3 * v1.0.2-4 --------- Co-authored-by: Christopher Patty <christopher.patty@aggiemail.usu.edu> | 3 years ago | |
init create-react-library@2.6.7 | 6 years ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
🐛 Fixes tests and adds CI action | 5 years ago | |
Adds cypress and docs to the npmignore | 6 years ago | |
🚀 Add the ability to render a custom node header (#75) * 🚀 Adds the ability to render a custom node header * 🤖 Removed the redundant custom-ui page * Fixed example exports and limited node header render to Employee node * Updated docusaurus dependencies * Added .nvmrc for netlify deploys | 4 years ago | |
Update node versions for Travis | 6 years ago | |
Upgrade version to 1.1.0 and change access level to public in configuration. Remove obsolete changeset file and add build step in release workflow. | 1 year ago | |
Create CODE_OF_CONDUCT.md | 6 years ago | |
🤖 Adds license file | 6 years ago | |
Update README.md (#260) | 11 months ago | |
🚀 Adds Jest & Cypress tests of basic functionality | 6 years ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
🐛 Adds support for multiple editors per screen 🤖 Updates to the docs 🤖 Updates the logo | 6 years ago | |
🌈Replaces project logo | 6 years ago | |
Adds logos and more examples. Adds execution context | 6 years ago | |
V1.2.0 release (#261) * Update yarn.lock * 1.2.0 | 11 months ago | |
Add files via upload | 11 months ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago | |
Stricter Typescript Types (#253) * Enhance curve calculation in connection drawing and improve coordinate handling in Node component. Added conditional logic for curve generation based on node positions and updated attribute setting for connection paths. * Add TypeScript definitions for core components and utilities - Introduced FlumeCache class for managing ports and connections. - Added commentsReducer and nodesReducer with action types and action definitions. - Implemented connectionCalculator for handling port and connection calculations. - Updated TypeScript configuration for stricter type checking. - Enhanced utility functions for node and connection management. * Remove TypeScript definitions for various components and utilities - Deleted FlumeCache, commentsReducer, connectionCalculator, and other related TypeScript definitions. - Cleaned up unused interfaces and types across the codebase. - Streamlined the project structure by removing obsolete files. * Refactor imports in nodesReducer and typeBuilders for consistency - Removed redundant import of InputData in nodesReducer. - Added CheckboxControl import in typeBuilders for clarity and consistency in type definitions. * Update testing framework and dependencies in package.json and yarn.lock - Replaced react-scripts with jest for testing in package.json. - Added new test scripts for coverage and watch mode. - Updated various testing-related dependencies including @testing-library/react and jest. - Added new dependencies for babel-jest and identity-obj-proxy. - Updated yarn.lock to reflect changes in package versions and added new packages. * Enhance ESLint configuration and refactor reducers for improved code quality - Added 'react-hooks/exhaustive-deps' rule to ESLint configuration for better dependency management in React hooks. - Updated package.json to include 'eslint-config-react-app' for standardized linting. - Refactored nodesReducer, stageReducer, toastsReducer, and ColorPicker component to use named exports for consistency. - Improved usePrevious hook by correcting dependency array to track value changes accurately. - Cleaned up formatting in ssr.test.js for better readability. * Add `disableFocusCapture` prop to NodeEditor and Stage components - Introduced `disableFocusCapture` prop in NodeEditor and Stage interfaces to prevent focus capture when mousing over the editor. - Updated relevant components to handle the new prop, enhancing usability in complex applications. - Adjusted documentation to reflect the new prop and its functionality. * Create nasty-cups-raise.md | 1 year ago |

Flume

Guides & Examples
Install
npm install --save flume
Usage
Defining your nodes
Import FlumeConfig and use it to define the nodes and ports that will make up your node editor.
import { FlumeConfig, Controls, Colors } from "flume";
const flumeConfig = new FlumeConfig()
flumeConfig
.addPortType({
type: "number",
name: "number",
label: "Number",
color: Colors.red,
controls: [
Controls.number({
name: "num",
label: "Number"
})
]
})
.addNodeType({
type: "number",
label: "Number",
initialWidth: 150,
inputs: ports => [
ports.number()
],
outputs: ports => [
ports.number()
]
})
.addNodeType({
type: "addNumbers",
label: "Add Numbers",
initialWidth: 150,
inputs: ports => [
ports.number({name: "num1"}),
ports.number({name: "num2"})
],
outputs: ports => [
ports.number({name: "result"})
]
})
Rendering the node editor
To render the node editor, import NodeEditor and pass it your nodeTypes and portTypes from the configuration you created.
import React from 'react'
import { NodeEditor } from 'flume'
import config from './config'
const App = () => {
return (
<div style={{width: 600, height: 800}}> // Give the wrapper a width & height
<NodeEditor
nodeTypes={config.nodeTypes}
portTypes={config.portTypes}
/>
</div>
)
}
For more complete documentation visit: flume.dev
License
MIT © chrisjpatty
Introduction
Extract logic from your apps with a user-friendly node editor powered by React.
Customize your domain