Skip to content

neuroimjsNeuroimaging for JavaScript

Volumetric data, NIfTI I/O, spatial transforms, and live WebGL brain viewers — in the browser and in Node.

Loading brain volume…

See it run

Everything below is a real neuroimjs viewer rendering a real MNI152 brain — no screenshots, no video. Drag to move the crosshair, scrub to change slices.

Loading brain volume…

ts
import { SimpleOrthogonalViewer } from 'neuroimjs'
import { loadNiftiVolume } from './load' // the small helper shown in Getting Started

const { vol, range } = await loadNiftiVolume('/data/mni152_t1.nii.gz')
const stack = makeStack(vol, range)

await SimpleOrthogonalViewer.create(document.getElementById('viewer'), stack, {
  layout: 'top-bottom',
  showCrosshair: true,
})

Pre-1.0 — and actively hardening

neuroimjs is at 0.1.0. The viewer stack, core data structures, NIfTI I/O, geometry, processing, and analysis primitives are covered by a fully green test suite. Remaining pre-1.0 work is structural consolidation — merging a few duplicate implementations behind the existing APIs. The Stability matrix lists the verified, up-to-date status of every feature.

Released under the MIT License.