local Thread = require(game:GetService("ReplicatedStorage").Packages.Thread)
Thread.Register(game:GetService("ServerScriptService").Services)
Thread.Start():catch(warn)
Lightweight service framework
Build the service.
Skip the wiring.
Thread organizes server services and exposes typed client APIs without manually wiring RemoteEvents and RemoteFunctions.
- Target
- Roblox
- Language
- Strict Luau
- Release
- v1.2.2
- Runtime deps
- None
First run
Quick start
Register the folder containing your services, then start Thread.
local Thread = require(game:GetService("ReplicatedStorage").Packages.Thread)
local MoneyService = Thread.CreateService({
Name = "MoneyService",
Client = {
GetMoney = function(self, player)
return self.Server:GetMoney(player)
end,
MoneyChanged = Thread.CreateSignal(),
Jackpot = Thread.CreateProperty(0),
},
})
local balances = {}
function MoneyService:GetMoney(player)
return balances[player] or 0
end
return MoneyService
Built in
What Thread handles
Service lifecycle
Initializes dependencies first and stops services in reverse order.
Client APIs
Builds remotes from each service's Client table.
Network controls
Supports validation, middleware, rate limits, and invoke timeouts.
Failure handling
Skips unhealthy dependents and rejects startup when a critical service fails.
Go deeper
Documentation
Installation & project structure
Install the release asset, map the source with Rojo, or use Wally.
Services & lifecycle
Register services and control startup, shutdown, and dependencies.
Client table & networking
Expose methods, signals, and properties to clients.
Dependencies, middleware & failure
Order services, validate requests, and handle failures.
Configuration & low-level API
Configure Thread and use the lower-level networking primitives.
Promise
Use the built-in async primitives for retries, timeouts, and cancellation.
Utility modules
Signals, cleanup, tables, options, enums, math, and timers.
API reference
Look up types, methods, and configuration options.