nocode-js/sequential-workflow-designer

★ 1,487⑂ 0

Customizable no-code component for building flow-based programming applications or workflow automation. 0 external dependencies. Check out https://nocode-js.com

About nocode-js/sequential-workflow-designer

nocode-js/sequential-workflow-designer is an open-source project on GitHub, mainly written in TypeScript. Customizable no-code component for building flow-based programming applications or workflow automation. 0 external dependencies. Check out https://nocode-js.com It currently holds 1,487 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

Git Homed tracks it on the Automation Agent Trending board and on the AI Automation Agent Trending list.

GitHub Repository Details

Repository nocode-js/sequential-workflow-designer · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Sequential Workflow Designer

Sequential Workflow Designer

Build Status License: MIT View this project on NPM

A sequential workflow designer with no external dependencies for web applications. It is written in pure TypeScript and uses SVG for rendering. This designer is not associated with any workflow engine; it is fully generic. You can use it to create any kind of application, from graphical programming languages to workflow builders.

Features:

📝 Check the documentation for more details.

🤩 Don't miss the pro version.

👀 Examples

Pro:

👩‍💻 Integrations

🚀 Installation

To use the designer, add the JS/TS and CSS files to your project.

NPM

Install this package with the NPM command:

npm i sequential-workflow-designer

To import the package:

import { Designer } from 'sequential-workflow-designer';

If you use css-loader or similar, you can add CSS files to your bundle:

import 'sequential-workflow-designer/css/designer.css';
import 'sequential-workflow-designer/css/designer-light.css';
import 'sequential-workflow-designer/css/designer-soft.css';
import 'sequential-workflow-designer/css/designer-dark.css';

To create the designer, write the code below:

// ...
Designer.create(placeholder, definition, configuration);

CDN

Add the code below to the head section of your HTML document.


  ...

Create the designer with:

sequentialWorkflowDesigner.Designer.create(placeholder, definition, configuration);

🎬 Usage

Check the examples directory.

import { Designer } from 'sequential-workflow-designer';

const placeholder = document.getElementById('placeholder');

const definition = { properties: { myProperty: 'my-value', // root properties... }, sequence: [ // steps... ], };

const configuration = { theme: 'light', // optional, default: 'light' isReadonly: false, // optional, default: false undoStackSize: 10, // optional, default: 0 - disabled, 1+ - enabled

steps: { // all properties in this section are optional

iconUrlProvider: (componentType, type) => { return icon-${componentType}-${type}.svg; },

isDraggable: (step, parentSequence) => { return step.name !== 'y'; }, isDeletable: (step, parentSequence) => { return step.properties['isDeletable']; }, isDuplicable: (step, parentSequence) => { return true; }, canInsertStep: (step, targetSequence, targetIndex) => { return targetSequence.length < 5; }, canMoveStep: (sourceSequence, step, targetSequence, targetIndex) => { return !step.properties['isLocked']; }, canDeleteStep: (step, parentSequence) => { return step.name !== 'x'; }, },

validator: { // all validators are optional

step: (step, parentSequence, definition) => { return /^[a-z]+$/.test(step.name); }, root: definition => { return definition.properties['memory'] > 256; }, },

toolbox: { isCollapsed: false, groups: [ { name: 'Files', steps: [ // steps for the toolbox group ], }, { name: 'Notification', steps: [ // steps for the toolbox group ], }, ], },

editors: { isCollapsed: false, rootEditorProvider: (definition, rootContext, isReadonly) => { const editor = document.createElement('div'); // ... return editor; }, stepEditorProvider: (step, stepContext, definition, isReadonly) => { const editor = document.createElement('div'); // ... return editor; }, },

controlBar: true, contextMenu: true, };

const designer = Designer.create(placeholder, definition, configuration); designer.onDefinitionChanged.subscribe(event => { // ... });

You can hide default UI components by setting the corresponding configuration property to false.

const configuration = {
  toolbox: false,
  editors: false,
  controlBar: false,
  contextMenu: false,
  // ...
};

💡 License

This project is released under the MIT license.

GitHub Stars & Activity

1,487Stars
0Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars1,487
Forks0
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

n8n-io / n8n

TypeScript★ 212,778⑂ 0
→
2

microsoft / playwright

TypeScript★ 101,528⑂ 0
→
3

simstudioai / sim

TypeScript★ 30,248⑂ 0
→
4

Budibase / budibase

TypeScript★ 28,465⑂ 0
→
5

apify / crawlee

TypeScript★ 26,632⑂ 0
→
6

activepieces / activepieces

TypeScript★ 25,830⑂ 0
→
7

appium / appium

TypeScript★ 22,284⑂ 0
→
8

getmaxun / maxun

TypeScript★ 18,602⑂ 0
→

More Trending Repositories