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

@ql-react-components/upload-sdk

v0.9.0

Published

基于react的大文件上传sdk

Readme

upload-sdk

一个基于 Web WorkerRPC (远程过程调用) 架构的高性能大文件切片上传 SDK。

它将繁重的计算(Hash 计算)和 I/O 操作(并发请求)完全隔离在 Worker 线程中,确保主线程 UI 零卡顿。同时,独创的 RPC 机制让开发者能在 React 组件中通过 Hooks 完全接管上传的每一个生命周期。

✨ 特性

  • 🚀 极致性能:采用 Off-Main-Thread 架构,Hash 计算、切片处理、网络请求全量移交 Web Worker,彻底告别页面假死。
  • 🔗 RPC 驱动:逻辑定义在主线程(可无缝访问组件 State/Store/Router),具体执行在 Worker 线程,兼顾灵活性与性能。
  • 💾 内存友好:基于流式处理(Stream)和零拷贝引用机制,稳定支持 10GB+ 超大文件上传,拒绝浏览器崩溃。
  • ⚡️ 高效并发:内置智能并发控制队列,自动管理切片上传顺序与重试机制,最大化利用网络带宽。
  • 🛡️ 业务级风控:新增 validateResponse 钩子,支持细粒度的业务逻辑校验(如拦截 Token 过期、权限不足),将 HTTP 200 中的业务错误通过标准 Error 抛出。
  • 🎨 全链路 Hooks:提供完善的生命周期钩子,执行流为 Hash -> Init -> Check -> Upload -> Merge,支持异步 await 阻塞控制。

📦 安装

npm i @ql-react-components/upload-sdk@latest

使用参考内外文档