Framework guides
Every sp00ky client side by side: which package to install, the same live query in each, and what each one supports.
sp00ky has one sync engine and a client for each place your app runs. The TypeScript core
(@spooky-sync/core) runs in the browser, and the Solid, Solid 2, React, Svelte and Angular bindings wrap
it in each framework’s own reactivity. Flutter apps use the Dart client, and desktop apps, CLIs and
services use the Rust client. They all talk to the same server with the same protocol, so a web
app, a phone and a desktop app can share one database and see each other’s writes live.
Pick a client
| Client | Install | Runs on | Guide |
|---|---|---|---|
| SolidJS | @spooky-sync/client-solid | Browser, Solid 1.x | SolidJS guide |
| Solid 2 (RC) | @spooky-sync/client-solid2 | Browser, Solid 2.0 RC | Solid 2 guide |
| React | @spooky-sync/client-react | Browser, React 18 and 19 | React guide |
| Svelte | @spooky-sync/client-svelte | Browser, Svelte 5.29+ (runes) | Svelte guide |
| Angular | @spooky-sync/client-angular | Browser, Angular 21+ (signals) | Angular guide |
| Flutter | spooky_core and spooky_flutter (Dart, from git) | Flutter apps on iOS and Android | Flutter guide |
| Rust | spooky-core crate (from git) | Desktop apps, CLIs and services | Rust guide |
| Vanilla JS / TS | @spooky-sync/core | Browser, with any framework or none | Vanilla guide |
The TypeScript clients run SurrealDB and SQLite as WebAssembly with IndexedDB or OPFS and web workers, which React Native does not have. For a mobile app, use the Flutter client.
The same live query in each
The latest 20 threads, newest first. Each version paints from the local store first, then stays live: a local write, another tab or another device updates it without a refetch.
SolidJS
Solid 2
React
Svelte
Angular
Flutter
Rust
Vanilla JS / TS
How each one hands you data
| Client | Live results | Writes | Loading state |
|---|---|---|---|
| SolidJS | Accessors: threads.data() | db.create / db.update / db.delete | isLoading() |
| Solid 2 | Accessors, plus ready() for <Loading> suspension | Same, plus createSubmission for button state | isLoading(), isEmpty(), isSettled() |
| React | Plain values through useSyncExternalStore, rows keep their identity between updates | Same, plus useSubmission for button state | isLoading, isEmpty, isSettled |
| Svelte | Reactive getters on runes: threads.data, rows keep their identity between updates | Same, plus useSubmission for button state | isLoading, isEmpty, isSettled |
| Angular | Signals: threads.data(), rows keep their identity between updates | Same, plus injectSubmission for button state | isLoading(), isEmpty(), isSettled() |
| Flutter | Stream<List<T>> from the generated AppDb, for a StreamBuilder | create / update / delete on the client or the typed tables | isQueryAuthoritative, isQuerySettled |
| Rust | LiveQuery: rows() now, changed().await for each update | create / update / delete, typed structs from build.rs | is_authoritative() and status() on the live query |
| Vanilla | client.subscribe(hash, callback) | client.create / update / delete | subscribeQueryAuthority, subscribeQueryStatus |
Every client writes to the local store first and syncs in the background, so writes work offline and the UI updates before the server answers.
What each client supports
| Feature | Solid | Solid 2 | React | Svelte | Angular | Flutter | Rust | Vanilla |
|---|---|---|---|---|---|---|---|---|
| Live queries, mutations, auth | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Offline and sync health | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| File buckets | Yes, with <BucketImage> | Yes, with <BucketImage> | Yes, with <BucketImage> | Yes, with <BucketImage> | Yes, with <sp00ky-bucket-image> | Yes, with BucketImage | Yes | Yes |
| Feature flags and app releases | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| CRDT fields | Yes | Yes | Yes | Yes | Yes | No | No | Yes |
| Peer to peer channels | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Push | Web Push | Web Push | Web Push | Web Push | Web Push | APNs and FCM | APNs and FCM | Web Push |
One schema, every client
All clients read the same .surql schema. spky generate writes the TypeScript and Dart types
from the clientTypes entries in sp00ky.yml, and Rust apps generate theirs from a build.rs.
See Generated types.