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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@jdcfe/legao

v2.0.1

Published

Lightweight, Logic-focused React Components, Power By TypeScript & Legao UI

Readme

@jdcfe/legao

LEGAO React

Lightweight, Logic-focused React Components, Power By TypeScript & Legao UI

安装与使用

安装与使用请移步我们的文档站

开发

代码结构

源码均在 src 目录内。每个组件有自己的子目录。最终所有组件统一在 src/index.js 中 export 出来。

开发

RUN yarn dev

构建文档站

RUN yarn build:site

Commit Message

RUN yarn commit

构建

RUN yarn build

组件文档

基于 Storybook 中 addons-docs mdx语法,请在组件同级创建 stories 目录,新建同名说明文档,ex. Button.stories.mdx

代码规范

使用 eslint 规范

编辑器

我们推荐使用 Visual Studio Code

为了更好的开发体验,我们建议使用 prettier 进行在开发和提交阶段进行代码格式化,配置如下:

...
"[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true
},
"[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true
},
"[mdx]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true
},
...

测试

执行 yarn test 运行单元测试。

我们的单元测试使用 Facebook 开源的 jest 框架编写。如果你之前没接触过,请移步 jest 文档学习。

** ❤ 作为一名靠谱的工程师,请为你提交的修改编写相应的单元测试 ❤ **

讨论 / 问题反馈 / 建议

请移步 issue 页面