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

@alwaysmeticulous/debug-workspace

v2.282.0

Published

Shared debug workspace pipeline for investigating Meticulous diffs and replays

Readme

@alwaysmeticulous/debug-workspace

Shared package that provides the debug workspace pipeline used by the Meticulous CLI (meticulous debug) to investigate visual diffs and replay issues.

What it does

Given a replay diff ID or replay ID(s), this package:

  1. Resolves context -- Fetches metadata about the test run and its replay diffs from the Meticulous API, producing a DebugContext with all related IDs.

  2. Downloads debug data -- Downloads replay data (logs, timeline, params, assets), session recordings, replay diffs, and test run metadata into a local workspace directory. Downloads run in parallel with configurable concurrency.

  3. Generates a workspace -- Scaffolds a structured directory with:

    • Templates -- CLAUDE.md, agents, rules, skills, hooks, and settings copied into .claude/ for use with Claude Code.
    • Derived analysis files -- Pre-computed artifacts that make large replay data greppable and manageable:
      • Filtered logs (noise-stripped deterministic logs)
      • Log diffs (raw, filtered, and summary)
      • Diff summaries (compact screenshot diff results)
      • Events index (one-line-per-event timeline summary)
      • Network log (compact request log)
      • VT progression (virtual time values for diffing)
      • Logs index (one-line-per-entry log summary)
      • Screenshot timeline context (events surrounding each screenshot)
      • Timeline summaries, session summaries, params diffs, assets diffs
      • Formatted assets (pretty-printed JS/CSS)
      • Screenshot DOM snapshots (per-screenshot <name>.html files extracted from <name>.metadata.json, written alongside each replay's screenshots/ directory)
      • DOM diffs (per-screenshot unified diffs of HEAD vs BASE pretty-printed HTML, fetched from the Meticulous backend and written to dom-diffs/ as .diff files, sibling .full.diff files with full-file context, and a per-pair .summary.txt. The diffs are identical to those shown in the Meticulous product. Only generated on the replay-diff path.)
      • PR diff (source code changes between base and head commits)
    • Context JSON -- Machine-readable metadata with all IDs, paths, file sizes, screenshot map, and replay comparison stats.

Overlay templates

generateDebugWorkspace accepts an optional additionalTemplatesDir parameter. Files in this overlay directory take precedence over the base templates bundled with this package. For subdirectories (agents, rules, hooks, skills), base files are copied first, then overlay files are copied on top -- so overlays can add new files or replace specific ones by name.

This is used by met_debug (in the internal Meticulous repo) to provide admin-specific templates, skills, and a custom CLAUDE.md without forking the base package.

Usage

This package is consumed by @alwaysmeticulous/cli via the meticulous debug command.

import { runDebugPipeline } from "@alwaysmeticulous/debug-workspace";

await runDebugPipeline({
  client,
  replayDiffId: "some-replay-diff-id",
  screenshot: "screenshot-after-event-00042.png",
  createWorktree: (ctx, workspaceDir) => createProjectWorktree({ debugContext: ctx, workspaceDir }),
  onWorkspaceReady: (workspaceDir, projectRepoDir) => presentWorkspace({ workspaceDir, projectRepoDir }),
});

Or use individual steps for more control:

import {
  resolveDebugContext,
  downloadDebugData,
  generateDebugWorkspace,
} from "@alwaysmeticulous/debug-workspace";

const debugContext = await resolveDebugContext({ client, replayDiffId });
await downloadDebugData({ client, debugContext, workspaceDir });
await generateDebugWorkspace({ client, debugContext, workspaceDir, projectRepoDir });

Key exports

  • runDebugPipeline -- Runs the full pipeline (resolve, download, generate workspace).
  • resolveDebugContext -- Resolves a DebugContext from a replay diff ID or replay ID(s).
  • downloadDebugData -- Downloads replay data and artifacts into a workspace directory.
  • generateDebugWorkspace -- Scaffolds the workspace directory from templates and generates all derived analysis files.
  • DebugContext, ReplayDiffInfo -- Types describing the resolved debug context.
  • DEBUG_DATA_DIRECTORY, getDebugSessionsDir -- Path constants.

Part of the Meticulous SDK

This package is part of the meticulous-sdk monorepo.