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

dudes-server

v0.1.26

Published

dudes-server [![npm-version](https://img.shields.io/npm/v/dudes-server.svg)](https://www.npmjs.com/package/dudes-server) ==

Readme

dudes-server npm-version

Multiplayer server for the dudes engine

Remix this project on glitch and host it for free:

https://glitch.com/edit/#!/dudes-server

Config.json options

The "id" will become the pathname of that world on the server.
Ex: Id === 'coolWorld' => ws://localhost:8081/coolWorld
The id "default" will also be served at '/'.
[
  {
    "id": "test", "// The pathname of the world": "",
    "maxClients": 16, "// The maximum concurrent clients": "(default: 16)",
    "storage": "/data/test.blocks", "// Absolute path to storage": "(for persistence)",
    "dudes": {
      "maxDudes": 32, "// The maximum number of dudes": "(default: 32)",
      "minDistance": 16, "// The minimum distance to others required to spawn": "(default: 16)",
      "searchRadius": 64, "// The search radius for the pathfinding": "(default: 64)",
      "spawnRadius": 64, "// The search radius for the spawn algorithm": "(default: 64)",
      "// Optional origin for the spawn algorithm.": "",
      "// It defaults to the center of the world if undefined": "",
      "spawnOrigin": { "x": 0, "y": 0, "z": 0 },
      
    },
    "world": {
      "width": 256,      "// Volume width": "",
      "height": 64,      "// Volume height": "",
      "depth": 256,      "// Volume depth": "",
      "seaLevel": 6,     "// Sea level used in the generation and pathfinding": "",
      "seed": 987654321, "// Uint32 seed for the rng. Will use a random one if undefined": "",
      "// Built-in generators": "",
      "generator": "default", "// 'blank', 'default', 'menu', 'debugCity', 'partyBuildings', 'pit'": "",
    },
  }
]

To host it on your own server:

# install the server
npm install -g dudes-server
# start the server:
dudes-server ./config.json

Docker image:

# docker-compose.yml
version: '3'
services:
  server:
    image: 'danigatunes/dudes-server'
    restart: always
    ports:
     - "127.0.0.1:8081:8081"
    volumes:
     - "./data:/data"

# place config.json in ./data
# run: docker-compose up -d

To use it as a node module:

const WebSocket = require('ws');
const VoxelServer = require('dudes-server');

const world = new VoxelServer({
  world: {
    width: 400,
    height: 96,
    depth: 400,
  },
});

const server = new WebSocket.Server();
server.on('connection', (client) => (
  world.onClient(client)
));

console.log(`Listening on port ${server.options.port}`);