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

@1214dreams1214/zmy_ui

v2.1.0

Published

a ui component library for team

Downloads

20

Readme

性能优化

table部分

在 Table 组件中针对 1w+ 数据场景,使用虚拟滚动+分页优化渲染。通过 Chrome Performance Profiler 对比:

  • 首屏渲染时间从 1.6s 降低至 0.5s(提升 3 倍);

  • JS Heap 内存占用从 115MB 降低至 70MB(下降 39%);

  • DOM 节点数从 14 万减少至 571(下降 99%); 对比图: rowTable Table

from部分

基于 React Context 与自定义 Hook 实现了一个轻量级表单系统,支持字段注册与双向绑定机制。 每个字段通过 registerField 订阅全局 store,当仓库值变更时仅局部更新对应组件,实现精准渲染与受控数据流。 同时提供外部 form 实例注入能力,支持受控与非受控两种表单使用模式。支持局部渲染优化: • 使用字段注册与 onStoreChange,实现 Form.Item 仅渲染受影响字段 • 对比普通受控表单,动态输入 30+ 字段时渲染次数减少 >90% • Chrome Performance 面板验证优化,单次操作 JS 执行时间下降约 70%,页面 FPS 平稳保持 60+