The 🔥 Blazingly-Fast 🔥 Web Server runtime for Lua

Built with Rust, Astra delivers unmatched performance, fault-tolerance and ease-of-use for your Lua servers

Incredibly Fast

Engineered for speed with Rust's zero-cost abstractions and an async, multi-threaded runtime

Lua Integration

Seamless integration with Lua for high-performance scripting.

Modular Design

Fault-tolerant and extensible architecture that grows with your application

Ease of Use

A single binary, packed with all the batteries included. Can also be used as a normal Lua runtime!

-- You can also use the local variables within routes
local counter = 0
Astra:get("/count", function(request, response)
    -- consume the request body
    print(request:body():text())

    -- set header code (Optional)
    response:set_status_code(300)
    -- set headers (Optional)
    response:set_header("header-key", "header-value")

    counter = counter + 1
    -- and also can return JSON
    return { counter_value = counter }
end)