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.
Install ob in seconds¶
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/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()
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.
Lua with Gradual Typing
Embedded Luau VM with fast execution, native standard Lua (.lua) support, and the typed .tyl (TypeLua) extension.
Deno-Style Permissions
Zero system access by default. Grant fine-grained filesystem, network, env, or subprocess permissions with --allow-*.
Native ob:* Stdlib
HTTP server/client, bundled SQLite, JSON, FS, SHA-256 crypto, Path, Env, Process, Embed, and HTML SSR — all written in Rust.
PackagesDecentralized Package Manager
Install directly from GitHub with ob add, content-addressable global cache with hardlinks, and SHA-256 verification via ob.lock.
Single Binary + Embed
Ship self-contained executables with ob build --compile and read bundled assets from memory via ob:embed.
.luax (JSX) + JS Target
Write declarative HTML-like components inside Lua for server-side rendering or compile directly to modern JavaScript.