• Stars
    star
    246
  • Rank 164,778 (Top 4 %)
  • Language
    Lua
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A state management library for Roblox Lua inspired by Redux

Rodux

A state management library for Roblox Lua inspired by Redux.
 

Installation

Method 1: Model File (Roblox Studio)

  • Download the rbxm model 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 src directory 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.

More Repositories

1

luau

A fast, small, safe, gradually typed embeddable scripting language derived from Lua
C++
3,084
star
2

roact

A view management library for Roblox Lua similar to React
Lua
562
star
3

creator-docs

Open Source Creator Documentation
TypeScript
299
star
4

react-lua

A comprehensive translation of upstream React 17.x into Luau. This is a read-only mirror.
Lua
274
star
5

Core-Scripts

All of ROBLOX's core client scripts.
Lua
248
star
6

nomad-driver-containerd

Nomad task driver for launching containers using containerd.
Go
214
star
7

testez

BDD-style test and assertion library for Roblox Lua
Lua
183
star
8

foreman

Toolchain manager for Roblox projects
Rust
168
star
9

roblox-blender-plugin

A Blender plugin to upload selected assets in Blender to Roblox using Roblox's Open Cloud API.
Python
113
star
10

tarmac

Command line tool to manage Roblox assets
Rust
109
star
11

avatar

Avatar templates and assets available to our external developers
Lua
99
star
12

StudioWidgets

Lua
91
star
13

roact-rodux

A connector between Roact and Rodux, similar to react-redux
Lua
82
star
14

future-is-bright

Prototyping future Roblox lighting technology
60
star
15

js-to-lua

Conversion tool for migrating JS/TS code into Luau. This is a read-only mirror
TypeScript
54
star
16

voice-safety-classifier

Voice safety classifier
Python
51
star
17

nomad-driver-iis

Nomad task driver for running windows IIS services.
Go
50
star
18

Studio-Tools

Built-in ROBLOX Studio Lua plugins
49
star
19

nomad-node-problem-detector

NNPD - nomad-node-problem-detector
Go
47
star
20

Old-Open-Source-Levels

A repository of ROBLOX levels that are free to manipulate however you wish
36
star
21

rs-consul

This crate provides access to a set of strongly typed apis to interact with consul (https://www.consul.io/)
Rust
34
star
22

material-update-beta

29
star
23

rblx_nurd

Open Source Nomad Usage Resource Dashboard
Go
28
star
24

Wiki-Lua-Libraries

Lua
26
star
25

avatar-evolution

Prototyping the future of games and avatars on Roblox
23
star
26

setup-foreman

GitHub Action to install Foreman, a toolchain manager for Roblox tools
TypeScript
21
star
27

dash

A collection of core utilities expanding the capabilities of Luau. This is a read-only mirror.
Lua
17
star
28

cryo

A collection of methods for working with immutable data in a functional way for Luau. This is a read-only mirror.
Lua
15
star
29

luau-regexp

A regular expression library for Luau. This is a read-only mirror.
Lua
15
star
30

jest-roblox

Delightful testing for Luau. This is a read-only mirror.
Lua
15
star
31

signal-lua

A well-structured, well-tested, and well-documented Luau signal implementation. This is a read-only mirror.
Lua
14
star
32

cla-signature-bot

GitHub Action for self-contained handling of CLA signatures
TypeScript
14
star
33

Catalog

The virtual gear items which make up the Roblox catalog
14
star
34

luau-polyfill

A set of utilities to mimic common JS polyfills needed for translating projects from JS to Luau. This is a read-only mirror.
Lua
13
star
35

rbx-test-files

A repository of small Roblox model and place files to exercise implementations
Lua
13
star
36

graphql-lua

A reference implementation of GraphQL for Luau. This is a read-only mirror.
Lua
12
star
37

chalk-lua

Terminal string styling library for Luau. This is a read-only mirror.
Lua
11
star
38

otter

Declarative animation library for Luau. This is a read-only mirror.
Lua
10
star
39

zen-observable-lua

An Implementation of Observables for Luau. This is a read-only mirror.
Lua
10
star
40

roact-navigation

A declarative navigation system for App UI, built on top of Roact. This is a read-only mirror.
Lua
9
star
41

rhysd-github-action-benchmark

GitHub Action for continuous benchmarking to keep performance Copied from https://github.com/rhysd/github-action-benchmark
TypeScript
9
star
42

picomatch-lua

Blazing fast and accurate glob matcher written in Luau. This is a read-only mirror.
Lua
8
star
43

UnicodeVisualizerPlugin

Deprecated Roblox Studio plugin for visualizing strings of unicode. Use the web version. https://tiffnix.com/unicode/
Lua
8
star
44

symbol-luau

A simple, stable implementation of Symbol in Luau. This is a read-only mirror.
Lua
7
star
45

TweenService-Editor

TweenService Visual Editor plugin for Roblox Studio
Lua
6
star
46

luau-tag-utils

Utility functions to query Instances from tags attached with CollectionService. This is a read-only mirror.
Lua
5
star
47

apollo-client-lua

Apollo Client for GraphQL translated to Luau. This is a read-only mirror.
Lua
5
star
48

chef-teamcity

TeamCity Chef cookbook
Ruby
4
star
49

cla-bot-store

Storage repository for CLA bot. Public so that forks can check the signature file directly.
4
star
50

dom-testing-library-lua

Simple and complete testing utilities that encourage good testing practices. This is a read-only mirror.
Lua
3
star
51

roact-performance-benchmarks

Performance benchmarks for Roact. This a read-only mirror
Lua
3
star
52

test-repo-2022080901

3
star
53

graphql-tag-lua

A Luau template literal tag that parses GraphQL queries. This is a read-only mirror.
Lua
3
star
54

data-tools

Java
2
star
55

strongdm-contrib

contributions to strongdm to help with security operations and automation
Python
2
star
56

react-testing-library-lua

Simple and complete testing utilities that encourage good testing practices. This is a read-only mirror.
Lua
1
star
57

chef-xcode

Ruby
1
star
58

.github

GitHub Meta-Repo
1
star
59

action-creator-docs-automation

GitHub Actions for Creator Docs
1
star