v1.4.6Virtual WorldBSD-2-Clause

NeverDark MUCK engine as a dynamic axil module โ€” real-time multiplayer virtual world running in-process over WebSocket and Telnet. Canonical header is <ttypt/nd.h>.

GitHub
git clone https://github.com/tty-pt/axil-nd

axil-nd logo

axil-nd

C99 BSD-2-Clause MUCK

NeverDark MUCK engine as a dynamic axil module โ€” real-time multiplayer virtual world running in-process over WebSocket and Telnet. Canonical header is <ttypt/nd.h>.

1. Quickstart

Launch NeverDark MUCK inside the Axil server:

mkdir -p var
AXIL_ND_DB=./var/std.db axil -d -A -p 8080 -m ./lib/libaxil-nd:libnd-region:libnd-bus:libnd-obj:libnd-world:libnd-view:libnd-mcp:libnd-speech:libnd-session

Connect to the World

  • Web Browser (Xterm 6 + Canvas Viewport): Navigate to http://localhost:8080/nd
  • Raw Telnet / Netcat:

`bash nc 127.0.0.1 8080 connect <your-unix-username> `


2. In-Game Command Cheat Sheet

NeverDark uses clean, natural command verbs without legacy @ prefixes:

CategoryCommandSyntax & ExampleWhat It Does
World Shapingcreatecreate sword / create tableSpawns a new in-game item or object
doordoor north to room_12Carves a navigable exit passage between rooms
undoorundoor northRemoves an exit passage
wallwall northErects a structural barrier blocking passage
unwallunwall northDemolishes a barrier, opening the space
claim / unclaimclaimClaims/releases stewardship of current district
recyclerecycle debrisDestroys an object and returns database quota
Explorationlook (l)look / look statueDescribes current room or item
walkwalk north (or n, s, e, w, u, d)Navigates through room exits
sit / standsit chair / standInteracts with furniture objects (nd-seat)
Communicationsay (")say Greetings, traveler!Speaks aloud to everyone present in the room
pose (:):nods thoughtfullyEmotes a physical action in third person
pagepage alice=Are you ready?Sends a private whisper directly to a player
RPG & Combatstatus / scorestatus / scoreDisplays health, mana, stamina, and attributes
inventory (i)inventoryLists items currently carried in your inventory
equipequip iron_swordWields weapons or wears armor (nd-equip)
fightfight goblinInitiates combat encounter (nd-fight)
castcast spark on goblinCasts an incantation from your spellbook (nd-spell)
Administrationloadmodloadmod nd-spellDynamically loads a C module into a region (xy_load)
streloadstreloadHot-reloads in-memory Corm database state

3. Architecture & Subsystems

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                          Axil Daemon                            โ”‚
โ”‚    WebSocket Upgrade (GET /nd)            Raw Telnet Port       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        axil-nd Core                             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚     libcorm Maps     โ”‚             โ”‚ libislet (3D Space)  โ”‚  โ”‚
โ”‚  โ”‚   Objects & Props    โ”‚             โ”‚  Morton Coordinates  โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚ Content Plugins (libxylem): nd-fight, nd-spell, nd-biome  โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The game world is extended through independent, hot-reloadable libxylem modules:

  • Core Entities: nd-core (object trees), nd-attr (statistics), nd-class (character classes), nd-race (species traits).
  • Environment: nd-biome (climates & weather), nd-plant (flora & growth), nd-stone (minerals & geology), nd-wts (world temporal state & day/night).
  • Gameplay: nd-fight (tactical combat), nd-spell (magic incantations), nd-shop (in-game merchants), nd-seat (resting).

Core wire, protocol & I/O headers under include/nd/:

  • Binary Client Protocol (<nd/bcp.h>, <nd/bcp-types.h>, <nd/bcp-meta.h>): Packed 144-byte nd_entity_packet_t and nd_room_desc_t contracts with 64-byte art paths, plus binary map grid and macro-view packets.
  • Standalone XY Protocol Contract Headers (<nd/xy-types.h>, <nd/xy.h>, <nd/world-types.h>, <nd/world.h>, <nd/region-types.h>, <nd/regions.h>): Six pure ISO-C protocol contract headers (including _WIN32 random()/strlcpy/strlcat inline shims in <nd/xy.h>) enabling all 20 Layer-7 nd-* modules to build standalone across all 9 platforms.
  • Session I/O (<nd/law.h>): O(1) in-RAM player_ref -> fd hash map, fd_player() fast path, and nd_player_is_ws() WebSocket transport detection.

4. Installation & Build

Prebuilt Packages

Prebuilt packages across all 9 platforms โ€” Linux (APT / Alpine / Arch / Fedora-RHEL), macOS (Homebrew), Windows (winget / Scoop / MSYS2), OpenBSD, plus static mobile sysroots for Android (https://tty.pt/android/) and iOS (https://tty.pt/ios/ โ€” axil-nd.xcframework + SwiftPM) โ€” are distributed via tty.pt packages. Use axil-nd as the package name.

Build from Source

# Build browser client assets
npm install && npm run build

# Build native C module
make
sudo make install

License

BSD 2-Clause License. Copyright (c) 2026, quirinpa. See LICENSE.

Maintained by:tty-pt