The SurrealDB JavaScript SDK supports two engines for running in embedded mode.
Node.js : Run SurrealDB as an embedded database within a server-side environment, backed by either an in-memory engine or SurrealKV.
WebAssembly : Run SurrealDB as an embedded database within a browser environment it enables SurrealDB to be run in-memory, or to persist data by running on top of IndexedDB.
Learn more about the Node.js engine and the WebAssembly engine in the following sections.