Strata
Data, without the overhead.
Strata isn’t the data system with the most features. It’s the one that asks the least of you to get a great one.
You describe your player data once. Strata loads each player’s session, keeps it saved, replicates changes to the client, and types every field for you. It’s built on ProfileStore, so you get session locking and safe saving without writing any of it.
Documentation · Package · Wally
- In case the package is down, instead download the latest rbxm file and insert it in to studio, going from there as you usually would.
Why I made it
Most data setups make you build the plumbing before you can build the game: PlayerAdded and PlayerRemoving handlers, remotes for the client, string keys with no autocomplete, and a hand-written copy of your data’s shape in three places.
Strata removes the plumbing.
- No session code. Sessions start when a player joins and end when they leave.
- No remotes. The client mirrors whatever the server holds.
- No duplicated schemas. Your template is the schema. Autocomplete comes from it.
- No save calls. Data saves on its own.
Saveis there when you want it sooner.
What it looks like
Describe your data once, in a shared module:
-- ReplicatedStorage/Data
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Strata = require(ReplicatedStorage.Strata)
local Template = {
Coins = 0,
Stats = { Level = 1, Xp = 0 },
Inventory = {} :: { string },
}
return Strata:Init({
StoreName = "Players",
Template = Template,
Leaderstats = { Coins = true },
})
- Note: More configuration options are available in the configuration docs, however
StoreNameandTemplateare the only two required.
Use it on the server:
local Data = require(game.ReplicatedStorage.Data).Server
Players.PlayerAdded:Connect(function(Player)
local S = Data:LoadVault(Player) -- yields for the data
if not S then
return
end
S.Coins.Update(function(Coins)
return Coins + 100
end)
S.Inventory.Push("Wooden Sword")
end)
And on the client. Same shape, but read-only:
local Data = require(game.ReplicatedStorage.Data).Client
local C = Data:LoadVault()
if C then
C.Observe("Coins")(function(Coins)
CoinLabel.Text = tostring(Coins)
end)
end
Observe fires once with the current value, then again on every change. The path autocompletes from your template and the value is typed to match.
What you get
- Typed everything. Every node has
Get,SetandUpdate. Tables addMutateandSnapshot. Arrays addPush,Pop,InsertAtandRemoveAt. Maps addHas,Keys,Values,InsertandRemove. It’s all dot syntax, so it’sS.Coins.Get()and neverS.Coins:Get(). - Built-in replication. Changes are batched into small patches. Sequence tracking detects missing updates and automatically requests a fresh snapshot.
- A read-only client. Writing from the client throws, so UI code can’t quietly desync from the server.
- Leaderstats from one line. Name the top-level fields and Strata keeps the leaderboard in sync.
- Schema migrations. Set a
SchemaVersionand aMigratefunction. New template fields are filled in for existing players automatically. - Hooks.
OnSessionStart,OnSessionEnd,BeforeMutateandAfterMutate. - Mock mode.
Mock = trueuses ProfileStore’s in-memory storage, so nothing is saved while you test.
Install
Strata is on Wally:
[dependencies]
Strata = "soggybird0/strata-service@1.0.0"
Important: Previous Strata Wally package names are deprecated. Use soggybird0/strata-service for the current, latest release.
ProfileStore and Signal come along as dependencies, so there’s nothing else to add.
Good to know
- Autocomplete needs the new Luau type solver. Turn on
Workspace.UseNewLuauTypeSolverin Studio, or the matching setting in Luau LSP. Your code runs the same without it. You only lose the types. - It’s player data, not global state. Leaderboards and cross-server data belong in
OrderedDataStoreorMessagingService. ProfileStore is explicit about the same limit.
Credits
- ProfileStore by loleris (MAD STUDIO), which Strata runs on.
- Signal by Stephen Leitnick.
Feedback
I’d love to hear what’s missing, what’s confusing, and what broke. Bug reports and feature requests are welcome here or on GitHub.
If you try it, tell me how much code it saved you.
Released under the MIT license.
Happy scripting!

