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

@razroo/parallel-mcp-testkit

v0.4.1

Published

Conformance test suite for alternative @razroo/parallel-mcp orchestrator/store implementations

Readme

@razroo/parallel-mcp-testkit

Conformance test suite for alternative @razroo/parallel-mcp orchestrator and store implementations. If you are shipping a non-default adapter (Postgres, MySQL, Redis-backed, cloud SQLite, etc.), run this suite from your own Vitest test file to prove your adapter matches the contract the core exposes.

The reference SQLite adapter already passes the suite — a smoke.test.ts inside this workspace runs it against the default store.

Install

npm install --save-dev @razroo/parallel-mcp-testkit vitest

Vitest is a peer dependency; you bring your own version (works with ^1, ^2, ^3, and ^4).

Usage

// tests/my-adapter.conformance.test.ts
import { runConformanceSuite } from '@razroo/parallel-mcp-testkit'
import { createMyOrchestrator, dropMyAdapterSchema } from '../src/index.js'

runConformanceSuite({
  label: 'postgres adapter',
  createOrchestrator: async () => {
    const orchestrator = await createMyOrchestrator()
    return {
      orchestrator,
      cleanup: () => dropMyAdapterSchema(),
    }
  },
})

Then run it with vitest run.

What the suite covers

  • Run lifecycle: creation, terminal rejection, duplicate keys, cycle detection.
  • Task lifecycle: claim / heartbeat / complete, pause / resume, release, illegal-transition rejection, and ownership checks (LeaseConflictError).
  • Dependencies: a dependent task is not claimable until prerequisites complete.
  • Idempotency: retried completeTask with the same clientToken is a no-op.
  • Context snapshots: initial context and per-task advancement.
  • Lease expiry and requeue (opt-out via supportsLeaseExpiry: false).
  • Cancellation.
  • Admin / introspection: listRuns, listPendingTasks, paginated listEventsSince.
  • Retention: pruneRuns cascade.
  • Transactions: atomic transaction() commit + rollback.

Options

interface ConformanceSuiteOptions {
  label: string
  createOrchestrator: () =>
    | { orchestrator: ParallelMcpOrchestrator; cleanup?: () => Promise<void> | void }
    | Promise<{ orchestrator: ParallelMcpOrchestrator; cleanup?: () => Promise<void> | void }>
  timeScale?: number // default 1; multiply for slow/remote adapters
  supportsLeaseExpiry?: boolean // default true
}

createOrchestrator is called once per test, so your adapter must produce a fresh, isolated orchestrator each time (e.g. new schema / DB / filename). The testkit calls orchestrator.close() after each test and runs any cleanup you return.