Build modular games with Lithium.
A developer framework for creating extensible systems, services and addons in s&box.
Read the documentation/docsusing Lithium.Addons;
namespace Lithium.House;
[Addon("thepanicdept.lithium_house", "Lithium House")]
public sealed class HouseAddon : Addon
{
protected override void OnAddonLoaded()
{
Log.Info("House Addon Loaded");
}
protected override void OnAddonUnloaded()
{
Log.Info("House Addon Unloaded");
}
}Core systems
Systems that stay composable.
Lithium keeps package identity, runtime ownership and dependency contracts visible, so features can grow without turning into one monolithic game project.
Architecture / 01
Built around the way s&box works.
Lithium adds a small coordination layer around familiar components and packages. Each layer has one job, and every boundary stays explicit.
Game
Your experience
Lithium Runtime
Discovery & lifecycle
Addons
Feature packages
Services
Scene-owned systems
Features
Gameplay modules
Discover
Resolve packages and their concrete addon contracts.
Mount
Attach reusable services to the active scene lifecycle.
Compose
Build gameplay features without collapsing module boundaries.
Developer experience / 02
Small APIs. Clear ownership.
Lithium builds on C# and familiar s&box primitives. The result is code that says what it owns, when it starts and what it depends on.
HouseAddon.cs
A smaller surface for a clearer system.
Own setup and teardown in a small lifecycle that stays close to the feature.
Sandbox.Addon
using Lithium.Addons;
namespace Lithium.House;
[Addon("thepanicdept.lithium_house", "Lithium House")]
public sealed class HouseAddon : Addon
{
protected override void OnAddonLoaded()
{
Log.Info("House Addon Loaded");
}
protected override void OnAddonUnloaded()
{
Log.Info("House Addon Unloaded");
}
}Documentation / 03
From first addon to runtime architecture.
Practical guides grounded in Lithium's current public API, with copyable C# examples and explicit experimental labels.
Ecosystem / 03
A framework designed to grow.
Lithium starts with a small runtime and lets each gameplay domain become its own package, lifecycle and explicit contract.
Open framework · Early foundation
Build your next s&box system on a modular foundation.
Follow Lithium as its addon runtime, service model and developer ecosystem take shape in the open.