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

mock-chronik-client

v3.1.1

Published

Testing utility to mock the Chronik indexer client and support unit tests that need to mock chronik related API calls.

Readme

mock-chronik-client

Testing utility to mock the Chronik indexer client and support unit tests that need to mock chronik related API calls.

Usage

Mock chronik API calls including tx broadcasting and paginated tx history. Also includes an Agora mock. See unit tests for latest usage.

Questions?

If you have any implementation questions regarding this mock tool please check the test suite in /test/index.test.js or feel free to reach out to the development team via the eCash Development Telegram.

Change Log

1.1.0

  • Add support to in-node subscribeToBlocks method and check flag, isSubscribedBlocks

    1.1.1

  • Patch error tests

    1.2.0

  • Add support to calls by address(address) returning same as script(type, hash)

    1.3.0

  • Add support for subscribeToAddress and unsubscribeFromAddress websocket methods

    1.4.0

  • Add support for ws.unsubscribe method and fix errors in ws tests

    1.4.1

  • Patch repo path in package.json

    1.5.0

  • Add support for ws subscribe methods and shape found in in-node chronik-client

    1.6.0

  • Match shape of subs object in ChronikClientNode for ChronikClientNode ws methods and support unsubscribe from blocks

    1.7.0

  • Allow getting and setting utxos() and history() by tokenId

    1.8.0

  • Allow getting history without specifying pageNumber or pageSize

    1.9.0

  • Support blockTxs endpoint

  • Update websocket subs shape to match ChronikClientNode

    1.9.1

  • Upgrading npm dependencies D16380

    1.10.0

  • Allow getting and setting history() by lokadId D16382

    1.10.1

  • Return missing numTxs key from history() calls D16617

    1.11.0

  • Add support for MockAgora, a simple set-and-return mock for some ecash-agora class methods D16737

    1.12.0

  • Extend MockAgora support to cover offeredFungibleTokenIds() and activeOffersByTokenId() methods D16929

    1.12.1

  • Build published version with dependencies from npm D17227

    1.12.2

  • Add MockAgora to stub ts declarations D17274

    1.12.3

  • Add dummy plugin method to allow construction of new Agora() from ecash-agora with a MockChronikClient D17279

    2.0.0

D17332

  • Full implementation of typescript

  • Set history and utxos by script, address, or tokenId in one step (prev 2)

  • Set history by lokadId in one step (prev 2)

  • Better type checking

  • Improved mock websocket (now it more closely follows the API of chronik-client)

  • Add broadcastTxs method

  • Add chronikInfo method

    2.0.1

  • Build before deployment so it also works for non-ts users D17338

    2.1.0

  • Support for Agora plugin websocket subscriptions D17369

    2.1.1

  • Upgrade to dependency-free ecashaddrjs D17269

    2.1.2

  • Update README D17506

    2.1.3

  • Update package.json paths for correct typescript dist D17542

    3.0.0

  • Update types to match latest breaking changes in chronik-client D17727

    3.1.0

  • Support for txid websocket subscriptions D18262

  • Match the correct type interfaces for the broadcastTxs method D19627