Volumes, 4D & beyond
Dense, sparse, clustered, and logical volumes; 4D time-series (NeuroVec) and 5D+ hyper-volumes — all backed by typed arrays.
Data structures
Volumetric data, NIfTI I/O, spatial transforms, and live WebGL brain viewers — in the browser and in Node.
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.
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.