
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
napview
Advanced tools
Read the manual here: napview.netlify.app
NAPVIEW is a user-friendly software for automatic real-time sleep stage classification in the sleep lab. It provides a real-time interface to deep learning machine learning algorithm output. It connects to live EEG data, runs automated sleep stage classification using powerful machine learning tools, and displays stage probabilities and signal features. NAPVIEW runs independently of existing lab setups and is intended to make the lives of researchers easier during live monitoring at night.
At present NAPVIEW directly supports BrainVision and OpenBCI EEG hardware, but any EEG system that allows real-time signal streaming can be connected through a labstreaminglayer (LSL) connector.
The easiest way to use napview on Windows is to download the portable self-extracting installer.
Note: due to the restrictive environment of Windows, you may see a "Search on app store" popup window. Click "No". You may also see the blue Smartscreen warning. In that case click "More info" and then "run anyway". You can also right-click NAPVIEW.exe, go to Properties and tick the box "Unblock". Should this fail, try installing via the standalone archive or pip (see below).
Download the zip archive, extract it to your preferred location, then double click run_napview.bat to start NAPVIEW. This installation method can be useful on systems without admin priviledges.
First install e.g. Miniconda.
Windows:
conda create -n napview-env python=3.11 -y
conda activate napview-env
pip install napview
macOS/Linux:
conda create -n napview-env python=3.11 -y
conda activate napview-env
pip install napview
Launch NAPVIEW:
conda activate napview-env
napview
Note: on first run, NAPVIEW may download model weights via the NIDRA backend.
NAPVIEW launches a local control panel in your browser and opens a second tab for the real-time visualizer. The default control URL is http://127.0.0.1:8145. If that port is unavailable, NAPVIEW will pick the next free port. The browser window should open automatically.
Start NAPVIEW.exe or run napview in a terminal or command prompt. A browser window opens with the control panel.
Use the Data directory selector to choose where session files and outputs are stored. The default location is your user data directory under napview/data.
CTRL+R, then type cmd, press Enter. Next, type ipconfig, press Enter, and look for an entry under "Ethernet adapter" or "Wireless LAN adapter Wi-Fi" if using Wi-Fi labeled "IPv4 Address"). The number shown next to IPv4 Address is the IP address of the EEG acquisition PC. The port is typically 51234.napview_EEG_stream).Choose the sleep staging model. Currently only U-Sleep is available, which is a reliable state-of-the-art autoscorer.
Click START napview. A new tab opens with the real-time visualizer, typically at http://127.0.0.1:8245. Sleep stage probabilities stabilize after several minutes of data. Less than 5 minutes of data will likely not result in reliable estimates. A maximum of 15 minutes of past data will be used.
Once the experiment session is finished, click SHUTDOWN and save to stop the session and write outputs.
NAPVIEW uses the NIDRA backend for real-time scoring. The default staging model is U-Sleep, which has been validated in large multi-center datasets. For detailed performance metrics, refer to the original U-Sleep publication:
U-Sleep: resilient high-frequency sleep staging (Perslev et al., 2021)
Q: The GUI did not open.
A: Check the terminal output for the correct URL, normally http://127.0.0.1:8145, and enter it manually in the browser. Otherwise check the logs, which should be in your user directory, e.g. C:\Users\<your-username>\AppData\Local\napview\data.
Q: The visualizer tab is empty or only shows a text message.
A: This usually means the data stream has not started or there is no incoming data. Confirm the data source and check the status panel for red warnings. Otherwise check the logs.
Q: My BrainVision EEG amp does not connect.
A: Verify the RDA plugin is enabled and the IP/port are correct.
Q: Custom LSL stream not found.
A: Ensure the stream is running, the stream name matches exactly, and the stream type is EEG.
If you use NAPVIEW in your research, please cite the NAPVIEW repository and the underlying models.
Zerr, P. (2025). napview: real-time sleep scoring and analysis visualizer. GitHub. https://github.com/paulzerr/napview
Perslev, M., et al. (2021). U-Sleep: resilient high-frequency sleep staging. NPJ Digital Medicine.
This project is released under the BSD-3 Clause License.
For questions, bug reports, or feedback, please contact Paul Zerr at paul.zerr@donders.ru.nl.
FAQs
Real-time sleep scoring and analysis visualizer.
We found that napview 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.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.