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

myxy

v0.1.0

Published

A simple tool to shuffle messages in an AMQP queue.

Readme

myxy

What?

Myxy is a tool to shuffle messages in an AMQP message queue. It fetches all of the messages from your queue down into memory, mixes them up, and then sends them back to the queue again.

But why?

For testing the robustness of your services of course. One of the fundamental mistakes people often make when writing message based systems is assuming that messages will be delivered in the same order they were sent/published. This is not always true, and message brokers such as RabbitMQ explicitly do not guarantee this. Your services need to be able to handle messages which arrive out of order.

Oh, I see

But it's not always easy to replicate conditions where messages may be delivered out of order. Enter myxy. With this tool you can give all the messages in a queue a damn good jumble, and see how your service copes with it.

How?

npm install -g myxy

myxy --queue my_message_queue

Myxy will output something like the following:

 _____ _ _ _ _ _ _
|     | | |_'_| | |
|_|_|_|_  |_,_|_  |
      |___|   |___|
Fetching Messages 100% [========================================] 0.0s
Myxing Messages   100% [========================================] 0.0s
Sending Messages  13%  [=====-----------------------------------] 12.3s

What are my options?

Options:
  -h, --host      Hostname of the AMQP broker    [string] [default: "localhost"]
  -p, --port      AMQP broker port number               [number] [default: 5672]
  -u, --login     AMQP login user name               [string] [default: "guest"]
  -P, --password  AMQP user password                 [string] [default: "guest"]
  -v, --vhost     AMQP virtual host                      [string] [default: "/"]
  -q, --queue     The queue to be myxed                      [string] [required]

What could go wrong?

Myxy could fall over for any of the following reasons...

  • The AMQP broker is unreachanle on the given host/port
  • The login or password is incorrect
  • The virtual host is not found
  • The queue is not found
  • The queue has other consumers
  • Something else?

Wait, that last one?

Something else?

No the one before that?

When myxy connects to your broker, it looks at how many messages are on your queue and then fetches them all down into memory to be shuffled. If you have other consumers popping messages off the queue, myxy may end up waiting for messages which are no longer there. For this reason you'll need to disable or shut down your consuming service(s) whilst myxy jumbles up the queue. Myxy will helpfully refuse to run if it sees that there are other consumers on the queue.

And something else?

Who knows? Messages may go missing or get corrupted? I've tested this on queues with 250,000 messages, beyond that you're off the edge of the map.

For the love of fluffy little bunnies, don't run this on your production systems.