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

best-lowcode-runtime

v0.2.3

Published

BEST React low-code runtime, CRUD page renderer, and UI components.

Readme

best-lowcode-runtime

BEST 的 React 低代码运行时统一入口,包含 Schema 驱动的 CRUD 页面、运行时 Registry 与基础 UI 组件。

安装

npm install best-lowcode-runtime

本包将 React、React DOM、Ant Design、Ant Design Pro Components 和 Day.js 声明为 peer dependencies;应用应使用与项目兼容的版本安装它们。

快速开始

import 'best-lowcode-runtime/style.css'
import {
  BestCrudPage,
  BestProvider,
  CRUD_SCHEMA_ID,
  CRUD_SCHEMA_VERSION,
  type CrudPageSchema
} from 'best-lowcode-runtime'

const schema = {
  $schema: CRUD_SCHEMA_ID,
  version: CRUD_SCHEMA_VERSION,
  id: 'customer-list',
  kind: 'crud',
  title: '客户列表',
  dataSource: { list: 'customer.list' },
  table: {
    rowKey: 'id',
    columns: [{ field: 'name', title: '名称' }]
  }
} satisfies CrudPageSchema

export function CustomerPage() {
  return (
    <BestProvider registry={{ services: { 'customer.list': async () => ({ list: [], total: 0 }) } }}>
      <BestCrudPage schema={schema} />
    </BestProvider>
  )
}

开发期校验入口

通用表单和数据能力

Schema 支持 remoteSelect,通过 Registry Service 提供防抖搜索数据:

{
  field: 'owner',
  label: '负责人',
  component: 'remoteSelect',
  remoteService: 'user.search',
  searchField: 'keyword',
  labelField: 'name',
  valueField: 'id'
}

字段可声明 requiredtypeminmaxminLengthmaxLengthpattern 等通用规则。 createBestCrudAdapternormalizeBestValues 可用于统一清理空字符串、转换创建/更新 payload,提交期间 Runtime 会自动显示 loading 并防止重复提交。

CLI 或工具链可从 best-lowcode-runtime/dev 导入不依赖页面渲染的能力:

import { getBuiltinCapabilities, validateUnknownCrudPageSchema } from 'best-lowcode-runtime/dev'

发布内容

发布包只包含编译后的 dist 与本 README。npm pack --dry-run 可用于在不发布的情况下检查最终包内容。

本包当前标记为 UNLICENSED;在对外公开前,应由代码所有方确定正式许可证。