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

@quantabit/chain-analytics-sdk

v1.0.1

Published

QuantaBit Chain Analytics SDK - Web3 and Blockchain automatic stats agent bridge

Readme

@quantabit/chain-analytics-sdk

QuantaBit 区块链交易与遥测统计桥接 SDK。

本 SDK 用于无缝连接 @quantabit/qbit-chain-sdk@quantabit/analytics-sdk。支持在不修改底层业务逻辑的情况下,自动拦截 RPC 调用性能、监听钱包连接,并追踪链上交易的确认最终状态与耗时。

安装

npm install @quantabit/chain-analytics-sdk

核心特性

  • 非侵入式自动劫持:通过代理模式拦截 RPC 方法(如 getAccountInfo 等),自动上报接口响应时延。
  • 钱包状态同步:自动监听钱包连接、断开等生命周期。
  • 交易生命周期轮询:对于发送的交易,支持后台自动、非阻塞轮询上链状态,精准统计确认耗时(Confirmation Latency),防遗漏并保证数据一致性。
  • 合规保障:所有上报数据均受隐私控制(ConsentManager)约束,对敏感的钱包地址及交易哈希执行自动化脱敏。

快速开始

import { Tracker } from '@quantabit/analytics-sdk';
import { QBitConnection } from '@quantabit/qbit-chain-sdk';
import { ChainTracker } from '@quantabit/chain-analytics-sdk';

// 1. 初始化统计追踪器
const tracker = new Tracker({ appId: 'my-dapp' });
tracker.init();

// 2. 初始化区块链连接
const connection = new QBitConnection({ network: 'devnet' });

// 3. 初始化并绑定桥接器
const chainTracker = new ChainTracker(tracker, connection);

// 4. 手动追踪一个交易生命周期
const txSignature = '...solana_transaction_signature...';
chainTracker.trackTransactionLifecycle(txSignature, 'swap_tokens');

许可协议

MIT