npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

liteflow-editor-client

v1.0.21

Published

LiteFlow EL-Expression Visual Editor

Readme

liteflow-editor-client

NPM version NPM downloads

🎨 liteflow-editor-client 是一款用于可视化编辑 LiteFlow EL 表达式的组件库,帮助你更直观地设计、配置和管理工作流规则。


✨ 特性

  • 🧩 拖拽式表达式编辑体验,所见即所得
  • ⚙️ 支持复杂嵌套逻辑、变量引用、函数调用等表达式配置
  • 📦 组件封装灵活,易于集成到任意 React 项目中
  • 🔌 支持扩展插件机制,定制你的表达式构建逻辑

📦 安装

使用 npm,yarn 或者 pnpm 安装:

npm install liteflow-editor-client
yarn add liteflow-editor-client
# 或者
pnpm i liteflow-editor-client

🚀 快速开始

import { LiteFlowEditor, requestController } from 'liteflow-editor-client';
import React, { FC } from 'react';

const Authorization = 'token:8f6dd867e9434612bbeda04b53cc290f';

const getChainPage = (data?: any) => {
  return requestController('/lon/api/v2/aiqa/mgr/liteflowChain/getPage', {
    method: 'POST',
    data: data ?? {},
    headers: {
      Authorization,
    },
  });
};

const getCmpList = (params?: any) => {
  return requestController('/lon/api/v2/aiqa/chat/cmpManager/getCmpList', {
    method: 'GET',
    params,
    headers: {
      Authorization,
    },
  });
};

const getChainById = (data?: any) => {
  return requestController(
    '/lon/api/v2/aiqa/mgr/liteflowChain/getLiteflowChain',
    {
      method: 'POST',
      data: data ?? {},
      headers: {
        Authorization,
      },
    },
  );
};

const addChain = (data?: any) => {
  return requestController(
    '/lon/api/v2/aiqa/mgr/liteflowChain/addLiteflowChain',
    {
      method: 'POST',
      data: data ?? {},
      headers: {
        Authorization,
      },
    },
  );
};

const updateChain = (data?: any) => {
  return requestController(
    '/lon/api/v2/aiqa/mgr/liteflowChain/updateLiteflowChain',
    {
      method: 'POST',
      data: data ?? {},
      headers: {
        Authorization,
      },
    },
  );
};

const deleteChain = (data?: any) => {
  return requestController(
    '/lon/api/v2/aiqa/mgr/liteflowChain/deleteLiteflowChain',
    {
      method: 'POST',
      data: data ?? {},
      headers: {
        Authorization,
      },
    },
  );
};

const Demo: FC = () => (
  <LiteFlowEditor
    style={{
      height: '800px',
    }}
    getCmpList={getCmpList}
    getChainPage={getChainPage}
    getChainById={getChainById}
    addChain={addChain}
    updateChain={updateChain}
    deleteChain={deleteChain}
  />
);

export default Demo;

⚙️ Props 说明

| Prop | 类型 | 必填 | 描述 | | -------------- | -------------------------------- | ---- | -------------------------- | | style | CSSProperties | 否 | 编辑器容器的样式 | | className | string | 否 | 编辑器容器的样式 | | getCmpList | (params?: any) => Promise<any> | 否 | 获取组件列表的接口 | | getChainPage | (data?: any) => Promise<any> | 否 | 获取链路分页数据的接口 | | getChainById | (data?: any) => Promise<any> | 否 | 根据 ID 获取链路详情的接口 | | addChain | (data?: any) => Promise<any> | 否 | 添加链路的接口 | | updateChain | (data?: any) => Promise<any> | 否 | 更新链路的接口 | | deleteChain | (data?: any) => Promise<any> | 否 | 删除链路的接口 |

特别注意 ⚠️

必须在样式中指定高度

📚 示例与文档

更多用法和在线示例,请查看文档站点:📘 查看文档


🛠 本地开发

# 克隆项目
git clone https://github.com/Cooooooler/liteflow-editor-client-dumi.git
cd liteflow-editor-client-dumi

# 安装依赖
pnpm install

# 启动开发环境
pnpm dev

📄 License

MIT


🙌 致谢

由于原项目有性能问题,接口深度融合问题以及依赖版本较老并没有升级,本项目解决了这些问题并优化了操作。 项目来源 本项目受到 X6Monaco Editor 的启发和支持。