Languages: English | 中文 | 日本語 | 한국어
Official Software Development Kits (SDKs) for integrating with Enclave, a privacy-preserving cross-chain payment protocol powered by zero-knowledge proofs.
📦 Location: /js
A comprehensive JavaScript/TypeScript SDK with reactive state management, supporting multiple JavaScript runtimes:
- ✅ Browser - Web applications with React, Vue, Angular
- ✅ Node.js - Backend services and scripts
- ✅ React Native - Mobile applications
- ✅ Next.js - Full-stack applications with SSR
Key Features:
- 🔄 Reactive state management with MobX
- 🔌 Real-time WebSocket synchronization
- 🔐 Flexible signer interface (private key, Web3 wallet, hardware wallet, remote signing)
- 📦 Complete TypeScript types
- 🌍 Multi-language documentation (English, Chinese, Japanese, Korean)
Quick Start:
cd js/
npm installDocumentation:
- 🔄 Go SDK - For Go backend services
- 🔄 Python SDK - For Python applications and data science
- 🔄 Rust SDK - For high-performance applications
Want to contribute? Check out our contribution guidelines
All Enclave SDKs follow a consistent architecture:
enclave/sdk/
├── js/ # JavaScript/TypeScript SDK
│ ├── src/ # Source code
│ ├── docs/ # Documentation
│ └── examples/ # Usage examples
├── go/ # Go SDK (planned)
├── python/ # Python SDK (planned)
└── rust/ # Rust SDK (planned)
All SDKs provide:
- Authentication: Signature-based authentication with flexible signer support
- State Management: Reactive data stores for Checkbooks, Allocations, and Withdrawals
- Real-time Updates: WebSocket integration for live data synchronization
- Type Safety: Complete type definitions for all data models
- Cross-chain Support: Universal address format for multi-chain operations
- Commitment Operations: SDK-internal data formatting for privacy-preserving deposits
- Withdrawal Operations: Simplified withdrawal flow with signature preparation
- JavaScript/TypeScript →
/js - Go → Coming soon
- Python → Coming soon
- Rust → Coming soon
Each SDK has its own installation instructions. Navigate to the specific SDK directory and follow the README.
cd js/
npm installimport { EnclaveClient } from '@enclave-hq/sdk';
const client = new EnclaveClient({
apiUrl: 'https://api.enclave-hq.com',
signer: privateKeyOrSignerCallback,
});
await client.connect();
// Access reactive stores
const checkbooks = client.stores.checkbooks.all;
const allocations = client.stores.allocations.all;- SDK Overview - High-level introduction
- API Documentation - Backend API reference
- WebSocket Integration - Real-time data guide
Each SDK directory contains:
README.md- SDK-specific setup and usagedocs/- Technical design and API referenceexamples/- Usage examples and tutorials
- Documentation: docs.enclave-hq.com
- Issues: github.com/enclave-hq/sdk/issues
- Discord: discord.gg/enclave
All Enclave SDKs are released under the MIT License.
We welcome contributions! Please see our Contributing Guidelines for details.
Version: 2.0.0
Last Updated: 2025-01-21
Status: Updated for Backend v2.0 (JavaScript SDK)