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

document360-capture

v0.2.8

Published

CLI that captures product screenshots from Playwright specs. Login once, capture many. Companion to document360-writer.

Readme

document360-capture

CLI that captures product screenshots from Playwright specs. Login once, capture many. Companion to document360-writer.

Why

Doc-screenshot pipelines hit two walls in practice:

  1. MFA + per-run login. Spinning up Chromium for every capture and asking the human to log in each time burns time and rules out repeatable runs.
  2. Annotation by hand. Adding arrows, numbered callouts, and redactions in an image editor is the slowest part of doc maintenance.

This CLI solves both: d360-capture auth opens Chromium once, the human logs in (MFA at their own pace), and a Playwright storageState is saved. Every d360-capture capture after that reuses the session. Specs declare what to highlight/redact/annotate; the CLI composites SVG overlays via sharp after the raw capture lands.

Install

npm install -g document360-capture

Postinstall downloads the Chromium binary via npx playwright install chromium.

Quick start

cd <your-repo>
d360-capture init                 # one-time per project — writes .d360-capture.json
d360-capture auth --env staging   # one-time per machine — log in, press Enter when done
d360-capture capture              # run every spec in captureDir
d360-capture capture <spec-id>    # run one spec

Commands

| Command | Description | |---|---| | d360-capture init | Interactive setup. Writes .d360-capture.json at repo root. | | d360-capture auth [--env <name>] | Open Chromium; log in at your own pace; press Enter to save session. | | d360-capture capture [<spec-id>] [--env <name>] [--no-annotate] | Run one or all specs. Default-on annotation overlay. | | d360-capture list | List discovered specs and last-capture times. | | d360-capture doctor | Validate config, auth-state, browser, and capture dir. | | d360-capture status | Print resolved config (secrets redacted). |

Spec helpers

Specs in your captureDir import three helpers:

import { test } from '@playwright/test';
import { waitPastLogin, dumpAnnotations, type Placeholder } from 'document360-capture/helpers';

const PLACEHOLDER: Placeholder = {
  id: 'settings-variables-add-modal',
  saveTo: 'user-docs/_screenshots/settings-variables-add-modal.raw.png',
  highlight: ['button:has-text("+ Add")'],
  annotations: [{ target: 'input[name="key"]', label: '1', text: 'Use proj.* prefix' }],
  redact: ['[data-testid="topbar-user-email"]'],
};

test(PLACEHOLDER.id, async ({ page }) => {
  await page.goto(process.env.CAPTURE_START_URL!);
  await waitPastLogin(page, new RegExp(process.env.CAPTURE_AUTH_BOUNDARY!));

  await page.click('[aria-label="Open Settings"]');
  await page.click('a:has-text("Variables")');
  await page.click('button:has-text("+ Add")');
  await page.waitForSelector('[role="dialog"]', { state: 'visible' });

  await page.locator('[role="dialog"]').first().screenshot({ path: PLACEHOLDER.saveTo });
  await dumpAnnotations(page, PLACEHOLDER);
});

Config files

  • <repo>/.d360-capture.json (committed): paths, viewport, environments (startUrl + authBoundaryUrlPattern per env), annotation toggle.
  • ~/.document360-capture/auth-states/<projectId>/<env>.json (per-machine, never commit): Playwright storageState.

License

Proprietary — © 2026 Kovai.co. All rights reserved. See LICENSE.