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

@yingzhixiaoyi/ui-web-components

v0.0.1

Published

Standalone Custom Elements for Justin loading UI

Readme

@yingzhixiaoyi/ui-web-components

将加载态能力作为标准 Custom Elements 提供给 Vue/Vite、普通 HTML 和远程组件页面。

能力边界

  • justin-loading-btn:loading、disabled、loading-mode 和原生 click。
  • justin-loading-page:text、min-height 和可访问状态标记。
  • Shadow DOM 样式隔离;不执行用户输入 HTML,不依赖宿主 Vue 应用。

本包不负责接口请求、业务状态、微前端通信或远程脚本安全策略。

使用

import { registerJustinUIWebComponents } from '@yingzhixiaoyi/ui-web-components'

registerJustinUIWebComponents()
<justin-loading-page text="正在加载" min-height="160px"></justin-loading-page>
<justin-loading-btn loading>提交</justin-loading-btn>

HTML 页面可加载 dist/index.iife.js 后调用 JustinUIWebComponents.registerJustinUIWebComponents()。

Vue 运行时说明

本包为了让 Custom Elements 在普通 HTML、远程组件和非 Vue 宿主中独立运行,会将 Vue 打包进产物;它不是普通 Vue 组件库,也不会复用业务项目的 Vue 实例。若业务项目只使用 Vue 组件,应使用 @yingzhixiaoyi/ui,避免同时引入两份 Vue 运行时。