
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A powerful napari plugin for comprehensive NIfTI file analysis and visualization.
napari-nifti-viewer is a comprehensive napari plugin specifically designed for reading, analyzing, and visualizing NIfTI (.nii/.nii.gz) files. It provides detailed metadata extraction, intelligent label detection, and seamless integration with napari's visualization capabilities.
The plugin provides a clean, organized interface with three main tabs:
Displays basic file information and data statistics including file size, format, data shape, and statistical measures.
Shows complete NIfTI header fields and metadata in an organized table format, alongside full JSON metadata export.
Provides intelligent label detection and statistical analysis with automatic identification of label images and distribution analysis.
pip install napari-nifti-viewer
git clone https://github.com/yohanchiu/napari-nifti-viewer.git
cd napari-nifti-viewer
pip install -e .
import napari
from napari_nifti_viewer import NiftiViewerWidget
# Create napari viewer
viewer = napari.Viewer()
# The plugin will be available in the Plugins menu
# Or you can add it programmatically:
widget = NiftiViewerWidget(viewer)
viewer.window.add_dock_widget(widget, name="NIfTI Viewer")
The plugin allows you to export complete metadata including:
.nii
- Uncompressed NIfTI files.nii.gz
- Compressed NIfTI files# Clone the repository
git clone https://github.com/yohanchiu/napari-nifti-viewer.git
cd napari-nifti-viewer
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
python -m pytest
# Basic functionality test
python test_plugin.py
# Test with napari interface
python test_plugin.py --napari
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
If you use this plugin in your research, please consider citing:
@software{napari_nifti_viewer,
title={napari-nifti-viewer: Comprehensive NIfTI Analysis for napari},
author={Qiu Yuheng},
year={2024},
url={https://github.com/yohanchiu/napari-nifti-viewer}
}
Made with ❤️ for the napari and neuroimaging communities
FAQs
A comprehensive napari plugin for NIfTI file analysis and visualization
We found that napari-nifti-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.