search/
Start typing to search packages!
package_2
nexus
By @cometahn142
Roblox
MirroredNexus
Nexus is a state-driven service/controller framework for Luau and Roblox, powered by the high-performance Snap networking engine.
Documentation (Diátaxis Standard)
- Tutorial: A step-by-step guide to building your first Service and Controller.
- Recipes: Practical patterns for middleware, state management, and lifecycle events.
- Concepts: Understanding the Service-Controller architecture and the Marker-based networking system.
- Specification: Formal API reference and technical specification.
Technical Highlights
- Marker-Based Protocol: Define signals, methods, and shared properties using a declarative schema.
- Reactive Properties: Built-in state synchronization with
ObserveandOnChangedhooks. - Lazy Proxies: Robust dependency injection that solves circular reference issues.
- Advanced Middleware: Inbound and outbound pipelines for granular control over every network packet.
- Unified Lifecycle: Streamlined
NexusInitandNexusStartphases with full Promise support.
Minimal Example
-- Service (Server)
local DataService = Nexus.CreateService({
Name = "DataService",
Client = {
Points = Nexus.Property(Nexus.t.uint32, 0)
}
})
function DataService:NexusStart()
self.Client.Points:Set(100)
end
-- Controller (Client)
local UIController = Nexus.CreateController({ Name = "UIController" })
function UIController:NexusInit()
local DataService = Nexus.GetService("DataService")
DataService.Points:Observe(function(val)
print("Points updated:", val)
end)
end
Architected for clarity. Optimized for state.
Package Details
Install command (Click to copy)
Version
0.5.3
License
MIT
Safe for commercial use
Automated license review — not legal advice.
