Live query results
Queries track their database reads. Committed writes update the subscribers whose results may have changed.
Define tables and functions in Rust. Subscribe from React or Svelte. Deploy your app with an embedded database.
Install Rust and Bun, then create a project:
cargo install rxferrix-cli
rxferrix new my-app
cd my-app
cargo run -- serve --devIn 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.
| Function | What your code does | How clients use it |
|---|---|---|
| Query | Read a consistent snapshot and return data. | Subscribe and receive updated results. |
| Mutation | Validate and change data in one transaction. | Await the write and updated subscriptions. |
| Action | Call 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.
| Build | Run |
|---|---|
| Functions and data | Deploy an app |
| Connect a client | Update a running app |
| Authentication and authorization | Backups and restores |
| Files and background work | Logs 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.
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.