Introduction to XRPL-Connect β
XRPL-Connect is a comprehensive, framework-agnostic wallet connection toolkit for the XRP Ledger. It provides developers with everything needed to add secure wallet connectivity to their applications through a modern, modular architecture.
What is XRPL-Connect? β
XRPL-Connect is a complete solution for integrating wallet functionality into web applications built on the XRP Ledger. It includes:
- Web Component UI - Beautiful, customizable
<xrpl-wallet-connector>component for wallet selection and account management - Wallet Manager - Central event-driven system for managing wallet connections and transactions
- Multiple Wallet Support - Built-in adapters for Xaman, Crossmark, GemWallet, and WalletConnect
- Framework Agnostic - Works seamlessly with Vanilla JS, React, Vue, Next.js, Nuxt, and any modern web framework
- TypeScript Ready - Full type definitions for a great developer experience
- Production Ready - Used in production applications across the XRPL ecosystem
Why Use XRPL-Connect? β
Building wallet connectivity from scratch is complex. XRPL-Connect abstracts away the complexity of:
- Multi-wallet support - Manage multiple wallet adapters with a single API
- Connection state - Automatic session persistence and reconnection
- Event handling - Reactive architecture for responding to wallet changes
- Error handling - Comprehensive error codes and recovery strategies
- UX/UI - Beautiful, accessible components out of the box
- Transaction signing - Unified API for signing and submitting transactions
Key Features β
π¨ Fully Customizable β
Customize colors, fonts, and styling using CSS variables without touching HTML or JavaScript. Create themes that match your brand perfectly.
π Multiple Wallets β
Support for all major XRP Ledger wallets including Xaman, Crossmark, GemWallet, and WalletConnect. Give users choice without increasing complexity.
β‘ Framework Agnostic β
Works with any JavaScript framework or vanilla JavaScript. Use the same wallet manager across your entire tech stack.
π Secure by Design β
- No private key handling - all signing happens in the wallet
- Automatic session management
- Built-in error recovery
π± Mobile Ready β
Support for mobile wallets through WalletConnect. Works seamlessly on desktop and mobile browsers.
π― Developer Friendly β
- Simple, intuitive API
- Comprehensive documentation
- TypeScript support
- Extensive examples
Architecture Overview β
XRPL-Connect uses a modular, adapter-based architecture that separates concerns and makes it easy to extend:
Your Application
β
βββββββββββββββββββββββββββββββ
β xrpl-connect/core β
β βββββββββββββββββββββββββ β
β β WalletManager β β
β β - Event system β β
β β - State management β β
β β - Storage layer β β
β βββββββββββββββββββββββββ β
ββββββββββββββββ¬βββββββββββββββ
β
ββββββββββββ΄βββββββββββ¬ββββββββββββ¬ββββββββββββ
β β β β
ββββββββββββββ ββββββββββββββββ ββββββββββ ββββββββββββββ
β Xaman β β Crossmark β βGemWal β βWalletCon β
β Adapter β β Adapter β βAdapter β βAdapter β
ββββββββββββββ ββββββββββββββββ ββββββββββ ββββββββββββββHow It Works β
- Initialize WalletManager - Create an instance with your desired wallet adapters
- Attach to Component - Connect the WalletManager to the
<xrpl-wallet-connector>web component - Listen to Events - Respond to connection, disconnection, and error events
- Sign Transactions - Use the unified API to sign and submit transactions
- Handle State - Access connection state and account information reactively
Supported Networks β
- Mainnet - XRP Ledger production network
- Testnet - XRP Ledger testing network
- Devnet - XRP Ledger development network
Choose the appropriate network when initializing the WalletManager.
What's Included β
The XRPL-Connect package includes:
- Core Library - WalletManager, event system, and state management
- Web Component - Beautiful UI component for wallet connection
- Adapters - Pre-built integrations for major wallets
- TypeScript Definitions - Full type safety and IDE support
- Documentation - Complete guides and API reference
Next Steps β
Ready to get started? Here's the recommended learning path:
- Concepts - Understand the key concepts (WalletManager, adapters, web components)
- Try It Out - See XRPL-Connect in action with the interactive demo
- Getting Started - Install and get your API keys
- Framework Guides - Follow the guide for your specific framework:
- Customization - Style the component to match your design
- API Reference - Deep dive into the complete API
Community & Support β
- GitHub - XRPL-Commons/xrpl-connect
- Issues - Report bugs or request features on GitHub
- Discussions - Ask questions and share ideas
- XRP Ledger Community - Join the broader XRP Ledger community
License β
MIT License - See the LICENSE file for details.
