@tsai-pe/nodes
v0.1.4
Published
Pipeline Editor — node-type registry: control-flow ports, node catalog and param schemas.
Maintainers
Readme
@tsai-pe/nodes
The node-type registry of
Pipeline Editor — pure
TypeScript, read by both the editor and (eventually) an engine. Depends only on
@tsai-pe/models.
Install
npm i @tsai-pe/nodesExports
- Catalog contract —
NodeCatalog,NodeTypeSpec,ParamFieldandParamType. Concrete catalogs are supplied by a backend/host app. - Ports from specs —
derivePorts: dynamic output ports can be derived from node data, e.g. switch cases. - Catalog helpers —
createNodeCatalog,defaultData,fieldGroups,EMPTY_NODE_CATALOG. - Expression help —
variablePaths(value): flatten a node's output into the dotted/bracketed variable paths downstream expressions may reference.
import { createNodeCatalog, derivePorts, variablePaths } from '@tsai-pe/nodes';License
MIT © Mikhail Tsai
