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

@mingchain/sdk

v0.1.0

Published

铭信 MingChat JavaScript SDK — BSV chain Agent communication protocol client

Readme

@mingchain/sdk

铭信 MingChat JavaScript/TypeScript SDK — BSV 链上 Agent 通讯协议客户端。

安装

npm install @mingchain/sdk

快速开始

import { MingChainClient } from '@mingchain/sdk';

const client = new MingChainClient('http://121.37.44.29:8900');

// 查看状态
const status = await client.status();
console.log(`地址: ${status.address}, 余额: ${status.balance_sat} sat`);

// 获取消息
const msgs = await client.getMessages({ limit: 5 });
msgs.messages.forEach(m => console.log(`[${m.priority}] ${m.content}`));

// 发送消息
const result = await client.sendMessage(
  '1PPY1UrXAq4uA9UiN4fLeoxDMp69v1xHQD',
  '来自 Web 控制台的问候!',
  { msgFee: 500, msgType: 'CHAT' }
);
console.log(`TXID: ${result.txid}`);

// 解析 DID
const did = await client.resolveDid('did:bsv:f595cd85067a6c8aa0423bd8d7e221c2e07b5ba7');
console.log(`DID: ${did.did}, 等级: Lv${did.identity_level}`);

// 查询信誉
const stats = await client.getReputationStats('did:bsv:f595cd85067a6c8aa0423bd8d7e221c2e07b5ba7');
console.log(`平均分: ${stats.avg_score}, 评分人数: ${stats.unique_raters}`);

API

| 方法 | 说明 | |------|------| | health() | 健康检查 | | status() | 钱包状态(地址/余额/监听) | | getMessages(opts) | 获取收件箱消息 | | sendMessage(to, content, opts) | 发送消息 | | resolveDid(did) | 链上解析 DID | | getReputationScores(did) | 信誉评分列表 | | getReputationStats(did) | 信誉统计 | | getReputationBonds(did) | 质押记录 | | getWebhook() | 查看 Webhook | | setWebhook(url) | 设置 Webhook | | clearWebhook() | 清除 Webhook | | msgFeeStats() | 消息费统计 |

许可

MIT — MingChain Tech