This directory contains examples showing how to use Neuroglancer as a library in a client-side web application.
WARNING: Neuroglancer does not yet offer any stability guarantees for the JavaScript API.
Neuroglancer can be used as a dependency in two ways:
-
Installing directly from the Github repository, via:
npm install google/neuroglancer
-
Linking to a local checkout of the Neuroglancer repository via:
npm link neuroglancer
or
npm install file:/local/path/to/neuroglancer
This may be useful when developing Neuroglancer locally. In this case the dependent project directly consumes the original TypeScript sources, and must be configured with appropriate transpilation support.
The following bundlers are known to be compatible:
esbuild is not compatible due to evanw/esbuild#795