Skip to content
dreamland-mudPublic

Latest commit

 

History

717 Commits

Folders and files

Repository files navigation

mudjs

Stand With Ukraine License

The browser client for DreamLand MUD. It talks to the game over a WebSocket and is played at https://dreamland.rocks/play.

The client is a React app built with Vite. The main branch is dreamland. It is tied to the DreamLand server protocol and all work happens there. The master branch is an older generic client for any MUD and is frozen.

Run it locally

You need Node.js 20.19 or newer (the deploy uses 22) and npm.

git clone https://github.com/dreamland-mud/mudjs.git
cd mudjs
git checkout dreamland
npm install
npm run dev

The dev server listens on port 3000 and reloads when you save a file. Open http://localhost:3000/play/ (the root address redirects there). By default the client connects to the main game at dreamland.rocks.

To connect to the builders' server instead, open the page with #build at the end of the address:

http://localhost:3000/play/#build

If the page loads but the client cannot connect, check whether an ad blocker is active on the page.

Build

npm run build

The bundle goes to build/, with the base path /play/. The build also writes build/version.json, which the running client polls to notice a new deploy.

More

License

GPLv3. See LICENSE.

Releases

Packages

Used by

Contributors

Languages