Skip to content

JavaScript API

GenomeSpy's JavaScript API supports embedding visualizations, controlling live view hierarchies, updating runtime state, attaching developer inspection tools, exporting images, and customizing embed behavior.

The embed function returns a promise that resolves into an object that provides the current public API. The API is documented in the interface definition.

For practical examples of using the API, check the embed-examples package.

API topics