THREAD
ROBLOX / LUAU v1.2.2

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

Quick start

Register the folder containing your services, then start Thread.

ServerScriptService/Server.server.lua
local Thread = require(game:GetService("ReplicatedStorage").Packages.Thread)

Thread.Register(game:GetService("ServerScriptService").Services)
Thread.Start():catch(warn)
Services/MoneyService.luau
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

What Thread handles

01

Service lifecycle

Initializes dependencies first and stops services in reverse order.

02

Client APIs

Builds remotes from each service's Client table.

03

Network controls

Supports validation, middleware, rate limits, and invoke timeouts.

04

Failure handling

Skips unhealthy dependents and rejects startup when a critical service fails.