chi0sk
github.com/chi0sk

chi0sk / open source

Updating and open-sourcing
my Roblox projects.

A collection of infrastructure libraries I've built over the years - now cleaned up, documented, and open for anyone to use.

ChronicleStore v1.0.0

Production-ready DataStore wrapper with session locking, automatic lease management, hash verification, and circuit breaker protection.

DataStore Session Locking Circuit Breaker Write Coalescing
NetReplication v1.0.0

Delta-compressed real-time state replication with integrity verification, batch optimization, and automatic client reconciliation.

Replication Delta Compression Integrity Checks Batching
TaskScheduler v2.0.0

Distributed job processing with exactly-once execution, priority queues, work stealing, and cross-server coordination via MessagingService.

Distributed Jobs Exactly-Once Priority Queues Work Stealing
RateLimiter v3.1.0

Distributed rate limiting with ring buffers, CRDT delta merging, vector clocks, four algorithm strategies, and automatic penalty boxes.

Rate Limiting CRDT Vector Clocks Distributed
StateMachine v1.4.0

Deterministic hierarchical state machine with guards, nested states, timeout transitions, snapshot/restore, cycle-safe cloning, and a cooperative event queue.

HSM Guards Snapshot Event Queue
CircuitBreaker v1.1.0

Per-resource fault isolation with consecutive and sliding window failure modes, probe-based recovery, call timeouts, fallbacks, and optional EventBus integration.

Fault Isolation Sliding Window Half-Open Probes Fallbacks
EventBus v1.1.0

Hierarchical pub/sub event bus with trie routing, *, and ** pattern matching, middleware pipeline, namespaces, dead letter tracking, and optional cross-server distribution.

Pub/Sub Pattern Matching Middleware Distributed

Player Data Pipeline
ChronicleStore loads and saves player profiles. NetReplication syncs derived state to clients in real-time. RateLimiter guards save endpoints from abuse.
ChronicleStore NetReplication RateLimiter
Background Processing
TaskScheduler queues deferred work like leaderboard updates and analytics. ChronicleStore persists results. RateLimiter throttles job submission per user.
TaskScheduler ChronicleStore RateLimiter
Economy & Trading
RateLimiter gates trade requests. TaskScheduler processes them with exactly-once guarantees. ChronicleStore commits the result. NetReplication pushes balance updates.
RateLimiter TaskScheduler ChronicleStore NetReplication
Service Health Monitoring
CircuitBreaker wraps DataStore and HTTP calls to stop hammering failing services. EventBus broadcasts state change events so other systems can react. StateMachine drives UI or logic based on service health.
CircuitBreaker EventBus StateMachine
Game Event System
EventBus routes combat, economy, and social events across systems with pattern matching and priority ordering. StateMachine consumes events to drive player state. RateLimiter caps event submission per player.
EventBus StateMachine RateLimiter