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

wt-mission-queue

v0.1.0

Published

## use ### queue

Readme

wt-mission-queue

use

queue

创建一个 mission 队列

提供方法

| 方法 | 作用 | 备注 | | ---------- | ------------------------------------------------------------ | ---------------------------------------------------- | | start | 开始队列消费 | | | mission | 注册一个 mission 到队列中 | | | createMsg | 创建一个队列消息,需要提供参数为:指定消费的 mission,消息体、是否为最高优先级 | 此方法只能进行消息创建,不支持自动发送消息到对队列中 | | send | 向队列中发送消息 | | | destroyMsg | 在队列中销毁消息,提供消息标识:identifier | |

提供事件

| 事件 | 作用 | 备注 | | -------- | -------------------------------- | ---- | | consumed | 消息消费完成后触发(成功及失败) | |

mission

创建一个 mission 消费者

提供方法

| 方法 | 作用 | 备注 | | ----------- | ----------------------------------------- | ---- | | constructor | 创建一个mission,需要提供名称以及组成单元 | | | before | 钩子:消息正式消费前 | | | after | 钩子:消息消费后 | |

unit

消费者组成单元,由一个个 task 组成

提供方法

| 方法 | 作用 | 备注 | | ---- | ---------------- | ---- | | task | 细粒度拆分消费者 | |

message

由所属 mission、消息体、消息标识组成

store

消息消费过程中数据传输载体

组成部分

| 属性 | 作用 | | ------- | ------------------------ | | state | 存放运行过程中产生的数据 | | content | 存放结果 |

samples

npm run samples