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-plugin

v2.2.3

Published

Connects your SystemLynx project to the SystemView UI

Readme

systemview-plugin

Connects a SystemLynx service to SystemView — the documentation and testing suite for SystemLynx.


Installation

npm install systemview-plugin

Setup

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,  // SystemView API URL
    specs: "./specs",                          // local path for docs and test files
    projectCode: "myProject",                 // groups services together in SystemView
    serviceId: "MyService",                   // name for this service
  });
  App.use(SystemViewPlugin);
}

Set SYSTEMVIEW_HOST to your SystemView instance, e.g.:

SYSTEMVIEW_HOST=http://localhost:3000/systemview/api node index.js

Config options

| Option | Default | Description | |---|---|---| | connection | http://localhost:3300/systemview/api | SystemView API URL to register with | | specs | ./specs | Local path for docs and test files | | projectCode | — | Groups services together in the UI | | serviceId | — | Name for this service | | logs | ./systemview.logs | Local NDJSON log file path | | limit | 100 | Default number of entries getLog returns | | trace | true | Auto-tracing — see below | | redact | [] | Paths to mask in logged arguments/returnValue — see below | | exclude | [] | Module or Module.method names to skip entirely | | useSystemViewLogs | true | Register the local log module + auto-instrumentation | | useSystemViewUI | true | Register with the SystemView UI server |

trace

Controls auto-instrumentation. Every RPC call emits a start trace and one terminal trace — end on success, error on failure — all sharing a single traceId.

  • trace: true (default) — trace every call.
  • trace: false — disable auto-tracing entirely.
  • trace: (req) => ({ ...ctx }) — a function returning request-scoped context. It runs fresh at each entry, and its result is merged into every record sharing that request's traceId — the start/end/error auto-traces and any manual this.log()/warn()/error()/debug() fired during the request. Use it to stamp e.g. a user id onto everything a request logged, so you can filter the whole request by who caused it. (Out-of-request logs carry no req, so they get nothing.)
trace: (req) => ({ user_id: req.session?.user_id })

redact

Masks sensitive values in the captured arguments/returnValue before they're written. Paths are relative to the argument array["[0].password"] masks password on the first argument. Masked values become "[REDACTED]".

redact: ["[0].password", "[0].card.number"]

exclude

Skip logging/tracing for whole modules or specific methods:

exclude: ["HealthCheck", "Users.ping"]

What it does on startup

  1. Registers with SystemView — sends connection data to the SystemView server so the service appears in the UI under projectCode > serviceId
  2. Writes systemview.manifest.json — saves connection data and spec file locations to the project root so the SystemView CLI can run tests without the SystemView server running

If multiple services in the same project use the plugin, each one merges its own entry into the manifest rather than overwriting it.


systemview.manifest.json

Written automatically to the root of your service project on each startup:

{
  "projectCode": "myProject",
  "services": [
    {
      "serviceId": "MyService",
      "system": {
        "connectionData": {
          "serviceUrl": "http://localhost:4100/my/api",
          "modules": [ ... ],
          "routing": { ... }
        }
      },
      "specList": {
        "docs": ["Users.md"],
        "tests": ["Users.signUp.json"]
      }
    }
  ]
}

Add it to .gitignore — it's a local artifact that regenerates on each startup.

With the manifest in place, the CLI can run tests directly against your live service without needing the SystemView server:

systemview test myProject

Specs folder

The plugin reads and writes documentation and test files from the specs path you configure:

specs/
  docs/         # markdown files, one per method
  tests/        # JSON test files, one per method

These files are committed to your repo. The SystemView UI saves to them via the plugin's saveDoc and saveTest methods.