Welcome to the NPZ/NPY Web Viewer, a modern, feature-rich tool designed for interactive visualization and exploration of .npz and .npy files.

- Upload
.npzor.npyfiles to visualize multidimensional arrays directly in your browser. - Handles multiple arrays in a single
.npzfile seamlessly.
- View arrays with multiple chart types:
- π 3D Scatter Plot
- π’ 3D Surface Plot
- π΅ Scatter Plot
- π Line Chart
- βͺ Grayscale Image
- Switch between chart types interactively for deeper insights.
- Apply machine learning algorithms directly to your data:
- Clustering:
- K-means clustering with customizable number of clusters
- DBSCAN clustering with adjustable epsilon and minimum samples
- Dimensionality Reduction:
- Principal Component Analysis (PCA) with selectable components
- Clustering:
- Interactive visualizations of ML results with detailed metrics
- Normalize data option for better algorithm performance
- Download CSV: Convert arrays into
.csvfiles for easy sharing and analysis. - Save 3D Plots: Export interactive 3D plots for use in presentations or reports.
- Intuitive dropdowns for selecting chart types.
- Dynamic resizing and rendering for smooth user experience.
- Powered by Next.js with React for a seamless UI.
- All processing happens client-side β no backend required.
- Node.js >= 18.x
- Docker (optional)
-
Clone the repository:
git clone https://github.com/<your-username>/npz-web-viewer.git cd npz-web-viewer/npz_viewer_client
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Access the app in your browser:
http://localhost:3000
To run both the backend and the frontend services together:
-
Navigate to the Project Root:
cd /path/to/your/project -
Run the Services: Use the following command to start the backend and frontend:
docker-compose up
This will:
- Build the frontend Docker image.
- Start the service and expose it on:
- Frontend: http://localhost:3000
If you want the services to run in the background:
docker-compose up -d- View any
.npzor.npyfile effortlessly.
- Switch between visualization modes:
- 3D Scatter, 3D Surface, Line Chart, and more!
- Cluster your data with K-means or DBSCAN
- Reduce dimensions with PCA
- Visualize results with interactive plots
- Adjust algorithm parameters in real-time
- Export data as
.csvor save interactive plots for offline use.
We welcome contributions! Feel free to fork the repo and submit pull requests to improve this project.
This project is licensed under the BSD 3-Clause. See the LICENSE file for details.




