🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@kitware/vtk-wasm

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitware/vtk-wasm

A WebAssembly port of the VTK library

latest
Source
npmnpm
Version
1.3.1
Version published
Maintainers
5
Created
Source

vtk-wasm

Project Structure and Build Scripts

This repository provides the infrastructure to bundle the pure JavaScript library for loading VTK.wasm.

The full usage documentation of vtk-wasm can be found at: https://kitware.github.io/vtk-wasm/

File Structure

  • src/ — Source code for the library.
  • dist/ — Bundled output files.
  • wasm/ — WebAssembly binaries and related assets.
  • scripts/ — Utility scripts for building and packaging.
  • README.md — Project documentation.
  • package.json — Project metadata and build scripts.

Build Scripts

The following scripts are available in package.json:

  • npm run docs:build - Builds the guide pages for VTK.wasm
  • npm run build — Builds the ESM and UMD bundles for both RemoteSession and StandaloneSession.
  • npm run build:esm — Builds only the ESM bundles.
  • npm run build:vtk — Builds only the UMD bundle for StandaloneSession.
  • npm run build:viewer - Builds the vtkWASMViewer JavaScript library.
  • npm run clean — Cleans the dist/ directory.
  • npm run lint — Runs code linting on the source files.

Bundles

  • ESM Bundles: For both RemoteSession and StandaloneSession.
  • UMD Bundle: For StandaloneSession, exposed as the VTK namespace for use in browser environments.

Refer to the package.json for the full list of scripts and configuration details.

ESM imports

import { RemoteSession } from "@kitware/vtk-wasm/remote"
import { createVtkObjectProxy, createNamespace } from "@kitware/vtk-wasm/vtk"
import { ExportViewer, createViewer } from "@kitware/vtk-wasm/viewer"

UMD imports

import "@kitware/vtk-wasm/viewer.css";
import "@kitware/vtk-wasm/viewer-umd.js";

import "@kitware/vtk-wasm/vtk-umd.js";

FAQs

Package last updated on 19 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts