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

systemview

v2.3.3

Published

A documentation and testing suite for SystemLynx

Readme

SystemView

A documentation and testing suite for SystemLynx services. SystemView gives you a browser-based UI to browse your service's modules and methods, read and write markdown documentation, build and run tests interactively, and execute saved test suites from the CLI.


Installation

npm install -g systemview

Requires Node >= 18


Starting SystemView

systemview              # start on port 3000 (interactive)
systemview start 4000   # custom port

If SystemView is already running, systemview start attaches your terminal to the existing instance — no second server is started. You can run as many interactive terminals as you like against the same instance.

Once running:

  • UIhttp://localhost:3000
  • APIhttp://localhost:3000/systemview/api
systemview open                                  # open browser to home
systemview open myProject                        # open to project
systemview open myProject Basketball/Games/add   # open to a specific method
systemview shutdown                              # stop the running instance

Connecting a SystemLynx Service

Install the plugin in your service project:

npm install systemview-plugin

Add it to your SystemLynx app:

const { App } = require("systemlynx");

App.startService({ route, port })
  .module("Users", Users)
  .module("Orders", Orders);

if (process.env.SYSTEMVIEW_HOST) {
  const SystemViewPlugin = require("systemview-plugin")({
    connection: process.env.SYSTEMVIEW_HOST,  // e.g. "http://localhost:3000/systemview/api"
    specs: "./specs",                          // local path for saving docs and tests
    projectCode: "myProject",                 // groups services together in the UI
    serviceId: "MyService",                   // name for this service
  });
  App.use(SystemViewPlugin);
}

On startup the plugin:

  1. Registers the service with the SystemView UI (source of truth for all connections)
  2. Writes systemview.manifest.json to the project root — used by the CLI to reconnect at startup

Add systemview.manifest.json to .gitignore — it regenerates each time the service starts.


Connecting Services from the CLI

# Probe a live service and register it in the UI
systemview connect http://localhost:4100/my/api

# With plugin installed — registers under the real projectCode from the manifest
systemview connect http://localhost:4100/my/api --manifest

# Reconnect all services for a stored project
systemview connect myProject

# Re-probe even if already connected (picks up shape changes)
systemview connect http://localhost:4100/my/api --force
# Remove a project or service from the UI store
systemview disconnect myProject
systemview disconnect myProject MyService

Using the UI

| Panel | Description | |---|---| | Navigator (left) | Browse connected projects, services, modules, and methods | | Documentation (center) | Read and write markdown docs for the selected method | | Test Panel (right) | Build, run, and save tests for the selected method |

URL pattern: http://localhost:3000/:projectCode/:serviceId/:moduleName/:methodName

Building a test

  • Before — setup calls that run before the main test
  • Main — the method call being tested, with argument inputs and response validations
  • Events — WebSocket events to listen for during the test
  • After — teardown calls that run after the main test

Click Run to execute the sequence. Click Save to persist the test to the service's specs/ folder.


Running Tests from the CLI

systemview test myProject                          # run all tests for a project
systemview test myProject Users                    # filter by module
systemview test myProject Users.signUp             # filter by method
systemview test myProject --json                   # structured JSON output for CI/agents
systemview test myProject --verbose                # show args passed to each call
systemview test myProject --bail                   # stop after first failure
systemview test myProject --dry-run                # print which tests would run
systemview test myProject --skip deleteUser        # exclude matching tests (repeatable)
systemview test myProject --phase main             # run only one phase (before/main/events/after)
systemview test myProject --index 0                # run only action at index n within each phase
systemview test myProject --header "X-Key: secret" # extra request header (repeatable)

Starts the SystemView server headlessly if needed, runs all tests, exits with 0 (all passed) or 1 (any failure).


Streaming Logs

systemview logs                                    # stream from all connected services
systemview logs myProject                          # stream from a project
systemview logs myProject Users                    # filter by module/method namespace
systemview logs myProject --level error            # filter by level
systemview logs myProject --current                # show existing entries before streaming
systemview logs myProject --current --limit 20     # limit history shown
systemview logs myProject --filter level=error     # AND filter on any field (repeatable)
systemview logs myProject --or moduleMethod=signIn # OR filter (repeatable)
systemview logs myProject --include userId         # show extra field as column (repeatable)
systemview logs myProject --verbose                # show full entry payload

In interactive mode:

logs myProject          # start streaming
stoplogs                # stop streaming (keeps log history)
unsubscribe             # alias for stoplogs
clearlogs               # wipe log history and stop streaming

Listing Projects and Tests

systemview list                    # list all connected projects and services
systemview list myProject          # list services and test files for a project
systemview list myProject Users    # list tests for a module/method
systemview list myProject --verbose # expand full hierarchy

Calling Methods Ad-Hoc

# Human-readable
systemview probe MyService.Users.getUser '{"userId":"123"}'

# JSON output (agent/CI use)
systemview probe MyService.Users.getUser '{"userId":"123"}' --json

# Multiple positional args (JSON array)
systemview probe MyService.String.repeat '["ha", 3]'

CLI Reference

| Command | Description | |---|---| | systemview [start] [port] | Start SystemView UI; attach if already running | | systemview test <projectCode> [namespace] | Run saved tests | | systemview list [projectCode] [namespace] | List projects, services, or tests | | systemview logs [projectCode] [namespace] | Stream log entries from connected services | | systemview connect <url\|projectCode> | Connect a service or reconnect a project | | systemview connect <url> --manifest | Connect via plugin manifest (real projectCode) | | systemview disconnect [projectCode] [serviceId] | Remove from UI store | | systemview probe <Service.Module.method> [args] | Call a method ad-hoc | | systemview open [projectCode] [namespace] | Open the UI in a browser | | systemview shutdown [port] | Stop a running instance | | systemview help | Print help |

Common flags: --json · --verbose · --bail · --dry-run · --manifest · --force · --header "Name: Value" · --skip <pattern> · --phase <phase> · --index <n> · --level <level> · --current · --limit <n> · --filter <field=value> · --or <field=value> · --include <field>