{"id":13459604,"url":"https://github.com/didi/LogicFlow","last_synced_at":"2025-03-24T18:30:56.007Z","repository":{"id":37385976,"uuid":"324100021","full_name":"didi/LogicFlow","owner":"didi","description":"A flow chart editing framework focusing on business customization.  专注于业务自定义的流程图编辑框架，支持实现脑图、ER图、UML、工作流等各种图编辑场景。","archived":false,"fork":false,"pushed_at":"2024-10-19T09:38:00.000Z","size":45886,"stargazers_count":8328,"open_issues_count":117,"forks_count":1103,"subscribers_count":96,"default_branch":"master","last_synced_at":"2024-10-19T11:38:42.742Z","etag":null,"topics":["bpmn","diagram","diagramming","didi","flow","flowchart","graph","javascript","javascript-diagramming-library","mvvm","svg","typescript","visualization"],"latest_commit_sha":null,"homepage":"https://site.logic-flow.cn","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/didi.png","metadata":{"files":{"readme":"README.en-US.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-24T07:55:38.000Z","updated_at":"2024-10-19T09:38:01.000Z","dependencies_parsed_at":"2022-07-13T18:21:04.977Z","dependency_job_id":"5197bee9-0de5-4535-a1a2-f13a8f9aab1b","html_url":"https://github.com/didi/LogicFlow","commit_stats":{"total_commits":1558,"total_committers":99,"mean_commits":"15.737373737373737","dds":0.8305519897304237,"last_synced_commit":"a9a28cfc76261dccd3d00013147b360702d6d563"},"previous_names":[],"tags_count":646,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2FLogicFlow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2FLogicFlow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2FLogicFlow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2FLogicFlow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didi","download_url":"https://codeload.github.com/didi/LogicFlow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221889658,"owners_count":16898582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bpmn","diagram","diagramming","didi","flow","flowchart","graph","javascript","javascript-diagramming-library","mvvm","svg","typescript","visualization"],"created_at":"2024-07-31T10:00:22.129Z","updated_at":"2024-10-29T05:31:09.697Z","avatar_url":"https://github.com/didi.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://site.logic-flow.cn\" target=\"_blank\"\u003e\n    \u003cimg\n      src=\"https://site.logic-flow.cn/logo.png\"\n      alt=\"LogicFlow logo\"\n      width=\"100\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@logicflow/core\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@logicflow/core\" alt=\"Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@logicflow/core\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/@logicflow/core\" alt=\"Download\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/didi/LogicFlow/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/@logicflow/core\" alt=\"LICENSE\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n[简体中文](/README.md) | English\n\nLogicFlow is a flowchart editing framework , providing a series of functions necessary for flowchart interaction and editing, as well as simple and flexible node customization, plug-in and other expansion mechanisms, so that we can quickly meet the needs of class flowcharts in business systems.\n\n## Features\n\n- High customizability：With the intuitive visual interface provided by LogicFlow, users can easily create, edit, and manage complex logical flowcharts.\n- Rich Plug-ins: Built-in rich plug-ins, users can also customize complex plug-ins according to their own needs to achieve business requirements.\n- The Visualization model：Users can customize nodes, connectors, and styles to suit their needs, creating custom logical flowcharts that match specific use cases.\n- Self-executing engine: The execution engine supports browser-side flow chart logic, providing new ideas for code-free execution.\n- Data convertible：Supports the conversion of LogicFlow data to BPMN, Turbo, and other backend execution engine data structures.\n\n## Installation\n\n```shell\n# npm\n$ npm install @logicflow/core @logicflow/extension --save\n\n# yarn\n$ yarn add @logicflow/core @logicflow/extension\n\n# pnpm\n$ pnpm add @logicflow/core @logicflow/extension\n```\n\n## Usage\n\n```html\n\u003c!-- LogicFlow 容器 DOM--\u003e\n\u003cdiv id=\"container\"\u003e\u003c/div\u003e;\n```\n```typescript\n// 准备数据\nconst data = {\n  // 节点\n  nodes: [\n    {\n      id: '21',\n      type: 'rect',\n      x: 100,\n      y: 200,\n      text: 'Rect Node',\n    },\n    {\n      id: '50',\n      type: 'circle',\n      x: 300,\n      y: 400,\n      text: 'Circle Node',\n    },\n  ],\n  // 边\n  edges: [\n    {\n      type: 'polyline',\n      sourceNodeId: '50',\n      targetNodeId: '21',\n    },\n  ],\n};\n// 渲染画布\nconst lf = new LogicFlow({\n  container: document.querySelector('#container'),\n  width: 700,\n  height: 600,\n});\n\nlf.render(data);\n```\n\n## Links\n\n[Official Website](https://site.logic-flow.cn/en/)\n\n- [Getting Started](https://site.logic-flow.cn/en/tutorial/get-started)\n- [Examples](https://site.logic-flow.cn/en/examples)\n- [Articles](https://site.logic-flow.cn/en/article/architecture-of-logicflow)\n\n---\n- [CHANGELOG](https://github.com/didi/LogicFlow/releases)\n- [Issue Template](https://github.com/didi/LogicFlow/issues/new/choose)\n\n## [Development](/CONTRIBUTING.en-US.md)\n\n```shell\n# install deps and build\n$ pnpm install\n\n# enter the specified project for development and debugging\ncd packages/core\npnpm run build:watch\n\n# start example to develop\ncd examples/feature-examples\npnpm run start\n```\n\n## Contributing\n\nTo become a contributor, please follow our [contributing guide](/CONTRUBUTING.en-US.md). If you are an active contributor, you can apply to be a outside collaborator.\n\n\u003ca href=\"https://github.com/didi/LogicFlow/graphs/contributors\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/didi/LogicFlow/master/CONTRIBUTORS.svg\" alt=\"Contributors\" /\u003e\n\u003c/a\u003e\n\n## License\n\nThe scripts and documentation in this project are released under the [Apache-2.0 License](/LICENSE).\n\n","funding_links":[],"categories":["技术方案","语言资源库","TypeScript"],"sub_categories":["typescript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2FLogicFlow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidi%2FLogicFlow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2FLogicFlow/lists"}