Skip to content

CorodeDocumentation

A server-authoritative Luau framework for Roblox game systems. Typed, hookable, and usable in parts.

Corode
lua
local K = require(game.ReplicatedStorage.Corode)

local XP = K.Value("XP", { Default = 0, Min = 0 })      -- Value<number>, saved, replicated
K.Currency.Define("Coins")

K.Currency.Before("Add", function(ctx)                  -- every system's operations are hookable
	if ctx.Source == "Quest" then
		ctx.Amount *= 2
	end
end)

K.Tag("Coin", function(part)                            -- CollectionService, with cleanup
	return K.When(part).Touched():Give("Coins", 5):Hide(3)
end)

K.Start()
AuthorityState changes happen on the server; clients read replicated state and send requests that are type-checked and rate limited. See Architecture.
TypesEvery module is --!strict. Values are typed by their Default, hook ctx tables per system. See Types and packages.
InstallCorode.rbxm from the releases, or Wally: udalga/corode.
In partsMachine, Shared, Hooks, Tag, Net, Data and the utilities work without the rest.
APIEvery function, generated from the source: API reference.

Beta

0.x: tested in Studio including multi-player servers, not yet in a large live game. APIs may still change; the changelog lists every change.

Corode 0.13.0 · MIT License