JavaScript NPM Installation

Perspective releases contain several different builds for use in most environments.

Browser

Perspective's WebAssembly data engine is available via NPM in the same package as its Node.js counterpart, @finos/perspective. The Perspective Viewer UI (which has no Node.js component) must be installed separately:

$ npm add @finos/perspective @finos/perspective-viewer

By itself, @finos/perspective-viewer does not provide any visualizations, only the UI framework. Perspective Plugins provide visualizations and must be installed separately. All Plugins are optional - but a <perspective-viewer> without Plugins would be rather boring!

$ npm add @finos/perspective-viewer-d3fc @finos/perspective-viewer-datagrid @finos/perspective-viewer-openlayers

Node.js

To use Perspective from a Node.js server, simply install via NPM.

$ npm add @finos/perspective