FFFF GitHub - disini/mono: The niivue mono repo · GitHub
[go: up one dir, main page]

Skip to content
disiniPublic
forked from niivue/mono

About

The niivue mono repo

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

NiiVue Monorepo

Monorepo for the NiiVue ecosystem — browser-based medical image visualization.

Packages

Package Description npm
@niivue/niivueCore WebGPU/WebGL2 medical image viewernpm
@niivue/nvreactReact bindings for NiiVuenpm
@niivue/uikitRulers, crosshairs, annotations, and an on-canvas control layer (buttons, menus, sliders, text fields, dialogs) for NiiVuenpm
@niivue/nv-ohifNiiVue viewport extension for the OHIF Viewernpm
@niivue/nv-web-componentLit-based Web Components for NiiVuenpm
@niivue/nv-ext-drawingDrawing interpolation and segmentation toolsnpm
@niivue/nv-ext-image-processingImage processing (Otsu thresholding, haze removal, etc.)npm
@niivue/nv-ext-save-htmlExport a NiiVue scene as a self-contained HTML filenpm
@niivue/nv-ext-tileTiled formats: /tiff streams tiled/pyramidal TIFF, OME-TIFF and SVS slides (geotiff-rs; JPEG 2000 via dcm2niix) by HTTP Range; /dicom opens DICOM-WSI folders or hosted manifests (JPEG 2000 / JPEG-LS via dcm2niix); /zarr loads or streams OME-Zarr volumesnpm
@niivue/nv-mcpMCP server and page client so an agent can drive a NiiVue scenenpm
@niivue/web-bridgeTyped two-way JSON-envelope bridge between a NiiVue web view and a native (WKWebView) host—
NiiVueKitSwift package (BridgeCore + NiiVueKit) pairing with @niivue/web-bridge to embed NiiVue in SwiftUI apps via WKWebView—
@niivue/dev-imagesShared test volumes, meshes, and tractography files (Git LFS)—
ipyniivueJupyter widget wrapping NiiVue (anywidget) — Python wheelPyPI

Apps

App Description
demo-ext-drawingDemo app for the drawing extension
demo-ext-image-processingDemo app for the image processing extension
demo-ext-save-htmlDemo app for the save-to-HTML extension
demo-ext-fullstackFullstack demo wiring NiiVue to a Bun server that runs the niimath native binary
demo-ext-tilePan/zoom a tiled TIFF / SVS, DICOM-WSI or 2D OME-Zarr slide streamed by HTTP Range, or local files, via @niivue/nv-ext-tile; plus OME-Zarr pages (ome.zarr.html, range.html, vox.block.pick.zarr.html)
demo-mcpDemo page and Bun server for the MCP package, drivable from Claude Code
demo-nv-web-componentDemo app for the Web Components package
iiif-volumetric-serverIIIF Image API + Presentation API server for volumetric NIfTI and OME-Zarr fixtures
iiif-volumetric-demoBrowser demos for the IIIF volumetric server, including slices, volume sheets, fly-through, desktop, and OME-Zarr views
medgfxNative macOS/iOS SwiftUI app embedding NiiVue in a WebView

Getting Started

Use the hot-reloadable live demos for local development—they provide the fastest feedback loop while working on the project.

git clone git@github.com:niivue/mono.git
cd mono
bun install
bunx nx build niivue
git lfs install
git lfs pull
bun run dev

Core commands include

bun install                # Install all dependencies
bunx nx build <project>    # Build a single project (builds deps first)
bunx nx run-many -t build  # Build all projects
bunx nx run-many -t test   # Run all tests

See CONTRIBUTING.md for detailed setup, tooling, and development instructions.

Releasing and Publishing

Packages are versioned and published using Nx Release via the Release GitHub workflow:

  • Release candidates are published automatically on every push to main. Each merged PR that contains releasable conventional commits produces new x.y.z-rc.N versions on the npm next dist-tag.
  • Stable releases are manual. Run the Release workflow from the Actions tab on main with the "release candidate" box unchecked to publish x.y.z versions on the npm latest dist-tag.

See the Releases section of CONTRIBUTING.md for details. To publish by hand instead, ensure you are logged in to npm (npm login) and have publish access to the @niivue scope:

# 1. Version — bumps package.json and updates workspace deps
#    Use --first-release if no git tags exist yet for the project
bunx nx release version <version> --projects=<project>

# 2. Changelog (optional) — generate from conventional commits
bunx nx release changelog <version> --projects=<project>

# 3. Build
bunx nx run-many -t build --projects=<project1>,<project2>

# 4. Publish — run from each package directory
#    bun publish resolves workspace:* dependencies automatically
cd packages/<project> && bun publish --tag next --access public

Use --tag next for prerelease versions (e.g. 1.0.0-rc.1). Omit --tag for stable releases (defaults to latest). The --access pub 6101 lic flag is required for scoped @niivue/* packages.

GitHub Pages

Pushing to main automatically builds and deploys all examples and demo apps to GitHub Pages. To preview the site locally:

.github/build-pages.sh --serve   # build and serve at http://localhost:8080/

About

The niivue mono repo

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0