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

@swedevtools/livedoc-viewer

v0.2.0

Published

LiveDoc BDD Test Results Viewer - Real-time test visualization

Readme

@swedevtools/livedoc-viewer

Real-time BDD test results in your browser.

npm version License: MIT

📖 Documentation · GitHub


What It Does

LiveDoc Viewer is a web-based dashboard that visualizes BDD test results as they run. Start the viewer, run your tests, and watch features, scenarios, and steps stream into the browser in real time.

  • Live updates — results appear via WebSocket as each scenario completes
  • Failure details — click any failed step to see the error and stack trace
  • Multi-framework — works with @swedevtools/livedoc-vitest (TypeScript) and SweDevTools.LiveDoc.xUnit (.NET)
  • Static export — generate a self-contained HTML report you can share or archive

Installation

# Global — use the CLI from any project
npm install -g @swedevtools/livedoc-viewer

# Or as a dev dependency in your project
npm install -D @swedevtools/livedoc-viewer

Requires Node.js 18 or later.


Quick Start

1. Start the viewer

livedoc-viewer

This launches a local server at http://localhost:3100 and opens your browser.

2. Connect your test framework

Add the LiveDoc reporter to your Vitest config:

// vitest.config.ts
import { defineConfig } from 'vitest/config';
import { LiveDocSpecReporter } from '@swedevtools/livedoc-vitest/reporter';

export default defineConfig({
  test: {
    include: ['**/*.Spec.ts'],
    globals: true,
    reporters: [
      new LiveDocSpecReporter({ detailLevel: 'spec+summary+headers' }),
    ],
  },
});

The reporter auto-discovers a running viewer — no extra configuration needed.

3. Run your tests

npx vitest run

Switch to the browser and watch results appear in real time.


CLI Usage

Server Mode (default)

livedoc-viewer [options]

| Option | Short | Default | Description | | --------------- | ----- | ----------- | -------------------------------- | | --port <port> | -p | 3100 | Port to run the server on | | --host <host> | -H | localhost | Host interface to bind to | | --no-open | — | (opens) | Don't open browser automatically | | --version | -V | — | Show version and exit | | --help | -h | — | Show help and exit |

# Custom port, no browser
livedoc-viewer -p 8080 --no-open

# Accessible on the network (CI/CD)
livedoc-viewer --host 0.0.0.0 --no-open

Static Export

Generate a self-contained HTML report from a TestRunV1 JSON file. The output embeds all JS, CSS, and test data inline — open it in any browser with zero dependencies.

livedoc-viewer export -i <path> [-o <path>] [-t <title>]

| Option | Short | Required | Default | Description | | ------------------ | ----- | -------- | ------------------------- | --------------------------- | | --input <path> | -i | Yes | — | Path to TestRunV1 JSON file | | --output <path> | -o | No | ./livedoc-report.html | Output HTML file path | | --title <title> | -t | No | Project name or "LiveDoc" | Custom report title |

# Basic export
livedoc-viewer export -i ./test-results/lastrun.json

# Custom output path and title
livedoc-viewer export -i results.json -o ./reports/sprint-42.html -t "Sprint 42 Results"

Documentation

📖 Full documentation at livedoc.swedevtools.com →


License

MIT © Garry McGlennon