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

@lastest/runner

v0.5.1

Published

Remote test execution runner for Lastest visual regression testing platform

Readme

@lastest/runner

npm version npm downloads License GitHub stars

Self-hosted Playwright runner for visual regression testing. Connect any machine to your Lastest server and execute browser tests with screenshot diffs, baseline approval, and AI-authored test healing — locally, in Docker, or in CI.

Quick start

npm install -g @lastest/runner
npx playwright install chromium
lastest-runner start -t YOUR_TOKEN -s https://your-lastest-server

Get YOUR_TOKEN from Settings → Runners in your Lastest UI (shown once at create time).

Why @lastest/runner

  • Run tests where they matter — VPN, staging, localhost, or behind your firewall; no need to expose the SUT to a SaaS.
  • Single binary, zero infra — one npm install -g, optional daemon mode with PID/log management in ~/.lastest/.
  • Multi-selector resiliencedata-testididrolearia-labeltextcss → OCR fallback.
  • Tamper-proof transit — SHA256 hash verification on every test payload before execution.
  • CI-friendly — foreground run mode plays nicely with GitHub Actions, GitLab CI, Docker, and any process supervisor.

Installation

# Global install
npm install -g @lastest/runner

# Or one-off via npx
npx @lastest/runner --help

The runner uses Playwright Chromium under the hood. Install it once:

npx playwright install chromium
# Linux: also install OS deps if needed
npx playwright install-deps chromium

The runner verifies Chromium on startup and prints clear instructions if it's missing.

Requirements: Node.js 18+ and a reachable Lastest instance.

Usage

Start in daemon mode

lastest-runner start -t <token> -s <server-url>

Spawns a detached background process. Logs go to ~/.lastest/runner.log.

| Option | Description | Default | |--------|-------------|---------| | -t, --token <token> | Runner authentication token (required first run) | — | | -s, --server <url> | Lastest server URL (required first run) | — | | -i, --interval <ms> | Poll interval in milliseconds | 5000 | | -b, --base-url <url> | Override target URL for test execution | — |

After the first run, options are saved to ~/.lastest/runner.config.json (token encrypted with AES-256-CBC). Subsequent runs can omit them:

lastest-runner start  # uses saved config

Stop, status, logs

lastest-runner stop
lastest-runner status
lastest-runner log              # last 50 lines
lastest-runner log -n 100       # last 100 lines
lastest-runner log -f           # follow (tail -f)

Run in foreground

lastest-runner run -t <token> -s <server-url>

Stays attached to the terminal — ideal for CI, Docker, or debugging connection issues.

Configuration files

Stored under ~/.lastest/:

| File | Purpose | |------|---------| | runner.pid | PID of the running daemon | | runner.log | Daemon log output | | runner.config.json | Saved configuration (token AES-256-CBC encrypted) |

Capabilities

  • Run — execute visual regression tests remotely with Playwright
  • Record — record new tests on remote machines with a headed browser
  • Screenshots — full-page captures returned as base64 to the server
  • Setup scripts — inject storage state (cookies, localStorage) from named flows
  • Code integrity — SHA256 verification prevents test-payload tampering
  • Multi-selector fallbackdata-testididrolearia-labeltextcss → OCR
  • Graceful shutdown — handles SIGINT/SIGTERM for clean browser teardown

CI/CD integration

GitHub Actions

jobs:
  visual-tests:
    runs-on: ubuntu-latest
    steps:
      - name: Run Lastest Runner
        run: |
          npx @lastest/runner run \
            -t ${{ secrets.LASTEST_TOKEN }} \
            -s ${{ vars.LASTEST_SERVER }}

GitLab CI

visual-tests:
  image: mcr.microsoft.com/playwright:v1.57.0-jammy
  script:
    - npm install -g @lastest/runner
    - lastest-runner run -t $LASTEST_TOKEN -s $LASTEST_SERVER

Docker

FROM node:18-slim

RUN npm install -g @lastest/runner && \
    npx playwright install chromium --with-deps

CMD ["lastest-runner", "run", "-t", "$TOKEN", "-s", "$SERVER"]

Reusable GitHub Action

For zero-config CI without managing the runner yourself:

- name: Run visual regression tests
  uses: las-team/lastest/action@main
  with:
    server-url: ${{ secrets.LASTEST_SERVER_URL }}
    runner-token: ${{ secrets.LASTEST_RUNNER_TOKEN }}

Used with

End-to-end example

# Install globally
npm install -g @lastest/runner

# Install Playwright Chromium
npx playwright install chromium

# Start the runner
lastest-runner start -t lastest_runner_abc123 -s https://lastest.example.com

# Verify
lastest-runner status
# Runner Status: RUNNING
#   PID: 12345
#   Server: https://lastest.example.com

# Tail logs
lastest-runner log -f

# Stop when done
lastest-runner stop

Programmatic usage

The runner is also exported as a library:

import { RunnerClient, TestRunner } from '@lastest/runner';

const client = new RunnerClient({
  token: 'your-token',
  serverUrl: 'https://your-lastest-server',
  pollInterval: 5000,
});

await client.start();

Troubleshooting

"Playwright Chromium browser is not installed"

npx playwright install chromium
# Linux:
npx playwright install-deps chromium

Runner can't connect to server

  • Verify the server URL is reachable from the runner machine
  • Check the token hasn't been revoked in Settings → Runners
  • Confirm firewall rules allow outbound HTTPS

Runner disconnects frequently

  • Increase the poll interval: -i 10000 (10 s)
  • Inspect logs: lastest-runner log -f
  • Check network stability between runner and server

Links

  • Homepage: https://lastest.cloud
  • GitHub: https://github.com/las-team/lastest
  • Issues: https://github.com/las-team/lastest/issues
  • npm: https://www.npmjs.com/package/@lastest/runner
  • MCP server: https://www.npmjs.com/package/@lastest/mcp-server

License

FSL-1.1-ALv2 — see LICENSE.