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

@mgonnet/umpire

v0.4.18

Published

A node.js / websocket multiplayer umpire

Readme

npm version codecov CodeFactor

@mgonnet/umpire

Sequence Diagrams

User Connection to Umpire Server

User Connection

Lobby creation

Lobby Creation

Listening Message types

| Message |Message data | Response type | Response data | | ------------- | ------------- |-----------------------|---------------| | REGISTER | {name: 'pepe'} | REGISTER-ACCEPTED | | | | | REGISTER-REJECTED | | | | | REGISTER-REJECTED | { reason: 'User already registered' } | | LEAVE-SERVER | | LEAVE-SERVER-ACCEPTED | | | CREATE-LOBBY | {name: 'lobby'} | CREATE-LOBBY-REJECTED | { reason: 'User already in lobby' } | | | | CREATE-LOBBY-REJECTED | { reason: 'Lobby name already exists' } | | | | CREATE-LOBBY-ACCEPTED | { players: [{ name: 'useloom'}], creator: 'useloom' } | | | | CREATE-LOBBY-REJECTED | { reason: 'Player is not registered' } | | CLOSE-LOBBY | | CLOSE-LOBBY-REJECTED | { reason: 'Player is not the lobby creator' } | | | | CLOSE-LOBBY-REJECTED | { reason: 'User is not in a lobby' } | | | | CLOSE-LOBBY-ACCEPTED | | | JOIN-LOBBY | {name: 'lobby'} | JOIN-LOBBY-REJECTED | { reason: 'User is already in a lobby' } | | | | JOIN-LOBBY-REJECTED | { reason: 'Lobby does not exist' } | | | | JOIN-LOBBY-REJECTED | { reason: 'Game already started' } | | | | JOIN-LOBBY-ACCEPTED | | | LEAVE-LOBBY | | LEAVE-LOBBY-ACCEPTED | | | | | LEAVE-LOBBY-REJECTED | { reason: 'Player is not inside a lobby' } | | CHOOSE-ROL | {rol: 'b'} | CHOOSE-ROL-ACCEPTED | { name: 'rataplan', rol: 'b' } | | | | CHOOSE-ROL-REJECTED | { reason: 'Player is not inside a lobby' } | | START-GAME | | START-GAME-ACCEPTED | { players: [{ name: 'useloom', rol: 'b' },{ name: 'rataplan', rol: 'w' } ],turn: 'w'} | | | | START-GAME-REJECTED | { reason: 'Player is not the lobby creator' } | | | | START-GAME-REJECTED | { reason: 'Player is not inside a lobby' } | | | | START-GAME-REJECTED | { reason: 'There are roles without player' } | | MOVE | {move: 'e4'} | MOVE-REJECTED | { reason: 'Not your turn' } | | | | MOVE-ACCEPTED | { name: 'rataplan', move: 'e4', turn: b } | | | | MOVE-REJECTED | { reason: 'Invalid move' } |

Emitted Messages

| Message | Message data | Trigger | Notes | |----------------------|---------------------------------------------------------------------------------------|----------------------|-------| | JOINED-LOBBY | { name: 'rataplan' } | JOIN-LOBBY-ACCEPTED | Broadcasted to lobby when someone joins | | CLOSE-LOBBY-ACCEPTED | | CLOSE-LOBBY | Broadcasted to lobby when the creator closes it | | CHOOSED-ROL | { name: 'rataplan', rol: 'b' } | CHOOSE-ROL | Broadcasted to lobby when a player chooses a rol | | GAME-STARTED | { players: [{ name: 'useloom', rol: 'b' },{ name: 'rataplan', rol: 'w' } ],turn: 'w'} | START-GAME | Broadcasted to lobby when the creator starts the game | | MOVED | { name: 'rataplan', move: 'e4', turn: b } | MOVE | Broadcasted to lobby when the creator starst the game | | LEFT-LOBBY | { name: 'rataplan' } | LEAVE-LOBBY | Broadcasted to lobby when a player leaves |

Specification status

References

1- Factory functions: https://medium.com/@vapurrmaid/should-you-use-classes-in-javascript-82f3b3df6195 2- JsDoc: https://medium.com/@trukrs/type-safe-javascript-with-jsdoc-7a2a63209b76