# JavaScript Embed The [`vegafusion-wasm`](https://www.npmjs.com/package/vegafusion-wasm) NPM package provides a JavaScript API for embedding Vega charts backed by VegaFusion in web applications. These charts can be connected to a local VegaFusion runtime compiled to WebAssembly, or a remote VegaFusion server over gRPC-Web. ## Usage See the [vegafusion-wasm README](https://github.com/vega/vegafusion/blob/v2/vegafusion-wasm/README.md) for usage instructions. ## Demo See [editor demo](https://github.com/vega/vegafusion/tree/main/examples/editor-demo) for a complete example.