Skip to content
Foundation
Foundation

Foundation

A server framework for nanos world, installed as a script package named foundation. It provides the infrastructure other packages build on and contains no gameplay of its own.

Version 0.1.0, in development

Scope

Available in 0.1.0

  • Package registration, lifecycle and resource tracking
  • Configuration files for Foundation and for each package
  • Localization with plural rules
  • Namespaced keys and validation schemas
  • Timers, debounce, throttle and futures
  • Structured console and log output

Part of the platform, not available yet

Events, commands, permissions, services, guarded client-server messaging, storage and diagnostics are being implemented. They will be documented when they ship.

Not included by design

Gameplay. Economy, jobs, ranks, homes, warps and shops belong in separate packages, so any of them can be replaced without touching Foundation.

Requirements

Server requirements
Requirement Value
nanos world server1.156 or newer
Operating systemAny platform supported by the nanos world server. Tested on Windows; Linux is not tested yet.
Server flagsNone. Foundation does not need --enable_unsafe_libs.
Native modulesNone. Foundation is written entirely in Lua.

Players need nothing beyond the nanos world client.

Compatibility

Supported nanos world versions
Foundation Minimum nanos world Tested with Status Notes
0.1.0 (unreleased) 1.156 1.156.0 on Windows In development Linux not tested yet

“Tested with” means the automated integration suites passed on that server version.

Versions and stability

Foundation follows Semantic Versioning. Before 1.0.0, any minor release may change the API.

From 1.0.0 on, patch releases fix bugs without breaking documented behaviour, minor releases add features without breaking existing ones, and major releases may remove APIs deprecated earlier, with a migration guide.

A package declares the API version it was written for. Before 1.0 it must match exactly: Foundation 0.1.0 exposes API 0.1.

Installation

  1. Download the source of the repository. Until the first release there is no separate archive.

  2. Copy its package folder into your server’s Packages folder and rename it foundation. The folder name is the package identifier.

  3. Add foundation to the packages list of Config.toml, or let the packages that need it list it in their packages_requirements.

Full installation and update guide

Support and security

Report bugs and request features in the issue tracker of the Foundation repository. Open the issue tracker

Report vulnerabilities privately, never in a public issue. Security fixes currently land on the main branch. Read the security policy

Foundation is free software under the MIT license.