Rodux
A state management library for Roblox Lua inspired by Redux
Install / Use
/learn @Roblox/RoduxREADME
Installation
Method 1: Model File (Roblox Studio)
- Download the
rbxmmodel file attached to the latest release from the GitHub releases page. - Insert the model into Studio into a place like
ReplicatedStorage
Method 2: Filesystem
- Copy the
srcdirectory into your codebase - Rename the folder to
Rodux - Use a plugin like Rojo to sync the files into a place
Usage
Rodux works just like Redux's base API.
See the official Rodux Documentation for more details.
local Rodux = require(script.Parent.Rodux)
local function reducer(state, action)
state = state or {
frobulations = 0,
}
if action.type == "frobulate" then
return {
frobulations = state.frobulations + 1,
}
end
return state
end
local store = Rodux.Store.new(reducer)
store:getState() -- { frobulations = 0 }
store:dispatch({
type = "frobulate",
})
store:getState() -- { frobulations = 1 }
Contributing
Contributions are welcome! See CONTRIBUTING.md for information.
License
Rodux is available under the Apache 2.0 license. See LICENSE for details.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
