surrealdb / surrealdb.wasm

A WebAssembly engine for the SurrealDB JavaScript SDK
https://surrealdb.com
Apache License 2.0
114 stars 19 forks source link

Feature: provide a pre-built surrealdb.wasm binary #83

Closed nickchomey closed 4 months ago

nickchomey commented 4 months ago

Is your feature request related to a problem?

I want to try using surrealdb.wasm in a webapp, but there doesn't appear to be any wasm binary available anywhere, so I have to figure out how to build one myself. This doesnt make any sense.

Describe the solution

Provide a pre-built wasm binary for each release, perhaps even also stored in a cdn should we choose to import it like that.

Alternative methods

Building myself, which requires setting up lots of tooling and takes a long time.

SurrealDB version

all versions

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

kearfy commented 4 months ago

Hey @nickchomey, we provide surrealdb.wasm as a package on NPM, which can be used as an engine for surrealdb.js. The library is still in beta, however we will get more examples besides the README up in our documentation soon!

nickchomey commented 4 months ago

@kearfy Thanks for the quick reply! Ah, that was dumb of me not to try installing via npm. I see the binary in the node_modules directory. I got it built in the end, but i'll use npm going forward