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

@weavatrix/wvq

v0.1.0-alpha.5

Published

Native Weavatrix Quality CLI, MCP server, live benchmark, and typed JavaScript client.

Readme

@weavatrix/wvq

Native Weavatrix Quality binaries (wvq, wvq-mcp, wvq-bench) for Windows / macOS / Linux (x64 + arm64), plus a typed JavaScript client.

Rust remains the only implementation of policy, selection, evidence, proof, budgets, and MCP schemas. This package is a process boundary — never a second engine.

Alpha 0.1.0-alpha.5. CHANGELOG · GitHub · MCP Registry (io.github.Weavatrix/weavatrix-quality)


Install

npm install --save-dev @weavatrix/[email protected]

# or without adding a dependency
npx @weavatrix/[email protected] --help

Unscoped wvq is reserved by npm similarity rules. Always use @weavatrix/wvq.

Bins on PATH after install:

| Bin | Role | | --- | --- | | wvq | CLI | | wvq-mcp | MCP host (also: wvq mcp …) | | wvq-bench | Impacted-vs-full shadow bench |

Override native paths with WVQ_BINARY, WVQ_MCP_BINARY, WVQ_BENCH_BINARY when you install matching binaries yourself.


CLI examples

# discovery (read-only)
npx @weavatrix/[email protected] doctor

# first-time policy
npx @weavatrix/[email protected] init

# compile OpenSpec obligations
npx @weavatrix/[email protected] spec validate --change current

# plan without executing
npx @weavatrix/[email protected] plan --change current

# impacted run (also publishes .weavatrix/coverage/lcov.info for Weavatrix coverage_map)
npx @weavatrix/[email protected] run \
  --change current \
  --base origin/main \
  --head HEAD \
  --scope impacted \
  --evidence-policy minimal

# composite verdict
npx @weavatrix/[email protected] verify --change current

# Stage A CI (exit 0 even when UNPROVEN)
npx @weavatrix/[email protected] verify --change current --observe-only true

# passive browser capture
npx @weavatrix/[email protected] record --change current --route /dashboard

# shadow selected vs full
npx @weavatrix/[email protected] bench \
  --repo . --change current --base origin/main --head WORKTREE

Useful flags

wvq --repo <path> <command> …
wvq run --scope impacted|all --evidence-policy standard|minimal|none
wvq verify --observe-only true|false
wvq record --route /path --idle-ms 3000 --max-events 200

Exit 2 = blocking contradicted verify. Exit 1 = unresolved / ordinary failure.


MCP examples

Cursor

{
  "mcpServers": {
    "weavatrix-quality": {
      "command": "npx",
      "args": [
        "-y",
        "@weavatrix/[email protected]",
        "mcp",
        "--repo",
        "."
      ]
    }
  }
}

Prefer an absolute --repo path in real configs.

Default profile — 7 tools

quality_context  quality_plan  quality_run  quality_status
quality_verify   quality_explain  quality_evidence

Ask the agent:

Call quality_plan for change checkout-fix, then quality_run with base origin/main and head WORKTREE, then quality_verify.

Authoring profile

npx @weavatrix/[email protected] mcp --repo . \
  --profile authoring \
  --change current \
  --base origin/main \
  --head WORKTREE
quality_test_draft  quality_test_validate  quality_test_preview
quality_test_promote  quality_test_record  quality_test_heal

No arbitrary shell. Large artifacts return as handles.


JavaScript API examples

import { WvqClient } from '@weavatrix/wvq'
import { WvqMcpClient } from '@weavatrix/wvq/mcp'

const repo = process.cwd()
const change = 'current'

// ——— typed CLI boundary ———
const wvq = new WvqClient({ repo })

await wvq.specValidate({ change })
const plan = await wvq.plan({ change })
const run = await wvq.run({
  change,
  base: 'origin/main',
  head: 'WORKTREE',
  scope: 'impacted',
  evidencePolicy: 'minimal',
})
const verify = await wvq.verify({ change })
console.log({
  runId: run.run_id,
  outcome: run.outcome,
  state: verify.state,
  proven: verify.quality.proof.proven,
  unproven: verify.quality.proof.unproven,
})

const debt = await wvq.debt({ change, base: 'origin/main', head: 'HEAD' })
const selected = await wvq.select({ change, base: 'origin/main', head: 'HEAD' })
const status = await wvq.status()

// cancel a long run
const ac = new AbortController()
setTimeout(() => ac.abort(), 120_000)
await wvq.run({ change, base: 'origin/main', head: 'HEAD', signal: ac.signal })

// ——— MCP one-shot tools ———
const mcp = new WvqMcpClient({ repo, profile: 'default', change })
await mcp.call('quality_context', { change, purpose: 'implementation' })
await mcp.call('quality_verify', { change })

const authoring = new WvqMcpClient({
  repo,
  profile: 'authoring',
  change,
  base: 'origin/main',
  head: 'WORKTREE',
})
const draft = await authoring.draft({ useModel: false })
// agent fills candidateProgram from draft.obligations + draft.context
const validated = await authoring.validate(candidateProgram)
const preview = await authoring.preview(validated.program, {
  screenshot: true,
  trace: true,
})
if (preview.passed) {
  const promoted = await authoring.promote(preview.preview_id, validated.program)
  await authoring.heal(promoted.program_id, promoted.program_revision, [
    { edit: 'insert_wait', after: 0, condition: { kind: 'url', route: '/ready' } },
  ])
}

Types: src/index.d.ts. More samples: examples on GitHub.


Browser / Playwright

Authoring preview and UI programs use Playwright from the verified repo (browser.module_root in .weavatrix-quality/config.yaml):

npm install --save-dev playwright
npx playwright install chromium

What this package does not do

  • Does not reimplement Rust policy / proof in TypeScript
  • Does not spawn a shell for argv
  • Does not auto-heal sealed business expectations
  • Does not publish an unscoped wvq name

License

MIT