Educational Lightning Network payment demo application. Allows users to try scenarios that simulate Lightning payments between wallets and learn about usecases supported by Alby development tools and NWC wallets such as Alby Hub. Helps developers explore and understand Lightning payment flows and capabilities.
- Package Manager: Yarn
- Frontend: React + TypeScript
- UI Components: Shadcn
- Lightning: Nostr Wallet Connect (NWC) protocol
- Visualization: Multiple tabs (Log, Flow Diagram, Balance Chart, Network Graph)
- MCP: Shadcn MCP installed (for UI development assistance)
- Skills: Alby Agent skill installed (for wallet functionality implementation)
- Each scenario determines the number of wallets required
- Display as cards showing balance, connection status
- Wallets: Alice 👩, Bob 👨🦱, Charlie 👨🦰, David 👱♂️ (as needed per scenario)
Instant test wallets can be created with a single command (as per the Alby skill - here should be a single button that the user can do which will do a FETCH POST call to create the wallet).
Wallets are saved to local storage under key wallet-N (wallet-1, etc).
- Transaction Log - Chronological list of events
- Flow Diagram - Step-by-step visual sequence of payment interactions
- Balance Chart - Line graph showing balance changes over time
- Network Graph - Topology view of wallet connections and payment paths
Visualization should update in real-time.
- Fast demo starts
- Multiple learning modalities (visual, textual, graph-based)
- Support scenarios with 2-4 wallets
- Clear educational flow
- Scenarios should be sorted from simplest to most complicated
- Showcase Alby development capabilities
- WalletCard: Individual wallet display with status
- TransactionLog: Event timeline
- FlowDiagram: Sequential interaction visualizer
- BalanceChart: Historical balance tracking
- Prioritize user experience speed over configurability initially
- Keep UI clean and educational-focused
- Ensure all visualizations update in real-time as transactions occur
- Leverage Shadcn MCP for UI component development
- Use Alby Agent skill for wallet integration guidance
yarn dev— start dev serveryarn typecheck— TypeScript type-check (no emit)yarn build— full build (tsc + vite)yarn lint— ESLint
Each scenario has a title, description, education (content for the user to be displayed), and complexity. More complex scenarios should be lower in the list.
When user first opens app they will be presented with the first scenario.
Before they can execute the scenario they must connect the wallets required by the scenario.
- Make sure to use the Alby Agent Skill.
- Read the design docs folder when working on the design
- Read the scenarios docs folder when working on payment scenarios