Library overview

Install the library, configure credentials and call endpoints from game code.

Client library and editor tools for an s&box game backend. Call server endpoints, load game values and sync your backend's rules from the editor. Works with the open-source self-hosted server and the managed sbox.cool service.

Install · Website · Docs · Discord · Managed service wiki

s&box Network Storage: game values, server-side checks and versioned builds

Quick start

  1. Install from Editor > Library Manager: search for Network Storage by sboxcool.
  2. Configure in Editor > Network Storage > Setup with your project ID, public key, secret key and (for a self-hosted server) base URL. The secret key stays in Editor/ and never ships.
  3. Call your server from game code:
NetworkStorage.Configure( "your_project_id", "sbox_ns_your_public_key", "https://my-game.sboxns.com" );

var player = await NetworkStorage.CallEndpoint( "load-player" );
var result = await NetworkStorage.CallEndpoint( "mine-ore", new { ore_id = "iron", kg = 5.0f } );
if ( result.HasValue )
    Log.Info( $"Currency: {result.Value.Int( "currency", 0 )}" );

var values = (await NetworkStorage.GetGameValues()).Value; // every group and table, one request

No server yet? sbox-ns quickstart "My Game" on a self-hosted server prints the IDs, keys and the Configure(...) line: sboxns.com/install.

What's in it

Runtime client Endpoints, game values, documents, save slots, analytics, retries and encrypted requests. Runtime API
Sync Tool Collections, endpoints and workflows as YAML in your project, with diff, push and pull; generates typed code for them. Sync Tool
Setup window Enter and test credentials and the server URL. Getting started
Debugging NetLog ring buffer for in-game debug panels, SaveStateTracker for HUD save state.
Agent tools ns_* tools for coding agents through s&box's sbox-cli MCP bridge. Agent tools

Copyable patterns are in Examples/.

Docs

Compatibility

The library and server release independently and are both long-term supported. Public methods and endpoints are never silently renamed, removed or narrowed, and servers keep accepting older libraries by default. Each library, server, engine and database pairing is certified with real evidence: compatibility certification.

License

MIT, see LICENSE. sbox.cool and sboxcool.com are run by the same group; api.sboxcool.com is the long-term managed API host.

Generated from sbox-cool/sbox-network-storage/README.md at 7f77770c81dd6ab84facfa05e9a87010b6f27983 (7f77770).

Publication and source

GitHub source; s&box publication unverified. No confirmed package revision. All versions

Server: Next release (unreleased, 8e7623d) (next-8e7623d), GitHub source sbox-cool/sbox-network-storage-server at 8e7623dda7e37159dc1757b76ad110fad5dd6f11 (8e7623d). Library: main source (7f77770) (source-7f77770), GitHub source sbox-cool/sbox-network-storage at 7f77770c81dd6ab84facfa05e9a87010b6f27983 (7f77770).