Moor
A system for building shared, programmable, online spaces. Compatible with LambdaMOO. NOW MOVED TO CODEBERG https://codeberg.org/timbran/moor
Install / Use
/learn @rdaum/MoorREADME
mooR
mooR is a network-accessible, multi-user, programmable system for building online social environments, games, and collaborative spaces. Think of it as a virtual world where participants can not only interact with each other, but also program and modify the environment itself.
mooR is a modern, from-scratch rewrite of LambdaMOO, maintaining full compatibility with existing LambdaMOO 1.8.x databases while adding significant enhancements.
📖 For comprehensive documentation, see our mooR Book.
⚠️ Release Status:
1.0.0-rc1has been released on thev1.0-releasebranch. Use that branch, the Releases tab, or published images if you want the stabilized release line.mainnow tracks1.1.0-devwith more aggressive feature development (VM extraction, scheduler rewrite, batch APIs, WebRTC). See the Status section below for details.
📦 Repository Migration Notice (August 2025): We've recently moved our primary repository from GitHub to Codeberg. If you're viewing this on GitHub, please consider switching to Codeberg for the latest updates, issue tracking, and contributions.
What is a MOO? And Why?
A MOO (Multi-User Object-Oriented) is a network-accessible, multi-user, programmable system for building online social environments, games, and collaborative spaces. Think of it as a virtual world where participants can not only interact with each other, but also program and modify the environment itself.
MOOs offer a unique digital experience through:
- Collaborative storytelling where participants build a shared narrative
- Live programming - modify the world while you're in it
- Community-driven development through persistent interactions and relationships
- Rich interaction that engages users through both traditional command-line and modern web interfaces
- Complete customizability - everything from objects to commands can be programmed
What mainly sets MOOs apart is their emphasis on live programming and community-driven content creation - imagine if Minecraft's creative mode, Discord's community features, and a code editor all lived in the same space. (Or for the more nerdy, imagine if a system like Smalltalk or similar could be connected to by multiple people in real time, each contributing to a shared codebase.)
mooR is a modern, from-scratch rewrite of all of the above. It will happily import an existing LambdaMOO (or some ToastStunt) database, but offers significant enhancements and modern conveniences and is intended on bringing the whole experience into the future.
To see a live running instance, visit our demonstrator community at "Timbran Hotel".
<p align="center"><img src="./doc/timbran-lobby.png" alt="The Timbran Hotel Lobby" width="600"/></p>Key Features & Enhancements
Runtime improvements:
- Fully multithreaded architecture for modern multicore systems
- Web frontend client
- Directory-based import/export format for version control integration
- Modular architecture for easier extension
Language enhancements:
- UTF-8 strings, 64-bit integers, binary values
- Proper boolean values (
true/false) - Maps: associative containers (
["key" -> "value"]) - Lexically scoped variables with
begin/endblocks - List/range comprehensions (
{x * 2 for x in [1..5]}) - Lambda functions: anonymous functions with closures (
{x, y} => x + y) - Symbol literals ('mysymbol) like Lisp/Scheme (optional)
- UUID object identifiers (optional)
- Anonymous objects with automatic garbage collection (optional)
- Lightweight immutable objects ("flyweights") (optional)
Modern infrastructure:
- Fast, durable, transactional database
- Support for multiple client protocols (web, telnet)
- Easy deployment via Docker
Status
mooR 1.0.0-rc1 has been released. The core runtime and database formats are stable. It
successfully runs databases imported from LambdaMOO with real-world workloads and has passed
extensive stress and performance testing. main now tracks 1.1.0-dev development.
Branch policy:
v1.0-releasebranch: stable1.0release line (1.0.0-rc1and subsequent patch releases)mainbranch:1.1.0-devfeature development (runtime and database optimizations, WebRTC extensions, compiler rework for performance, batch world state APIs, new builtins)- Bug fixes land on
mainfirst, then are cherry-picked tov1.0-releasewhen safe - Release tags and published images are cut from
v1.0-release - Database formats and APIs are stable on the release branch
Repository: The primary mooR repository is hosted on Codeberg with a mirror on GitHub. All issues filed and pull requests submitted need to come through Codeberg, and not GitHub.
Quick Start
The easiest way to get started and see what we've made is by using our quick-start scripts. These scripts automatically handle Docker setup, resource isolation, and feature flag configuration.
Try out mooR with a Core
Choose one of the pre-configured cores to explore (the scripts will automatically fetch any missing dependencies):
- Cowbell (Modern core with web-native features):
./scripts/start-moor-cowbell.sh - LambdaCore (Classic LambdaMOO core, with slight modifications for a better experience in
mooR):
./scripts/start-moor-lambdacore.sh
By default, these scripts use a higher performance release build. For a faster initial compile
during mooR development (but slower runtime performance), you can use the --debug flag:
./scripts/start-moor-cowbell.sh --debug
Accessing the System
Once started, the services are available at:
- Web Client: http://localhost:8080
- Telnet Interface:
telnet localhost 8888
The system isolates runtime data for each core in its own directory (run-cowbell/ or
run-lambda-moor/), ensuring you can switch between them without database pollution.
What the services are
This starts four services:
- moor-daemon: The backend MOO service
- moor-telnet-host: Traditional telnet interface on port 8888
- moor-web-host: REST API and WebSocket server for web clients
- moor-frontend: Web client served via nginx on port 8080
Connect via:
- Web: http://localhost:8080
- Telnet:
telnet localhost 8888
The server comes pre-loaded with an extraction of LambdaCore, providing a ready-to-explore virtual world.
For more detailed setup instructions, see the Docker Compose Setup section in the mooR Book.
Alternative: Frontend Development Setup
For frontend development and testing, you can run just the daemon and web client without Docker:
npm run full:dev
This starts the moor-daemon and web development server, accessible at http://localhost:3000. This setup excludes telnet and provides hot-reloading for frontend development, but it requires installing some dependencies. See the Meadow repository for details.
Deployment Options
mooR provides multiple deployment configurations to suit different use cases:
Development & Single-Machine Deployments
The root docker-compose.yml is designed for development and single-machine deployments. All
services run on the same host and communicate via IPC (Unix domain sockets).
The recommended way to start this setup is via the core-specific scripts, which handle all environment isolation and permissions for you.
To start in the background:
./scripts/start-moor-cowbell.sh -d
(Any additional flags like -d are passed directly to docker compose up).
Data for these deployments is consolidated under core-specific directories (e.g., ./run-cowbell/),
keeping your project root clean.
Testing Clustered Configuration
The docker-compose.cluster.yml file is an example configuration that demonstrates TCP-based
communication with CURVE encryption. It runs on a single machine but shows what a multi-machine
clustered setup would look like:
docker compose -f docker-compose.cluster.yml up -d
This uses TCP with CURVE encryption and enrollment tokens for host authentication. It's useful for testing the clustered setup locally before deploying across actual separate machines.
For actual multi-machine production deployments, use Kubernetes (see future documentation) or deploy Debian packages on separate servers.
Production Deployment Configurations
The deploy/ directory contains a series of production-ready configuration examples:
telnet-only/: Minimal telnet-only setup for traditional MUD usageweb-basic/: Web-enabled deployment with HTTP (for use behind reverse proxies)web-ssl/: Web-enabled deployment with HTTPS/TLS supportdebian-packages/: Native Debian/Ubuntu packages with systemd (no Docker)
All production configurations use IPC for single-machine deployments and include automated testing scripts. See each deployment's README for specific setup instructions. If you run into problems with these scripts, please file an issue on our Codeberg issue tracker as they may fall out of date with the latest changes.
For testing the current state of these deployment scenarios:
cd deploy
./test-all.sh # Test all deployment configurations
