Node Catalog
Node kinds defined once in a BlowNodeRegistry - name, category, tags, ports, starting data, validation and how they run - and used everywhere: a searchable catalog with favourites and recent picks, nodes dragged in from it, a Switch whose outputs follow its settings, a deprecated kind upgraded in place, and a run through each kind's own handler.
Press Tab to move between the nodes and edges of the diagram.
Press Enter or Space to select it, Shift with Enter to add it to the selection, the arrow keys to move the selected nodes, Delete to remove them and Escape to clear the selection. Press C to start a connection from it.
Press Enter or Space to select it, Delete to remove it and Escape to clear the selection. Press C to move its end to another node.
bit BlowTry it
- Type api or mail in the search box: kinds are found by name, tag, category and description. Pick a category chip to narrow the list. Hidden and deprecated kinds are never offered.
- Drag a kind onto the canvas, or click it to add it in the middle: the node gets the kind's label, size, ports and starting settings. What you add appears under Recent; ☆ marks a favourite, listed first.
- Select the Switch and change its cases to
low,mid,high: its outputs follow; remove a case and the edge from it is removed with it. - Old webhook is a deprecated kind - a warning in Problems. Press Upgrade deprecated and it becomes an HTTP request, its settings carried over.
- Clear the url of the HTTP request: the kind's own validation reports it. Press ▶ Run to run the graph through each kind's handler.
How it works
new BlowNodeRegistry().Register(new BlowNodeDefinition { Type, Label, Category, Tags, Description, Icon, Ports, Width, CreateData, Validate, Run, ... })defines each kind once.registry.Create(type, position)makes a node of it, ports and data copied.registry.Search(query, category)ranks kinds asBlowGraphSearchranks nodes;registry.Categorieslists the groups. Recent and favourite kinds are the page's own state.DynamicPorts = node => ...computes ports from a node's settings;registry.RefreshPorts(node, edges)applies them and returns the edges left without a port.Deprecated,ReplacedByandMigrateretire a kind;registry.Upgrade(nodes)converts its nodes.registry.ValidationRule()reports unknown and deprecated kinds and runs each kind'sValidate.new BlowRunner().Use(registry)runs every node through its kind'sRunhandler.