A demonstration application showcasing a decentralized Universal Basic Income (UBI) platform with integrated wallet functionality, social features, and token streaming capabilities.
- Overview
- Features
- Technologies Used
- Getting Started
- Usage
- Project Structure
- Future Development
- Limitations
The UBI Crypto Wallet App is a proof-of-concept demonstration of a decentralized platform that combines a crypto wallet with Universal Basic Income distribution, social networking, and programmable token streams. The application showcases how blockchain technology could be leveraged to create a more equitable financial system with transparent, user-friendly interfaces.
Important Note: This is a demonstration platform only. No real blockchain transactions are executed, and no real data is being used.
- Developers interested in Web3 and decentralized finance applications
- UX/UI designers exploring blockchain application interfaces
- Researchers and advocates of Universal Basic Income systems
- Crypto enthusiasts interested in social and financial applications of blockchain
-
Wallet Management
-
View balance and transaction history
-
Generate and manage cryptographic keypairs
-
Track token streams and transfers
-
Universal Basic Income (UBI)
-
Periodic UBI claim system
-
Claim history tracking
-
Verification requirements for claims
-
Human Verification System
-
Multiple verification methods (ID, biometric, proof-of-humanity)
-
Zero-knowledge proof explanations
-
Personalized handles for verified users
-
Visual verification indicators throughout the app
-
Smart Contracts
-
Natural language contract creation
-
Token streaming contracts
-
Example contract templates
-
Contract execution simulation
-
Social Feed
-
Post creation and interaction
-
Comment system
-
Media attachments
-
Tipping functionality
-
Democratic Polls
-
Poll creation with UBI allocation
-
Voting system for verified users
-
Results visualization
-
Time-limited polls
-
Node Settings
-
Light node simulation
-
Network statistics
-
Sync status
-
Block Explorer
-
Transaction history
-
Block information
-
Search functionality
-
Responsive Interface
-
Mobile-optimized design
-
Fixed bottom navigation
-
Persistent warning banner
-
Dark Mode
-
Modern dark theme throughout
-
Gradient accents
-
Consistent styling
- Frontend Framework: Next.js 14 (App Router)
- UI Library: React 18
- Styling: Tailwind CSS
- Component Library: Customized shadcn/ui components
- State Management: Zustand
- Icons: Lucide React
- Date Formatting: date-fns
- Cryptography: TweetNaCl.js
- Node.js 18.x or higher
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/ubi-crypto-wallet.git
cd ubi-crypto-wallet
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser.
The home screen provides quick access to all main features, displays your current balance, and shows notification about verification status and upcoming UBI claims.
Navigate to the wallet page to:
- View your current balance
- See transaction history
- Monitor active token streams
- Copy your wallet address
The UBI page allows you to:
- Claim your periodic UBI allocation (if verified)
- View claim history
- See when your next claim will be available
To access UBI and other verified-only features:
- Navigate to the Verify page
- Choose a username for your personalized handle
- Select a verification method (ID, biometric, or proof of humanity)
- Complete the verification process
On the feed page you can:
- Create posts with or without media attachments
- Comment on existing posts
- Like and tip content from other users
- Create and vote in democratic polls (verified users)
The contracts page allows you to:
- Create contracts using natural language
- Set up token streaming contracts
- Browse example contract templates
- Execute simulated contracts
The explorer page lets you:
- Search for transactions, blocks, or addresses
- View recent blocks and transactions
- Monitor network activity
ubi-crypto-wallet/
โโโ app/ # Next.js app router pages
โ โโโ contracts/ # Smart contract creation
โ โโโ explorer/ # Block explorer
โ โโโ feed/ # Social feed
โ โโโ node/ # Node settings
โ โโโ ubi/ # UBI claims
โ โโโ verify/ # Identity verification
โ โโโ wallet/ # Wallet management
โ โโโ globals.css # Global styles
โ โโโ layout.tsx # Root layout
โโโ components/ # React components
โ โโโ ui/ # UI components (shadcn)
โ โโโ contract-composer.tsx
โ โโโ demo-warning-banner.tsx
โ โโโ nav-bar.tsx
โ โโโ social-feed.tsx
โ โโโ wallet-card.tsx
โโโ lib/ # Utility functions and stores
โ โโโ stores/ # Zustand state stores
โ โโโ ai.ts # Mock AI functionality
โ โโโ crypto.ts # Cryptography utilities
โ โโโ types.ts # TypeScript types
โ โโโ utils.ts # Helper functions
โโโ public/ # Static assets
โ โโโ images/ # Image assets
โโโ README.md # Project documentation
The following features could be implemented to enhance the application:
-
Real Blockchain Integration
-
Connect to actual blockchain networks
-
Implement web3 wallet connection (MetaMask, WalletConnect)
-
Deploy real smart contracts
-
Enhanced Social Features
-
Direct messaging
-
Group creation
-
Content discovery algorithms
-
Advanced media support
-
Expanded Verification System
-
Multi-factor verification
-
Reputation system
-
Soulbound token integration
-
Decentralized identity protocols
-
Governance Mechanisms
-
DAO-like governance structure
-
Proposal creation and voting
-
Treasury management
-
Community challenges
-
Developer Tools
-
API access
-
Webhook integration
-
Plugin system
-
Custom contract templates
As this is a demonstration project, it has several limitations:
- No Real Blockchain: The application simulates blockchain functionality but doesn't connect to any actual blockchain.
- Mock Data: All data is mocked and doesn't persist between sessions (except for local storage).
- Limited Security: While the app demonstrates cryptographic concepts, it's not secure enough for handling real assets.
- Simplified Verification: The verification process is simulated and doesn't actually verify identity.
- Performance: The application hasn't been optimized for large-scale use or tested with high volumes of data.
- Mobile Optimization: While designed with mobile in mind, some features may not be fully optimized for all device sizes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Design inspiration from various Web3 applications
- shadcn/ui for the component system
- The Next.js team for the framework
- All open-source libraries used in this project
Disclaimer: This application is for demonstration purposes only. It does not use real cryptocurrency, blockchain networks, or personal data. All transactions and interactions are simulated.