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

@eosjs/components

v0.1.5

Published

> 🎨 轻量级 Web Components 组件库

Readme

@eosjs/components

🎨 轻量级 Web Components 组件库

npm version npm downloads license

基于原生 Web Components 技术构建的轻量级组件库,支持在任何框架中使用。

✨ 特性

  • 🚀 框架无关 - 可在 React、Vue、原生 HTML 等任何环境中使用
  • 📦 轻量小巧 - 零依赖,打包体积小
  • 🎯 开箱即用 - 简单导入即可使用
  • 🌈 TypeScript 支持 - 完整的类型定义

📦 安装

npm install @eosjs/components
yarn add @eosjs/components
pnpm add @eosjs/components

🚀 快速开始

原生 HTML

<!DOCTYPE html>
<html>
  <head>
    <script type="module">
      import { registerComponents } from "@eosjs/components";
      registerComponents();
    </script>
  </head>
  <body>
    <eos-button>点击我</eos-button>
  </body>
</html>

React

import { useEffect } from "react";
import { registerComponents } from "@eosjs/components";

// 在应用入口注册一次
registerComponents();

function App() {
  return <eos-button>点击我</eos-button>;
}

Vue

<script setup>
import { registerComponents } from "@eosjs/components";

// 在应用入口注册一次
registerComponents();
</script>

<template>
  <eos-button>点击我</eos-button>
</template>

📚 组件列表

  • Button (eos-button) - 按钮组件
  • Carousel (eos-carousel) - 类似抖音 Web 版风格的轮播图组件,支持自动播放、手动导航、触摸滑动等功能
  • Image (eos-image) - 功能强大的图片组件,支持懒加载、BlurHash 占位符、多种加载策略等
  • 更多组件开发中...

📖 文档

访问 完整文档 查看更多示例和 API 说明。

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 License

MIT © IceyWu