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

@xiangheng08/qrcode

v0.0.2

Published

一个基于 Web Components 的轻量级二维码生成器,支持纠错码功能。

Downloads

15

Readme

@xiangheng08/qrcode

简介

一个基于 Web Components 的轻量级二维码生成器,支持纠错码功能。

功能特性

  • 生成标准二维码
  • 支持纠错码级别 (L/M/Q/H)
  • 可配置二维码版本 (1-40)
  • 可自定义像素大小和颜色
  • 支持添加Logo
  • 支持遮罩层
  • 基于 Lit 的 Web Components 实现
  • 支持群二维码(xh-group-qrcode)
  • 支持个人名片二维码(xh-vcard-qrcode)

开发文档

开发文档

使用方法

标准二维码

<xh-qrcode
  value="hello world!"
  version="5"
  errorcorrectionlevel="M"
  pixelsize="10"
  color="#000"
  background="#fff"
  logo="logo.png"
  logoscale="0.2"
  logopadding="0.1"
  mask
>
</xh-qrcode>

群二维码

<xh-group-qrcode
  value="群聊邀请链接"
  width="400"
  groupavatarmode="grid"
  groupavatar="group-avatar.jpg"
  groupname="技术交流群"
  tips="扫描二维码加入群聊"
>
</xh-group-qrcode>

个人名片二维码

<xh-vcard-qrcode
  value="联系方式"
  width="400"
  avatar="avatar.jpg"
  name="张三"
  description="前端工程师"
  tips="扫描二维码查看联系方式"
>
</xh-vcard-qrcode>

构建

npm run build

开发

npm run dev

来源声明

代码来源

lib/core 目录下的代码来源于 node-qrcode获取时的提交版本),由 lingma 转换为 TypeScript 并将其中的注释翻译为中文。

The code in the lib/core directory originates from node-qrcode (commit at the time of acquisition), converted to TypeScript and translated comments into Chinese by lingma.

Avatars

src/assets/avatarsdocs/public/images/avatars 目录下的头像来源于头像库

src/assets/avatarsdocs/public/images/avatars 目录下的头像仅用于学习/展示,本项目不将其用于商业用途。其他使用者请注意:从本仓库获取的这些头像请勿随意使用,若因此造成任何法律风险与本项目和本项目作者无关。