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

@pisell/rsbuild-plugin-lowcode

v0.0.5

Published

Rsbuild plugin for low-code material development and build workflows.

Readme

@pisell/rsbuild-plugin-lowcode

@pisell/rsbuild-plugin-lowcode 是一个面向低代码物料场景的 Rsbuild 插件,提供:

  • dev 阶段本地调试与入口热更新
  • build 阶段多环境并行编译
  • 调试模式:支持将本地组件注入到线上低代码引擎进行实时调试

安装

pnpm add -D @pisell/rsbuild-plugin-lowcode

同时请确保工程中已安装并配置 @rsbuild/core

使用方式

rsbuild.config.js/ts 中注册插件:

import { defineConfig } from '@rsbuild/core';
import { pluginLowcode } from '@pisell/rsbuild-plugin-lowcode';

export default defineConfig({
  plugins: [
    pluginLowcode({
      library: 'PrivateMaterials',
      engineScope: '@alilc',
      lowcodeDir: 'lowcode',
      buildTarget: 'build',
    }),
  ],
});

更完整示例见:examples/rsbuild.config.js

Alt 调试模式

Alt 调试模式允许你在开发组件时,将本地正在开发的组件实时注入到线上低代码引擎中进行调试,无需发布即可测试组件效果。

配置

export default defineConfig({
  server: {
    port: 3000,  // dev server 端口
    https: true, // 线上 HTTPS 设计器调试时建议开启,供 HMR 使用 wss://
  },
  plugins: [
    pluginLowcode({
      library: 'MyComponent',
      
      // Alt 调试模式配置
      alt: {
        enabled: true,              // 启用 alt 调试模式
        port: 8899,                 // inject server 端口(默认 8899)
        openBrowser: true,          // 自动打开浏览器(默认 true)
        openUrl: 'https://lowcode-engine.cn/demo/demo-general/index.html?debug',
        usePrivateIp: false,        // 使用内网 IP(默认 false,使用 127.0.0.1)
      },
    }),
  ],
});

配置项说明

| 配置项 | 类型 | 默认值 | 说明 | |--------|------|--------|------| | alt.enabled | boolean | false | 是否启用 alt 调试模式 | | alt.port | number | 8899 | inject server 监听端口 | | alt.openBrowser | boolean | true | 是否自动打开浏览器 | | alt.openUrl | string | https://lowcode-engine.cn/demo/demo-general/index.html?debug | 自动打开的 URL | | alt.usePrivateIp | boolean | false | 是否使用内网 IP(用于跨设备调试) |

目录结构

.
├── index.js             # 包入口
├── src/                 # 所有功能代码与模板资源
│   ├── plugin.js
│   ├── environments.js
│   ├── logger.js
│   ├── constants.js
│   ├── entries.js
│   ├── assets.js
│   ├── inject/          # Alt 调试模式
│   │   ├── bootstrap.js # Alt 模式启动编排
│   │   ├── server.js    # Inject server (原生 http)
│   │   ├── registry.js  # 注册信息管理
│   │   └── utils.js     # 工具函数
│   ├── utils/
│   ├── templates/
│   └── public/
├── examples/            # 示例配置
├── README.md
└── package.json