Frontend Runtime
/
Provider & Runtime Modes
Provider & Runtime Modes
One setting picks where the engine runs — browser, S3, or a remote server.
<RAStackProvider mode=…> is the single setting that picks where the API runs. It reconfigures the shared axios client in place, so the generated hooks are unchanged across modes.
1
import
{
RAStackProvider
}
from
"rastack/provider"
;
3
export
default
function
App
()
{
5
<
RAStackProvider
mode
=
"local"
>
The WASM engine over an in-memory Iceberg warehouse, seeded from the committed data/warehouse files and persisted to IndexedDB.
The same WASM engine, warehouse walked from / and saved to S3 (roadmap).
Classic HTTP to rastack serve or a Lambda.
In local and s3 modes the provider installs a WASM adapter that dispatches requests into RastackApi.handle instead of the network. In remote mode it points the same client at a base URL. Either way, the hooks call the identical client interface.
› Good to know
Mode switching is a runtime concern, not a build concern. You can ship one bundle that runs entirely offline in development and against a Lambda in production.
Build with AI
Every page is available as clean Markdown for LLMs and coding agents. Point one at the files below to build on top of React API Stack.
React API Stack · alpha · built to scale to millions