๐ ๏ธ XRP Genie CLI
Command-line tool for scaffolding complete Next.js XRPL wallet applications.
๐ Quick Start
# Clone the repository
git clone https://github.com/zhaben/xrp-genie.git
cd xrp-genie
# Install dependencies
npm install
# Create your app
npx xrp-genie init my-app
cd my-app
npm run dev
๐ What It Creates
The CLI generates a complete Next.js application with:
- XRPL wallet integration (Web3Auth, Xaman, or Faucet)
- Tailwind CSS styling
- TypeScript support
- Working examples of wallet connection and transactions
- Environment configuration files
๐ฏ Choose Your Integration
During initialization, youโll select:
๐ Web3Auth (Social Login)
- Google, Twitter, Discord login
- No wallet installation required
- Perfect for mainstream users
- Requires Web3Auth setup
๐ฑ Xaman (Mobile Wallet)
- QR code signing flow
- Mobile wallet integration
- Secure transaction signing
- Requires Xaman setup
๐งช Faucet (Development)
- Direct wallet creation
- Automatic testnet funding
- Perfect for development/testing
- No external setup required
๐ Network Selection
Choose between:
- Testnet - For development and testing
- Mainnet - For production applications
๐ Project Structure
Generated project includes:
my-app/
โโโ app/
โ โโโ globals.css
โ โโโ layout.tsx
โ โโโ page.tsx
โโโ hooks/
โ โโโ useXrplWallet.ts # Wallet integration
โโโ package.json
โโโ tailwind.config.js
โโโ tsconfig.json
โโโ .env.local.example # Environment variables
โก Commands
Initialize Project
npx xrp-genie init <project-name>
Development
cd <project-name>
npm run dev
Build
npm run build
Start Production
npm start
๐ง Configuration
After initialization:
- Copy environment file:
cp .env.local.example .env.local
- Add your API keys (for Web3Auth/Xaman):
- Follow Web3Auth setup guide
- Follow Xaman setup guide
- Start development:
npm run dev
๐ Next Steps
After creating your app:
- ๐ Web3Auth Dashboard Setup
- ๐ฑ Xaman Dashboard Setup
- ๐ Network Configuration
- โ Troubleshooting
๐ Alternative: Use the SDK
For existing projects, use the XRP Genie SDK instead:
npm install xrp-genie-sdk xrpl