Vibe Code An Application To Send And Receive Lightning Payments With Rizful
Want to build Lightning-powered applications without getting lost in the weeds? With Rizful test vaults and Nostr Wallet Connect (NWC), you can point your favorite AI coding assistant at a working example and let it help you build something awesome.
This guide shows you how to set up everything you need to vibe code Lightning payment functionality into your applications.
Vibe coding is a development approach where you use AI coding assistants (like Claude Code, GitHub Copilot, or Cursor) to rapidly build applications. You describe what you want, point the AI at relevant examples, and iterate quickly. With the right setup, you can build Lightning-enabled apps in minutes.
Prerequisitesโ
Before you start vibe coding, you'll need:
- Two test Rizful vaults with NWC codes (one for sending, one for receiving)
- Docker and Docker Compose installed on your machine
- An AI coding assistant (Claude Code, Cursor, GitHub Copilot, etc.)
Step 1: Set Up Test Rizful Vaultsโ
First, create dedicated test vaults to experiment with. This keeps your main funds safe while you learn and build.
๐ Safely Set Up Test Rizful Vaults with NWC โ Create isolated vaults with small balances for testing
Create two vaults:
- One for sending payments (fund this one with ~100 sats)
- One for receiving payments
Step 2: Get NWC Codes for Both Vaultsโ
Next, generate send-and-receive NWC codes for each of your test vaults.
๐ Get A Send & Receive NWC Code from Rizful โ Learn how to create NWC codes that allow apps to send and receive payments
You'll need two NWC codes:
NWC_CODE_SENDERโ from your sending vaultNWC_CODE_RECEIVERโ from your receiving vault
Step 3: Test Your NWC Codes (Optional)โ
Before diving into code, you can verify your NWC codes work using the Alby Sandbox. This is a great way to understand how NWC works without writing any code.
Using Alby Sandboxโ
- Visit sandbox.albylabs.com
- Click on Payment Notifications in the sidebar
- Paste your sender NWC code into the "Alice" connection field
- Paste your receiver NWC code into the "Bob" connection field
- Click Connect on both

Now you can experiment with:
- โก Payment Notifications โ See real-time notifications when payments are sent/received
- ๐ธ Simple Invoice Payment โ Create and pay invoices
- ๐ Lookup Invoice Status โ Check payment statuses
- ๐ Balance Chart โ Monitor wallet balances
Step 4: Point Your AI at the Example Repositoryโ
Ready to build? Point your AI coding assistant at this repository: