Orbita v0.2.0 — The Fullstack Meta-Framework Release¶
Published on 2026-11-29
Orbita v0.2.0 transforms ob from a fast Lua runtime into a complete, batteries-included fullstack web meta-framework — still shipping as a single Rust binary with zero external runtime dependencies.
Highlights¶
1. ob:router & Modular Apps¶
Build clean, domain-organized web applications inspired by Django, Laravel, and Rails:
- File-based routing (index, [id], [...slug], _layout, _404, _error) that works identically in ob run and inside ob build --compile single-file binaries.
- Fluent chaining: router.new():static("/public", "public"):use(...):mount("/auth", ...):mount("/", ...).
- Built-in request context: URL-decoded ctx.query/ctx.params, ctx:form(), ctx:json_body(), ctx:files() (binary-safe multipart/form-data), ctx:validate(rules), ctx.cookies, ctx:set_cookie(), and one-shot ctx:flash().
2. Angular/Vue-Style .tyl + .html + .css Templates¶
Keep logic, markup, and styling cleanly separated — no JSX required:
- Automatic file pairing (index.tyl + index.html + index.css).
- Modern control flow: @if (...) { ... } @else { ... } and @for (item in list) { ... } @empty { ... }.
- Clean bindings: {{ expr }}, :attr="expr", @click="action", <slot />, and reusable <Component :prop="val" />.
3. ob:db & SQL Migrations¶
Declarative schemas inspired by Kotlin Exposed + Django / ActiveRecord ergonomics:
- conn:table("tasks", { ... }) + conn:create_tables(...) + db.default() singleton.
- Zero-boilerplate CRUD: :find, :find_by, :create, :update(id, {...}), :toggle(id, col), :destroy(id), :exists, :count, and :transaction(fn).
- Fluent SQL DSL with :select, :join, :left_join, :where, :where_like, :where_or_like, :order_by, :limit, :offset.
- Sequential SQL migrations via ob g migration <name>, ob db migrate, and ob db status.
4. Production HTTP Engine (Hyper) & Security¶
- Migrated
ob:httpserver to Hyper 1.x: HTTP/1.1 Keep-Alive, Chunked Transfer, HTTP/2, configurablemax_body_size(413 Payload Too Large), automatic Gzip compression, and Graceful Shutdown onCtrl+C. - Upgraded
ob:cryptopassword hashing to Argon2id (crypto.hash_password,crypto.verify_password,crypto.random_hex). - Built-in security middlewares:
router.csrf(),router.security_headers(),router.rate_limit(),router.cors(), plusAPP_ENV=productionstack-trace hiding.
5. Developer Experience¶
- 12-Factor Runtime Config:
config.toml+ob:config+http.serve(handler)withENV > config.toml > defaults. - CLI Generators:
ob init --web,ob g app,ob g route,ob g component,ob g migration. - Browser Live Reload:
ob run --watchnow restarts HTTP servers cleanly and auto-reloads open browser tabs. - Native
ob.class(base?): clean OOP without__indexboilerplate. - JS Compiler & Islands: fixed multiline returns,
export default, table-typed params, and addeduseState/hydrateIslands+html.raw()/html.island().