Skip to content
v0.2.0 • Luau + Rust + Tokio

The all-in-one runtime for Lua.

Run modern Lua with optional typing, native speed, Deno-style security permissions, bundled SQLite, a decentralized package manager, and Go-style single-file executables.

Embedded Luau VM --allow-* Permissions Bundled SQLite Single-File Binary + Embed .luax SSR + JS Target

Install ob in seconds

cargo install --git https://github.com/k-wrk/Orbita.git
ob --version
git clone https://github.com/k-wrk/Orbita.git
cd Orbita
cargo install --path .
mkdir my-app && cd my-app
ob init my-app
ob run src/main.tyl

Write less. Ship everything in a single binary.

From an HTTP server with JSX in Lua to a standalone executable with embedded assets — no LUA_PATH configuration or external dependencies required.

-- src/server.luax
local http = require("ob:http")

local function Page(props: { title: string })
    return (
        <html>
            <body>
                <h1>{props.title}</h1>
                <p>Rendered directly in Orbita's Luau VM.</p>
            </body>
        </html>
    )
end

http.serve({ port = 3000 }, function(req)
    return <Page title="Orbita Fullstack" />
end)
ob run --allow-net=127.0.0.1:3000 src/server.luax
-- src/db.tyl
local sqlite = require("ob:sqlite")
local json = require("ob:json")

local db = sqlite.open(":memory:")
db:exec("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)")
db:exec("INSERT INTO users (name) VALUES (?)", { "Ada Lovelace" })

local rows = db:query("SELECT id, name FROM users")
print(json.encode(rows))
db:close()
ob run src/db.tyl
-- src/math_test.tyl
describe("Typed Math", function()
    test("adds two numbers", function()
        local function add(a: number, b: number): number
            return a + b
        end
        expect(add(2, 3)).to_be(5)
    end)
end)
ob test
-- src/app.tyl
local embed = require("ob:embed")
local html: string = embed.read("assets/index.html")
print(html)
# Compiles runtime + code + assets/** into a single executable
ob build src/app.tyl --compile -o dist/my-app
./dist/my-app
-- src/card.luax
function Card(props: { title: string })
    local msg: string = "Card: " .. props.title
    return <section class="card"><h2>{msg}</h2></section>
end
ob build src/card.luax --target js -o dist/card.js

Everything you need, built into ob

The ergonomics of Bun, the security model of Deno, the single-binary distribution of Go, and Gleam-inspired web compilation.