flow-web 0.2.0
Install from the command line:
Learn more about npm packages
$ npm install @estuary/flow-web@0.2.0
Install via package.json:
"@estuary/flow-web": "0.2.0"
About this version
This is the source for the flow-web
NPM package, which exposes Javascript/Typescript bindings to Flow library functions in Web Assembly (WASM).
The gist is that we compile this Rust crate to WASM and then generate the corresponding JS/TS files using wasm-bindgen
. We use wasm-pack
to put
everything together into an NPM package that works with Webpack, and publish that to Github packages.
In order to build this crate, you need the following things installed:
wasm-pack
CLI- The
wasm32-unknown-unknown
compilation target (rustup target add wasm32-unknown-unknown
)
wasm-pack build crates/flow-web
wasm-pack test --headless --firefox crates/flow-web
Currently, this only exposes a basic schema inference function, to prove out the functionality and give us a starting point. We'll very likely need to add functionality in order to make this truly useful by the UI.