GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CibiAananth/cuddly-engine: A react flow chart builder with custom nodes

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.cjs
.eslintrc.cjs
 
 
.gitignore
.gitignore
 
 
.prettierrc.json
.prettierrc.json
 
 
README.md
README.md
 
 
index.html
index.html
 
 
jsconfig.json
jsconfig.json
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
scratch.js
scratch.js
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

Flow builder

This project was generated with Vite version 4.3.8.

Development server

Run npm run dev for a dev server. Navigate to http://localhost:9000/. The app will automatically reload if you change any of the source files.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.

Steps to create and add a new custom node to the flow builder

  1. Create a new file in src/components/Nodes folder with the name of the node. For example src/components/Nodes/MyCustomNode.jsx
  2. Add the node's Settings, Node and NodeBlock components and its factory function. Please refer the existing nodes for the structure.
  3. Add the new node to nodeTypes and it's factory function to nodeCreator in src/components/Flow.jsx

The philosophy followed throughout the project is

  • Keep the components as dumb as possible and move the logic to its corresponding helper functions. This helps in reusing the components in different contexts. For example, the settings for each node is dynamic and bound to the node object so the Sidebar component is kept dumb and simply renders the settings component passed to it.

  • Colocate the node and its pet components in the same file. For example, the MessageNode component and its helper functions are colocated in the same file src/components/Nodes/MessageNode.jsx

About

A react flow chart builder with custom nodes

Topics

flow-chartflowbuilderreactreact-flow

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.