A multifunctional Web3 platform with integrated crypto wallet, specialized AI agents, and P2P functionality.
Unicity AgentSphere is a modern decentralized application built on the concept of "agents" β specialized AI interfaces for various activities: sports betting, gaming, merchandise shopping, P2P crypto trading, trivia, direct messaging, and AI assistance.
- Chat Agent β direct and group messaging via Nostr protocol
- AI Assistant (Viktor) β uncensored LLM with internet access
- Trivia Agent β quiz games with score tracking
- P2P Gaming β gaming platform (Quake arena, crypto poker)
- Sports Betting β sports event betting with history tracking
- OTC Trading β P2P cryptocurrency trading
- Merch Store β merchandise store with order management
Layer 1 (L1) β base blockchain layer:
- Wallet creation and management
- Transaction history
- Vesting selector
- Password protection
- Bridge between layers
Layer 3 (L3) β application-specific rollup:
- Fast, low-cost transactions
- Token management
- Direct transfers
- Incoming payment notifications
Additional Features:
- Nametag system (@username identification)
- Wallet switching
- QR codes for receiving payments
- Seed phrase management
- Real-time market data
- Cryptographic identification
- Transaction signing via elliptic curve cryptography
- PIN-based session protection
- Decentralized messaging (Nostr protocol)
- Secure seed phrase storage
- React 19 with TypeScript
- Vite 7 β build tool and HMR
- Tailwind CSS 4 β styling
- Framer Motion β animations
- React Router DOM v7 β routing
- TanStack React Query v5 β server state management
- Unicity Labs State Transition SDK β blockchain interaction
- Nostr JS SDK β decentralized messaging
- BIP39 β seed phrase generation
- Elliptic β cryptography
- CryptoJS β encryption
- Axios β HTTP client
- Lucide React β icons
- UUID β identifier generation
- QR Code Styling β QR code generation
- Node.js 18+
- npm or yarn
npm installnpm run devThe application will be available at http://localhost:5173
npm run buildnpm run previewnpm run lintCreate a .env file in the project root:
# Agent mode (mock/real)
VITE_USE_MOCK_AGENTS=true
# Backend API URL
VITE_AGENT_API_URL=https://api.example.com
# Base path for deployment
BASE_PATH=/src/
βββ components/ # React components
β βββ agents/ # Agent components
β β βββ shared/ # Reusable chat components
β β βββ [specific] # AIChat, SportChat, P2PChat, etc.
β βββ wallet/ # Multi-layer wallet
β β βββ L1/ # Layer 1 components
β β βββ L3/ # Layer 3 components
β β βββ shared/ # Shared utilities
β βββ chat/ # Messaging system
β βββ auth/ # Authentication
β βββ layout/ # Page layouts
β βββ theme/ # Theme management
β βββ splash/ # Loading screen
βββ pages/ # Application pages
βββ hooks/ # Custom React hooks
βββ config/ # Configuration (agent definitions)
βββ types/ # TypeScript types
βββ data/ # Mock data
βββ repositories/ # Data access layer
βββ utils/ # Helper functions
βββ assets/ # Static resources
- Swipeable tab interface (chat/wallet)
- Optimized keyboard handling
- Touch-friendly elements
- Grid layout with agent picker, chat, and wallet
- Sidebars with additional information
- Extended navigation capabilities
Each agent is a specialized interface:
interface IAgent {
id: string;
name: string;
icon: string;
description: string;
activityId?: string; // For backend integration
}- Server State: TanStack Query
- UI State: React hooks (useState, useRef)
- Theme State: Context API
- Persistent State: localStorage
- WebSocket via Nostr for chat
- Automatic wallet balance updates
- Market data refresh (60 sec intervals)
- Automatic incoming transfer detection
- Splash Screen β IntroPage
- Authentication β WalletGate (create/import wallet)
- Dashboard β Agent selection
- Interaction β Chat interface with optional sidebar
- Wallet β L1/L3 management, transfers
- Direct Messages β Real-time communication
- Marketplace β Shopping, trading, betting, gaming
- Query caching via React Query
- Debounced scroll detection
- Memoization with Framer Motion
- Lazy component mounting
- LocalStorage for offline access
- Cryptographic key management
- Transaction signing
- PIN session authentication
- Identity verification via Unicity SDK
Private project
For questions and suggestions, please contact the Unicity Labs development team.
Built with React, TypeScript, Vite, and Unicity SDKs