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

vscope

v0.0.1

Published

Local daemon + Foldkit UI for the vscope embedded debug interface

Downloads

167

Readme

vscope

Local daemon + browser UI for the vscope embedded debug interface.

Status: the npm package name is being reserved first. The published [email protected] package is a placeholder CLI while the runtime is built.

Target

npx vscope
  -> starts one local Node process
  -> serves a browser UI on 127.0.0.1
  -> exposes REST/SSE for the UI
  -> exposes HTTP MCP for agent control
  -> talks to devices over USB serial

The product remains the same as the Python app: an embedded debug interface with a stored high-resolution virtual scope and live read/write RT buffers. High-resolution captures are stored on the device, downloaded as snapshots, persisted locally, and plotted or compared later. Live scope is lower resolution and optimized for control feedback, not oscilloscope-grade acquisition.

Successor Shape

The earlier attempts each had useful parts:

| Source | Keep | Drop | | --- | --- | --- | | vscope_py | product behavior, firmware/protocol reference | PyQt desktop shell | | v2scope | Svelte UI ideas, live plot engine, protocol work | Tauri/Rust host split | | v3scope | Effect runtime, serial service, SQLite persistence | Electron shell and native ABI rebuild split | | cantraceviewer | chartGPU snapshot interaction patterns | unrelated CAN-specific surface |

The new architecture keeps one authoritative runtime in the local daemon. The browser UI holds presentation state only: selected route, form drafts, paused live view, plot viewport, and a synced projection of the server snapshot.

Architecture

Browser
  Foldkit UI
    POST /api/dispatch
    GET  /api/snapshot
    GET  /api/events
    GET  /snapshots?ids=...

Node daemon
  CLI
  HTTP server
  HTTP MCP server
  App runtime
  Protocol codec
  Serial port service
  SQLite persistence
  Snapshot store

Device
  onboard vscope firmware module

Rules:

  • Server owns device state, polling, consensus, command policy, and persistence.
  • UI never talks to serial directly.
  • MCP tools mirror the same command/request layer as the UI.
  • Snapshot plots are browser routes backed by persisted snapshot data.
  • Non-localhost bind requires an auth story before it ships.

Package Plan

Only one public npm package is planned: vscope.

Do not create private workspace packages just to mirror conceptual layers. Start with one package and normal source directories:

bin/
  vscope.js
src/
  cli/
  server/
  runtime/
  protocol/
  serial/
  persistence/
  mcp/
  ui/
  plot-live/

Add private workspace packages only when a boundary earns its cost. Likely candidates:

| Package | Condition | | --- | --- | | packages/ui | Foldkit/Vite build isolation is cleaner than a root build | | packages/plot-live | live plot engine is reused or tested independently | | packages/shared | schemas/protocol must be imported by both daemon and browser without dragging server dependencies |

Avoid separate core, contracts, protocol, serial, persistence, and server packages until real build, dependency, or test isolation requires them.

Runtime Plan

  1. Claim vscope on npm with a placeholder CLI.
  2. Port protocol bytes/codecs and command contracts into src/protocol and src/runtime, with tests.
  3. Port the headless runtime from v3scope: serial service, device registry, polling, command policy, settings, saved ports, snapshots.
  4. Add SQLite persistence with migrations and a conservative recovery policy. Do not wipe the DB for transient startup failures.
  5. Serve REST and SSE from one local HTTP server. Prove dispatch/snapshot flows with curl and mock serial.
  6. Add HTTP MCP at /mcp using the same command/request layer.
  7. Build the Foldkit UI shell: devices, scope controls, snapshot library, settings.
  8. Port live plotting from v2scope.
  9. Add chartGPU snapshot routes and compare view.
  10. Replace the placeholder npm package with the runnable daemon.

Commands

nix develop -c pnpm install
nix develop -c pnpm run check
nix develop -c pnpm run pack:dry

Current check validates only the placeholder CLI. Broaden it as implementation lands.

Open Decisions

  • Default local port.
  • Snapshot route shape: /snapshots/:id or /snapshots?ids=....
  • Whether the first real workspace split is packages/ui.
  • Auth/token behavior for any non-localhost bind.
  • Final native dependency story for serialport and better-sqlite3 in the published package.

License

MIT.