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

@cogcoin/vectors

v1.0.0

Published

Self-contained Cogcoin indexer vectors, runner utilities, and published generation fixtures.

Readme

@cogcoin/vectors

@cogcoin/[email protected] publishes self-contained Cogcoin indexer vectors together with the runner and schema used to replay them. Each vector bundles its own setup blocks, test blocks, expected state hash, transaction outcomes, and query assertions so it can be replayed directly against @cogcoin/indexer.

Use Node 18 or newer.

Links

Quick Start

Install the package:

npm install @cogcoin/vectors

The installed package includes the runner, published generated vectors, schema, and helper datasets needed by consumers. The runtime API is published as compiled ESM with bundled type declarations.

Dependency Surface

The published package depends on:

@cogcoin/genesis is pulled transitively through @cogcoin/indexer.

API

Runtime utilities:

  • loadVector(path)
  • runVector(vector, options?)

Published JSON exports:

  • @cogcoin/vectors/history-queries.json
  • @cogcoin/vectors/real-mining-pass.json
  • @cogcoin/vectors/scoring-pass-fixtures.json
  • @cogcoin/vectors/vector-schema.json
  • @cogcoin/vectors/displayBlockHashes.json
  • @cogcoin/vectors/recipientScriptPubKeys.json

Load a Vector from Disk

import { loadVector, runVector } from "@cogcoin/vectors";

const vector = await loadVector("/absolute/path/to/vector.json");
const result = await runVector(vector);

runVector(...) drives the full prepare -> score -> finalize -> rewind flow and checks query assertions against the resulting state.

Import a Published Vector

import { createRequire } from "node:module";
import { runVector } from "@cogcoin/vectors";

const require = createRequire(import.meta.url);
const historyVector = require("@cogcoin/vectors/history-queries.json");

const result = await runVector(historyVector);

Contents

Generated vectors:

  • history-queries.json: anchoring, reviews, data history, resolved locks, and domain event log coverage
  • real-mining-pass.json: published pass sentence replayed through the indexer with a compact synthetic setup
  • scoring-pass-fixtures.json: extracted pass cases from the published scoring conformance vectors

Supporting data:

  • displayBlockHashes.json: real display-order Bitcoin block hashes used by vector generation
  • recipientScriptPubKeys.json: real recipient scriptPubKey samples used by fixtures and generators
  • schema/vector.schema.json: JSON schema for vector files

The package intentionally ships finalized, self-contained vectors only.

Practical Notes

  • Vectors are designed for @cogcoin/indexer, not as standalone consensus logic.
  • Query assertions cover both current-state selectors and the whitepaper's optional historical interfaces.
  • Generated vector data is intentionally shipped as release artifacts; this package does not regenerate vectors during install or publish.