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

@qian-kun/qrcode-decoder

v0.1.0

Published

二维码解析器,上传图片本地解码,支持 QR / Data Matrix / Aztec 等多码制,结果一键复制。

Readme

二维码解析器(@qian-kun/qrcode-decoder)

QK 工具箱子窗口应用:上传二维码图片,本地解码识别内容。

功能

  • 点击或拖拽上传二维码图片(PNG / JPG / JPEG / GIF / WebP / BMP,最大 10MB)
  • 本地解码(基于 zxing-js,开启 TRY_HARDER),图片不上传到服务器
  • 支持多码制:QR Code / Data Matrix / Aztec / PDF417 / Code128 等
  • 对带 Logo 的二维码、彩色、低对比度等场景鲁棒(zxing 的 HybridBinarizer + 多次定位比 jsQR 更强)
  • 自动识别内容类型:URL 链接 / WiFi / 联系人 / 邮件 / 电话 / 短信 / 纯文本
  • 结果一键复制;URL 可在新窗口打开

开发

npm install        # 安装依赖
npm run dev        # 仅前端开发(Vite,默认端口 1420,需注意与 Shell 区分)
npm run build      # vue-tsc 类型检查 + vite build + 复制 icon.png 到 dist/
npm run pack       # npm pack 打包 tgz
npm run publish    # 构建并发布到 npm

技术说明

  • 不依赖摄像头:Tauri 子窗口走 qkapp:// 自定义协议,非安全上下文,getUserMedia 不可用,故仅提供上传图片方式。
  • 解码全在浏览器本地完成,使用 @zxing/library(Google ZXing 的 JS 移植)。
  • 为何不用 jsQR:jsQR 对带嵌入 Logo 的 QR Code 鲁棒性差(实测一张带 Logo 的标准 QR Code jsQR 全策略失败,zxing 可稳定解出)。zxing 还额外支持多码制。
  • 权限声明:仅 clipboard(复制结果到剪贴板)。