Skip to content

RxFerrixRust backends with live data

Define tables and functions in Rust. Subscribe from React or Svelte. Deploy your app with an embedded database.

RxFerrix

Start with a working app ​

Install Rust and Bun, then create a project:

sh
cargo install rxferrix-cli
rxferrix new my-app
cd my-app
cargo run -- serve --dev

In a second terminal, run bun install and bun run dev inside my-app/web. Open http://localhost:5173 in two tabs to see live task updates.

The walkthrough explains the files, dashboard setup, and how to rebuild after a backend change. Choose --web svelte for Svelte 5 or --web none for a backend only.

Understand the three function types ​

FunctionWhat your code doesHow clients use it
QueryRead a consistent snapshot and return data.Subscribe and receive updated results.
MutationValidate and change data in one transaction.Await the write and updated subscriptions.
ActionCall external services or coordinate other functions.Await a result; external effects are not transactional.

Tables are Rust structs. Functions live in normal Rust modules. Codegen produces api.tasks.list and other typed references for your frontend. Core concepts explains how these pieces fit together.

Find what you need ​

BuildRun
Functions and dataDeploy an app
Connect a clientUpdate a running app
Authentication and authorizationBackups and restores
Files and background workLogs and metrics

For a complete app, explore the repository's todo or chat example. For exact signatures and wire formats, use the Rust API, protocol, and command line references.

Know the deployment model ​

RxFerrix uses one active server and a SQLite database on local disk. It supports concurrent reads, transactional writes, takeover updates, and recovery from backups or replication. It does not distribute live writes across nodes or persist offline client state. Read Behavior and limits when deciding whether this model fits your app.