A Bitcoin piggy bank for children to track their savings and learn about Bitcoin. PiggyBank is fully compatible with the Alby Hub store and Alby Browser Extension, providing a kid-friendly interface for Bitcoin education and savings.
- Safe Savings: Children can track their deposits in sats, but don't have withdrawal capability
- Bitcoin Education: Built-in links to educational resources about Bitcoin, finance, history, and math
- Real-time Network Stats: See up-to-date Bitcoin network information
- Fun Interface: Kid-friendly UI with sound effects and interactive elements
- Alby Hub Compatible: Fully integrated with Alby Hub for seamless wallet connection
- Navigate to Alby Hub
- Sign in to your Alby Hub account (or create one)
- Visit the Alby Hub store
- Find and install "Bitcoin Piggy Bank"
- Access PiggyBank directly from your Alby Hub dashboard
- Install the Alby browser extension from getalby.com
- Set up your Alby wallet or connect an existing Lightning wallet
- Navigate to the Alby Hub store
- Find and install "Bitcoin Piggy Bank"
- Access PiggyBank from your Alby Hub dashboard
To build and test the extension locally:
-
Clone this repository:
git clone https://github.com/ttooccooll/LIGHTNING-PIGGY-BANK.git -
Navigate to the extension directory:
cd PIGGYBANK/extension -
Install dependencies:
npm install -
Build the extension:
npm run build -
Load the unpacked extension in Chrome/Firefox:
- Chrome: Open
chrome://extensions/, enable Developer mode, click "Load unpacked", and select theextensionfolder - Firefox: Open
about:debugging#/runtime/this-firefox, click "Load Temporary Add-on", and select any file in theextensionfolder
- Chrome: Open
- Open the PiggyBank from your Alby Hub dashboard
- Generate a Lightning invoice to receive Bitcoin deposits
- Explore educational content via the History, Latin, Finance, and Math buttons
- View your transaction history in the bottom panel
- Click "Go outside and play!" when you're done to logout
This extension uses:
- React for the UI
- WebLN for Lightning Network integration
- Alby's WebExtension API
PiggyBank is designed to be fully compatible with the Alby Hub store. The key integration points are:
- WebLN API: Uses the standardized WebLN API for Lightning Network functionality
- Alby Hub Detection: Automatically detects and uses Alby Hub's WebLN provider when available
- Manifest Configuration: Includes the required
albysection in manifest.json with all necessary permissions - No Environment Dependencies: No need for .env files as authentication happens through Alby's extension or Hub
To submit this extension to the Alby Hub Store, follow the guidelines at How to submit new app to Hub's Store.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.