New · Rust backend + IoT

The same system in Rust — from the web server to the sensor in the field.

Logic blocks compiled to WebAssembly and run in a sandbox, pages in MiniJinja, the same editor and database. Plus devices: ESP32, STM32 and Linux boards written by the same prompt.

Why Rust

Fast because it is compiled. Safe because every block is boxed.

Compiled, not interpreted

Every API, FUNCTION, FIELD, CRON and QUEUE block the AI writes in Rust is compiled once when it is saved. Requests run the ready WebAssembly — no warm-up, no interpreter.

A sandbox for every block

User code runs inside wasmtime with a memory cap and a time limit. It has no files, no network and no environment of its own: everything goes through one checked door, help.*.

The same system, a faster engine

Same tables, same composer JSON, same editor, same signatures as Laravel and Python. Pages stay templates (MiniJinja); logic becomes Rust. Switch runtimes without moving data.

What the AI writes

A block is a small Rust function. The header says when it runs.

API block

Rust
use gea_sdk::prelude::*;

fn main(h: &mut Help) -> Result {
    let rows = h.table("products")
        .where_("status", 1)
        .order_by("id", "desc")
        .limit(10)
        .get()?;
    h.json(json!({ "status": true, "items": rows }))
}

Sensor block (device)

block
<<<SENSOR>>>
device: farm-node
name: soil-moisture
uses: soil-adc
driver: none
every: 30s
fields: moisture %, raw
send: change:2
table: farm_soil_readings
---CODE---
use gea_sdk::prelude::*;
const DRY_RAW: f64 = 3200.0; // adc raw in dry air
const WET_RAW: f64 = 1300.0; // adc raw in water
fn main(h: &mut Help) -> Result {
    let raw = h.adc("soil-adc")?["raw"].as_f64().unwrap_or(0.0);
    let pct = ((DRY_RAW - raw) / (DRY_RAW - WET_RAW) * 100.0).clamp(0.0, 100.0);
    h.json(json!({"moisture": (pct * 10.0).round() / 10.0, "raw": raw}))
}
<<<END_SENSOR>>>
IoT

Six new blocks turn a website into a device platform.

<<<DEVICE>>>

One kind of device: board, network, how often it reports, offline buffer, who may see it.

<<<PIN>>>

Every pin and bus by name — GPIO, PWM, ADC, I²C, SPI, UART, RS-485, 1-Wire. Change the board = change only PIN blocks.

<<<SENSOR>>>

Ready drivers (DHT22, DS18B20, BME280, SHT31, BH1750, HC-SR04, Modbus…) or your own Rust; readings land in a table.

<<<COMMAND>>>

The server tells a device to act — run the pump 30 s — with parameter rules and roles checked before it is queued.

<<<RULE>>>

Automation on the device (works offline) or on the server (mail, tables, other devices), with when / if / cooldown in the header.

<<<SYNC>>>

Tables shared between the server and the device: schedules down, logs up, with conflict rules.

Where the code runs

Linux boards (Raspberry Pi 64/32-bit, gateways)Blocks run as WebAssembly in the same sandbox as the server; new code is loaded without a reboot. Local SQLite keeps readings while offline.
ESP32 · ESP32-S3 · ESP32-C3 · ESP32-C6The server builds one firmware per device kind; devices update over the air and roll back by themselves if the new firmware cannot reach the server.
STM32 (F4 / H7)Ready firmware template (no_std) flashed over USB/SWD; it talks to the server through a Linux gateway over UART / RS-485.
Each device can serve its own small dashboard on the local network (PIN-protected), and your website gets device lists, last readings and command buttons through the same blocks.
Price

One package. IoT included.

$99$165one time

Backend · Rust: pay once, free updates, unlimited projects on your servers. Devices, sensors, commands, rules and sync are inside — no per-device fee. Apps and games (React Native, Flutter, Android, iOS, Unity) work with it like with the other backends.

See pricing
Install

One binary, two services.

bash
# server: Ubuntu 22.04 / 24.04, run as root. The script installs Rust + the wasm32-wasip2 target itself.
sudo apt install -y unzip
sudo unzip vybev-backend-rust.zip -d /opt/gea_rs-src && cd /opt/gea_rs-src
sudo bash deploy/install-server.sh --site /var/www/site --domain example.com
# 1st run stops after writing /var/www/site/.env → set DATABASE_URL there, then:
sudo bash deploy/install-server.sh --site /var/www/site --domain example.com --email admin@example.com

Full install guide: server, Raspberry Pi, ESP32, STM32, MQTT

Devices: an ESP32 is flashed once over USB, then updates itself. A Raspberry Pi (64-bit OS) runs the gea-edge service and downloads its blocks by itself. Building ESP32 firmware on the server needs the ESP toolchain (espup + esp-idf).
Questions

Before you start.

Do I need to know Rust?

No. Like the other backends, the AI writes the blocks from the prompt; the Studio checks and compiles them when you save.

Can I move an existing Laravel or Python site to Rust?

Yes — the data stays. Pages and templates keep working; logic blocks are written again in Rust from the same prompt (⬇ ZIP in the Studio gives you the current blocks).

Is IoT an extra package?

No. Devices, sensors, commands, rules and sync are part of the Rust backend.

How do devices talk to the server?

Signed HTTPS polling from the device — it works behind any router or 4G without opening ports. Networks that only allow MQTT: point the device at your broker and run the bridge next to the server.

Any board limits?

A 32-bit Pi OS works but runs blocks slower (interpreter) — prefer a 64-bit OS. STM32 firmware is built from the template, not by the server. Each run on ESP32 has a 200 ms budget.

Pricing

Pay once. Ship for as long as you want.

From $59, lifetime. Free updates. Unlimited projects on your own server.