Skip to main content

NetRay

High-Performance Roblox Networking Library

NetRay streamlines Roblox networking with enhanced performance, reliability features like circuit breakers, and a developer-friendly API including type safety and middleware support. Build robust and efficient networked experiences with less boilerplate.

⚡

Optimized Performance

Automatic event batching, efficient binary serialization, and intelligent compression reduce network load and improve responsiveness.

🔒

Enhanced Reliability

Built-in Circuit Breakers prevent cascading failures, while robust error handling and timeouts make your networking more resilient.

🛡️

Type Safety & Validation

Define data structures for your events and requests. NetRay automatically validates payloads, catching errors early in development.

⚙️

Flexible Middleware

Intercept, modify, or block network traffic using a powerful middleware system. Implement logging, rate limiting, or custom validation with ease.

🚀

Modern Developer Experience

Clean API using Promises for asynchronous requests, clear event handling patterns, and priority queues simplify complex networking code.

📊

Built-in Monitoring

Debug signals provide visibility into internal events, errors, and potentially network traffic, aiding optimization and troubleshooting.

Simple & Powerful API

-- Server: Register and handle an event
local myEvent = NetRay:RegisterEvent("SimpleGreeting", {
typeDefinition = { message = "string" }
})

myEvent:OnEvent(function(player, data)
print(player.Name, "sent:", data.message)

-- Reply back to just that player
myEvent:FireClient(player, { message = "Server received: ".. data.message })
end)

print("NetRay Server event handler ready.")