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

iuvc-tech-panel

v1.0.3

Published

IUVC tech panel web component with configurable color and optional meteor border animation.

Readme

通用组件封装,基于 Web Components

iuvc-tech-panel

科技风面板容器:Canvas 绘制边框、四角装饰与可选的沿边框顺时针流星动画;正文通过 <slot> 插入,画布在内容下层。

安装

npm install iuvc-tech-panel

引入

ESM(推荐):

import "iuvc-tech-panel";

CommonJS:

require("iuvc-tech-panel");

TypeScript

包内提供 index.d.ts<iuvc-tech-panel> 的标签属性会有类型提示。

用法示例

属性统一为 短横线(kebab-case),与 HTML / 常见 Web Component 习惯一致,可读性好。

<div style="height: 300px; margin: 0 40px;">
  <iuvc-tech-panel
    border-width="2"
    bg-color="rgba(7,26,80,0.5)"
    main-color="#ea00ff"
    meteor
    meteor-opacity="0.85"
  >
    <div style="padding: 16px; color: white;">面板内容</div>
  </iuvc-tech-panel>
</div>

border-width="0" 时:不绘制边框描边,四角与流星上的 Canvas 阴影关闭(光晕不显示),流星轨迹线仍可显示(若开启 meteor)。

属性说明

| 属性 | 类型 | 说明 | |------|------|------| | main-color | string | 主色,驱动边框、角饰、流星配色。支持 #rgb#rrggbbrgb()rgba()。未写时可用宿主 CSS 变量 --tech-panel-main-rgbr, g, b 逗号分隔)或默认 #00eaff。 | | border-width | string | number | 边框宽度(px),0–64,默认 2。流星沿该边框描边的中心线运动;为 0 时轨迹沿组件最外圈矩形。 | | bg-color | string | 边框内侧矩形区域的画布填充色(如 rgba(0,0,0,0.4))。不写或空字符串则该区域透明。 | | meteor | boolean | string | 是否启用流星动画。推荐取值truefalse''(HTML 布尔 meteor)、'true''false''meteor'。未写属性则关闭。 | | meteor-opacity | string | number | 流星整体不透明度 0–1,默认 1;为 0 时不绘制流星。 |

类型别名见包内 index.d.ts(如 IuvcTechPanelMeteor)。运行时代码仍兼容历史上其它字符串同义写法(如 1yesoff),但类型定义以表中推荐取值为准。

React / JSX

短横线属性在 JSX 里不能直接写成 main-color={...}(会被解析为减法),请用 展开对象 传入:

<iuvc-tech-panel
  {...{
    'main-color': '#ea00ff',
    'border-width': 2,
    'bg-color': 'rgba(7,26,80,0.5)',
    meteor: '',
    'meteor-opacity': 0.85,
  }}
>
  <div style={{ padding: 16, color: '#fff' }}>内容</div>
</iuvc-tech-panel>