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

@rchh/lowcode-plugin-datasource-pane

v1.0.13

Published

Lowcode Engine data source pane

Readme

Lowcode Engine - Data source pane plugin

Configures the data sources of a page.

An example of pluginProps

{
  importPlugins: [],
  exportPlugins: [],
  formComponents: {},
  tagSelector: () => {},
  dataSourceTypes: [
    {
      type: 'mopen',
      schema: {
        type: 'object',
        properties: {
          options: {
            type: 'object',
            properties: {
              uri: {
                title: 'api',
              },
              v: {
                title: 'v',
                type: 'string',
              },
              appKey: {
                title: 'appKey',
                type: 'string',
              },
            },
          },
        },
      },
    },
  ],
}

Using the preset data source types

import {
  DataSourceTypeFetch,
  DataSourceTypeJsonp,
  DataSourceTypeMtop,
} from '@rchh/lowcode-plugin-datasource-pane';

How to customize

Customizing data source types

Type definition

fetch, mtop and jsonp are built in, and custom types can be passed in.

type DataSourceType = {
  type: string;
  optionsSchema: JSONSchema6
};

Data source types must be extended within the constraints of the group specification. For now, extra fields may only be added under options.

For example, the mtop type needs an options.v (version) field.

formily components

Drill-down

Customizing data source info tags

Use the renderDataSourceInfoTags method to control what information a data source displays.

(dataSourceConfig) => {
  if (dataSourceConfig.type = 'fetch') {
    return [{
      type: 'primary',
      content: dataSourceConfig.type
    }];
  }
}

Customizing import plugins

Import component example

See pluginProps for how import components are wired in.

import { DataSourceImportPluginTest } from './DataSourceImportPluginTest';

{
  ...
    importPlugins: [
        {
            name: 'Import here',
            title: 'Import here',
            component: DataSourceImportPluginTest,
            componentProps: {
                onImport: (res) => {
                    console.log('ceshi ')

                },
                onCancel: () => {
                    console.log('ceshi2 ')

                }
            }
        }
    ],
        exportPlugins: [],
            formComponents: { },
  ...
}

// DataSourceImportPluginTest.jsx

/**
 * Source code import plugin
 * @todo associate types with the editor and provide detailed error messages
 */
import React, { PureComponent } from 'react';
import { Button } from '@alifd/next';
import _noop from 'lodash/noop';
import _isArray from 'lodash/isArray';
import _last from 'lodash/last';
import _isPlainObject from 'lodash/isPlainObject';
import { RuntimeDataSourceConfig as DataSourceConfig } from '@rchh/lowcode-datasource-types';
import { JSONSchema6 } from 'json-schema';
import type { ComponentType } from 'react';
export interface DataSourceType {
    type: string;
    schema: JSONSchema6;
    plugin?: ComponentType;
}
export interface DataSourcePaneImportPluginComponentProps {
    dataSourceTypes: DataSourceType[];
    onImport?: (dataSourceList: DataSourceConfig[]) => void;
    onCancel?: () => void;
}
export interface DataSourceImportPluginCodeProps
    extends DataSourcePaneImportPluginComponentProps {
    defaultValue?: DataSourceConfig[];
}
export interface DataSourceImportPluginCodeState {
    code: string;
    isCodeValid: boolean;
}
export class DataSourceImportPluginCode extends PureComponent<
    DataSourceImportPluginCodeProps,
    DataSourceImportPluginCodeState
> {
    handleComplete = () => {
        console.log('confirm')
    };
    onCancel = () => {
        console.log('cancel')
    };
    render() {
        return (
            <div className="lowcode-plugin-datasource-import-plugin-code">
                This code can be customized
                <p className="btns">
                    <Button onClick={this.onCancel}>Cancel</Button>
                    <Button type="primary" onClick={this.handleComplete}>
                        Confirm
                    </Button>
                </p>
            </div>
        );
    }
}

See DataSourceImportPluginCode for a concrete component view

demo screenshot Alt

Customizing export plugins

WIP

Event hooks

Dependencies

  • formily v2
  • xstate
  • manaco
  • react-dnd

Differences from the previous version

  • Supports exporting and custom export plugins
  • Supports sorting
  • Supports info tags
  • Better experience when editing object parameters
  • Supports expressions in field configuration

Contributing

Merge requests are welcome

Roadmap

  • Detail page drill-down
  • Internationalization support
  • Unit tests

References