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

@plotozhu/enclave-sdk

v2.0.0-alpha.1

Published

Enclave SDK - Privacy-preserving multi-chain DeFi protocol client library

Readme

Enclave SDK (JavaScript/TypeScript)

Languages: English | 中文 | 日本語 | 한국어

🚧 开发中 - v2.0.0-alpha

Enclave SDK 是一套现代化的 JavaScript/TypeScript 客户端库,用于与 Enclave 隐私保护多链 DeFi 协议进行交互。

✨ 特性

  • 🔄 响应式状态管理 - 基于 MobX,数据自动同步
  • 🔌 实时推送 - WebSocket 自动推送更新,无需轮询
  • 🌐 环境通用 - 支持浏览器、Node.js、React Native、Electron
  • TypeScript 优先 - 完整的类型定义和推断
  • 🎯 框架集成 - React、Vue、Next.js 等开箱即用
  • 📦 Tree-shakable - 按需加载,减小包体积

📦 安装

npm install @enclave/sdk

# 或
yarn add @enclave/sdk
pnpm add @enclave/sdk

🚀 快速开始

import { EnclaveClient } from '@enclave/sdk';

// 创建客户端
const client = new EnclaveClient({
  apiUrl: 'https://api.enclave-hq.com',
  wsUrl: 'wss://api.enclave-hq.com/ws',
  signer: privateKey,
});

// 连接(一步完成登录、WebSocket、数据同步)
await client.connect();

// 访问响应式 Store
const checkbooks = client.stores.checkbooks.all;
const totalAmount = client.stores.checkbooks.totalDeposited;

// 创建 Commitment
await client.createCommitment({
  checkbookId: 'checkbook-id',
  amounts: ['1000000', '2000000'],
  tokenId: 'token-id',
});

// 创建提现
await client.withdraw({
  allocationIds: ['allocation-1', 'allocation-2'],
  targetChain: 1,
  targetAddress: '0x...',
  intent: 'withdraw',
});

📚 文档

完整文档请查看:

其他语言版本:English | 日本語 | 한국어

🛠️ 开发状态

当前版本:v2.0.0-alpha.1

进度

  • [x] 文档编写
  • [x] 项目初始化
  • [x] 核心实现
    • [x] 类型定义
    • [x] Store 层
    • [x] API 层
    • [x] WebSocket 层
    • [x] 主客户端
  • [x] 平台集成
  • [x] 示例

📄 License

MIT © Enclave Team