npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@viamrobotics/visualization

v4.1.0

Published

Motion visualization with Viam

Readme

Viam Visualization

3D visualization interface for spatial data using Viam's APIs — frame systems, geometries, point clouds, drawings — for motion-related monitoring, testing, and debugging.

Documentation

📚 viamrobotics.github.io/visualization is our guide to a few popular use cases. It covers:

Quick start

make setup     # one-time: install Node 22, pnpm, Go, buf, project deps
make up        # http://localhost:5173

For manual setup, machine configs, multiple instances, and troubleshooting see the local-usage guide.

Contributing

Run the dev server with HMR:

pnpm dev

See CLAUDE.md for contributor conventions.

Desktop app

The visualizer also builds as a desktop app with Electron. It wraps the same static build the browser gets and bundles the Go draw server as a sidecar. A packaged app starts the sidecar on a free port and stops it when the app quits, so the draw-service panel is live with nothing else running. You need Go and nlopt with its static library (etc/setup.sh installs it). Electron itself comes from pnpm install.

An unpackaged run does not start the sidecar, because pnpm dev already runs a draw server on 3030. Set VIAM_VISUALIZER_SIDECAR=1 to start it anyway, after pnpm build:sidecar. That builds the sidecar alone, into dist-sidecar/, and fails if the binary links any non-system library. A platform where nlopt cannot be linked statically can build with GOFLAGS=-tags=nomotionplan, which drops IK inspection from the sidecar. Windows always builds that way, because RDK's nlopt solver does not support Windows, so the Windows desktop app has no IK inspection.

pnpm electron:dev     # dev server in a desktop window, with HMR
pnpm electron:start   # the static build in a desktop window
pnpm electron:build   # packaged app for this platform under dist-desktop/

The main process and preload live in electron/, and packaging is configured in electron-builder.yml. The app version follows version in package.json. An unpackaged run on macOS still shows "Electron" as its Dock name, because that comes from the stock Electron binary. A packaged app shows "Viam Visualizer".

The app connects on boot when started with --launch-file <path>. The file is JSON, version 1, written by the Viam CLI with 0600 permissions. The app deletes it after reading, unless it is not JSON or has no version key:

{
	"version": 1,
	"host": "<part fqdn>",
	"partId": "<part id>",
	"partName": "<part name>",
	"machineName": "<machine name>",
	"signalingAddress": "https://app.viam.com:443",
	"serviceHost": "https://app.viam.com",
	"credentials": { "type": "access-token", "payload": "<jwt>" }
}

credentials is alternatively { "type": "api-key", "authEntity": "<key id>", "payload": "<key>" }. A second launch with a new file switches the running window to that machine. On macOS, open -a <app> <path> works too, and is the only form that reaches an app already running, since open drops --args then. With no flag the app behaves like the browser build.

Every GitHub release carries desktop bundles built by electron-release.yml, named viam-visualizer-<version>-<platform>-<arch><suffix> with platform one of darwin, linux, windows and arch one of aarch64, x86_64. The suffixes are .dmg and .app.tar.gz on macOS, .AppImage and .deb on Linux, and .exe (portable) and -setup.exe (installer) on Windows, plus a checksums.txt with one sha256 name line per asset. The macOS .app.tar.gz unpacks to Viam Visualizer.app, with the executable at Contents/MacOS/Viam Visualizer.

The Windows installer build, the Linux AppImage, and the .deb update themselves: on launch they check the latest release's latest.yml or latest-linux.yml, download a newer version in the background, and install it when the app quits. Installing a .deb update asks for an administrator password. The portable .exe and macOS do not update themselves, and setting VIAM_VISUALIZER_NO_AUTO_UPDATE turns updates off.

[!NOTE] Currently, the macOS bundles are ad-hoc signed and not notarized. A downloaded bundle is blocked on first launch. Allow it under System Settings → Privacy & Security → Open Anyway, or run xattr -d com.apple.quarantine on the .app.

Programmatic camera control

The visualizer exposes a cameraControls object on window. Open the browser console and call methods on it to move the camera or tweak its settings at runtime. Full API: https://github.com/yomotsu/camera-controls#properties.