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

@ray-js/smart-ui

v2.12.1-beta-2

Published

轻量、可靠的智能小程序 UI 组件库

Readme

English | 简体中文

@ray-js/smart-ui

CI status coverage npm down ray-js lodash TS

Introduction

@ray-js/smart-ui is a React component library based on the Ray framework and @tuya-miniapp/smart-ui, designed to provide lightweight and reliable UI components that meet the mobile design specifications of Tuya MiniApp. By combining Ray's specification adaptation middleware and built-in complete TS types, we offer a full set of React components suitable for Tuya MiniApp, enabling developers to quickly build mobile applications that comply with design specifications.

Preview

Scan the QR code below to experience the component library examples.

Before Using

Before using Smart UI, make sure you have studied the official Tuya MiniApp Ray Development Overview and Ray Component Introduction.

Installation

# Install via yarn (recommended)
yarn add @ray-js/smart-ui

# Install via npm
npm i @ray-js/smart-ui

Using Components

Take the Button component as an example

import { Button } from '@ray-js/smart-ui';

export default function Demo() {
  return <Button type="info">Info Button</Button>;
}

Dynamic On-Demand Import (Recommended)

Considering the project's on-demand introduction and overall size issues, the above import method will lead to some component style file residuals affecting the package size. Therefore, we recommend using the on-demand import plugin, which will automatically parse import { Button } from '@ray-js/smart-ui'; into import { Button } from '@ray-js/smart-ui/es/button';.

  1. Environment Requirements

    • >= @ray-js/[email protected]
    • esbuild build mode (does not support webpack mode)
    • Use ESModule import syntax for import
    • SmartUI version 2.4.0 and above
  2. Simply introduce SmartUIAutoImport in the project file ray.config.ts:

import { RayConfig } from '@ray-js/types';
import SmartUIAutoImport from '@ray-js/smart-ui/lib/auto-import';

const config: RayConfig = {
  ...
  importTransformer: [SmartUIAutoImport],
};
module.exports = config;
The on-demand import plugin will not parse content inside node_modules, so if you reference or develop SmartUI secondary encapsulation npm packages, you need on-demand import resources internally; otherwise, it will cause a full import of the SmartUI component library!
You can use Ray version 1.8.0-beta.12, which adds the Ray doctor command to check the health of project dependencies!

Preview in Developer Tools

# Install project dependencies
$ yarn

Open Tuya MiniApp Tools and add the example directory to preview the examples.

Basic Library Version

@ray-js/smart-ui provides stable support starting from Tuya MiniApp basic library version 2.19.0, @ray-js/ray@^1.5.1, and IDE 0.6.5.

Related Links

SmartUI Component Library Official Website
SmartUI GitHub
MiniApp SmartUI GitHub
MiniApp Community Forum
Ray Official Website
Ray Material Market
Public Source Collection of Materials and Templates

Changelog

This project follows the Angular Style Commit Message Conventions. For the update log, please refer to Release (starting from version 2.5.1)

Official Website Changelog

License

This project is licensed under the MIT license. Please feel free to enjoy and participate in open-source.