← All projects
Project record1 mention
Originally shared on Hacker News

Node.js MUD/MUSH engine with JavaScript soft-code

A MUD (closer to a MUSH) engine written in Node.js where everything is an entity with attributes, and the soft-code language is JavaScript executed via the Node.js vm module. Each soft-code execution runs in a new isolated context, and Proxy objects gate access to entities and attributes (e.g., attributes normally accessible only by their owners). Built-in commands include @eval and @set-attribute, and it has separate clients for Discord, Slack, and a local console; the MUSH outputs markdown so each client can format it however it likes. Basic sandboxing is in place (eval, Function, and Promise disabled) and it is a proof of concept the author plans to make public one day.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Node.js MUD/MUSH engine with JavaScript soft-code

    A MUD (closer to a MUSH) engine written in Node.js where everything is an entity with attributes, and the soft-code language is JavaScript executed via the Node.js vm module. Each soft-code execution runs in a new isolated context, and Proxy objects gate access to entities and attributes (e.g., attributes normally accessible only by their owners). Built-in commands include @eval and @set-attribute, and it has separate clients for Discord, Slack, and a local console; the MUSH outputs markdown so each client can format it however it likes. Basic sandboxing is in place (eval, Function, and Promise disabled) and it is a proof of concept the author plans to make public one day.

    Posted by @kageneko · Original source ↗

    Source text · @kageneko · · Source ↗

    This year, I am creating a nodejs MUD, well closer to a MUSH actually. * Everything is an Entity with Attributes * A player is an Entity with its client property set * There's a handful of built-in commands, but the important ones are @eval and @set-attribute * The soft-code language is ... JavaScript. * It uses the vm module from nodejs[0] to execute stuff. * It has separate clients (so far) for Discord, Slack, and local console. It's easy to add more and will be easier after I do this one refactor.