# @concavejs/runtime-embedded

An in-process Concave runtime for browser, worker, Tauri, React Native, and
other application-owned hosts.

Install it when the backend must run inside the application rather than as a
Bun, Node.js, or Cloudflare server. Choose memory or a matching embedded
storage adapter, then provide function modules explicitly.

```ts
import { createConcave, memory } from "@concavejs/runtime-embedded";

const runtime = createConcave({
  modules: { "messages.ts": () => import("./convex/messages.ts") },
  storage: memory(),
  isDev: true, // required: no implicit default. Use false in production builds.
});
```

`isDev` is required and fails closed when omitted. Options for the scheduler and auth are also available; see the `ConcaveOptions` type in `src/runtime.ts`.

The embedded runtime is preview functionality in this alpha. See [support and
stability](https://docs.concave.dev/reference/support/).
Licensed under
[custom functional-source license terms](https://docs.concave.dev/reference/license/).
