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

pinai-datahub

v0.1.1

Published

PIN AI DataHub Developer Preview for onboarding and A2A data exchange

Readme

PIN AI DataHub

PIN AI DataHub 当前提供 Developer Preview 版本,目标是打通:

onboarding -> Provider Agent 策略把关 -> Context Sharing 请求 -> Execution Receipt

当前版本支持 MetaMask SIWE 登录,使用真实钱包地址注册到 DataHub。

核心能力

  • 一键 onboarding(terminal.sh
  • 本地 API 服务(Connector Simulation + Simulated USDC Settlement)
  • 预置卖家 Agent:Pis's Clawly
  • A2A Context Sharing:请求、审批、执行回执

快速开始(本地)

  1. 启动服务:
npm run server
  1. 打开前端控制台(推荐):
open http://127.0.0.1:3019/console

页面操作顺序:

  • 连接 MetaMask
  • SIWE 登录注册
  • 同步连接器数据
  • 自动上架数据
  • Provider Agent Policy Setup
  • 发起 Context Sharing Request 或处理 Provider Inbox
  1. 一键 onboarding(CLI 备用路径):
export PINAI_DATAHUB_INSTALL_TARGET="$(pwd)"
export PINAI_API_URL="http://127.0.0.1:3019"
curl -fsSL "http://127.0.0.1:3019/terminal.sh" | sh
  1. 查看预置提供方资产:
pinai-datahub --list-assets --api-url http://127.0.0.1:3019 --owner-agent-id agt_pis_clawly_01 --status listed
  1. 发起 Context Sharing Request:
pinai-datahub --create-sharing-request --api-url http://127.0.0.1:3019 --provider-agent-id agt_pis_clawly_01 --asset-id <asset_id>

常用命令

  • pinai-datahub --bootstrap --api-url http://127.0.0.1:3019
  • pinai-datahub --wallet-info --api-url http://127.0.0.1:3019
  • pinai-datahub --sync-connectors --api-url http://127.0.0.1:3019
  • pinai-datahub --auto-list --api-url http://127.0.0.1:3019
  • pinai-datahub --provider-agent-onboard --api-url http://127.0.0.1:3019
  • pinai-datahub --get-sharing-policy --api-url http://127.0.0.1:3019
  • pinai-datahub --set-sharing-policy --api-url http://127.0.0.1:3019 --policy-mode strict_manual
  • pinai-datahub --list-assets --api-url http://127.0.0.1:3019
  • pinai-datahub --create-sharing-request --api-url http://127.0.0.1:3019 --provider-agent-id ... --asset-id ...
  • pinai-datahub --provider-inbox --api-url http://127.0.0.1:3019 --provider-agent-id ...
  • pinai-datahub --approve-request --api-url http://127.0.0.1:3019 --request-id ... --provider-agent-id ...
  • pinai-datahub --reject-request --api-url http://127.0.0.1:3019 --request-id ... --provider-agent-id ...
  • pinai-datahub --get-sharing-receipt --api-url http://127.0.0.1:3019 --receipt-id ...

本地文件

  • 服务端状态:~/.pinai-datahub/server-store.json
  • 客户端配置:~/.pinai-datahub/config.json

API 入口(Developer Preview)

  • GET /health
  • GET /console(兼容 GET /demo
  • GET /terminal.sh
  • POST /auth/siwe/nonce
  • POST /auth/siwe/verify
  • POST /onboarding/bootstrap
  • POST /onboarding/provider-agent/sessions
  • POST /onboarding/provider-agent/sessions/{session_id}/complete
  • GET /wallet/info
  • POST /connectors/sync(兼容 POST /connectors/mock/sync
  • GET /data-assets
  • POST /data-assets/auto-list
  • GET /a2a/context-sharing/policy
  • PUT /a2a/context-sharing/policy
  • POST /a2a/context-sharing/requests
  • GET /a2a/context-sharing/requests
  • GET /a2a/context-sharing/inbox
  • POST /a2a/context-sharing/requests/{request_id}/approve
  • POST /a2a/context-sharing/requests/{request_id}/reject
  • GET /a2a/context-sharing/receipts/{receipt_id}