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.
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.
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.*.
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.
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>>>
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>>><<<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.
| 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-C6 | The 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. |
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# 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.comFull install guide: server, Raspberry Pi, ESP32, STM32, MQTT
No. Like the other backends, the AI writes the blocks from the prompt; the Studio checks and compiles them when you save.
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).
No. Devices, sensors, commands, rules and sync are part of the Rust backend.
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.
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.
From $59, lifetime. Free updates. Unlimited projects on your own server.