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 🙏

© 2025 – Pkg Stats / Ryan Hefner

omud

v1.0.13

Published

Node based websocket driven MUD.

Readme

This is a shared library used when developing a websocket based MUD in Node with Typescript. I wanted to share the domain models and this was an easy way to get started. So if you use this please contact me as without knowing I may delete or rename this...

At request or if it works out, I may begin to move service level code to this as well so that the Angular application can simulate more of the mud when 'editing'.

I think that IPlayerController is currently the problem, because it handles the input queue. But it can also be that commands should be moved to their own manager and the script service should have access to that manager.

Domain Models...

Server

The server starts up the primary dependencies:

  • Mongo DB (Data)
  • Express (Web Server)
  • Connection Host
  • MUD

Uses Domain: Connection Host, IPlayer, IAccount

It also handles the entry of connections, checking that the connection's account is valid and owns the player it is trying to connect with.

Connection Host

The connection host managed the physical connections to the mud. It will tell the mud when a player is added or removed as well as processing I/O from the mud to the physical connection.

Problems: The mud is hard coded in it, it should be taking an interface and using that.

User

A User is a connection to the connection host, it joins the websocket connection, the user's account, and the player within the account. Websocket + Account + Player.

Player

A player is owned by an Account, and represents saved progressed for an Actor. It contains both the template the player started from, and their current progress.

New Player

This is a transitive DTO for submitting a new set of player data.

Account

An Account owns one or more players and/or areas. Accounts have permissions.

New Account

This is a transitive DTO for submitting a new set of account data.

Actor

Represents an in-game actor that may or may not be wired up to a Player.

Player Controller

GameHost Command

Other

How should security work? Even if you edit the area for five minutes, if you haven't saved then your token is expired and that is that... Should the editor maybe ping the server? The problem being that a person is working and they haven't actually sent anything to the server in a while.

  1. have certain actions cause a server ping.
  2. automatically ping at intervals