Parallel SocialFi Layer on Aptos - Real-time On-chain World State
Aptosphere is a hackathon-ready project that demonstrates a real-time, on-chain world state where multiple users, bots, and apps can interact simultaneously, fully trustless and parallel on the Aptos blockchain.
- Real-time World State: Multiple players moving simultaneously without conflicts
- Atomic Operations: All actions are atomic and parallel-safe using Move resources
- Live Trading: Real-time item trading and tipping system
- Event-Driven: Instant UI updates via on-chain events
- Wallet Integration: Martian Wallet support with React adapter
- World Contract: Player management, movement, real-time state
- Item Contract: NFT-like items with atomic trading
- Payment Contract: Instant tipping system
- Optional DeFi: Prediction markets (stretch goal)
- Real-time 2D world visualization
- Wallet integration with Martian Wallet
- Live event streaming from blockchain
- Atomic transaction handling
- Event indexing and real-time updates
- WebSocket connections for live data
- Transaction monitoring and state sync
- Blockchain: Aptos Testnet
- Smart Contracts: Move
- Frontend: React + TypeScript + Tailwind CSS
- Backend: Node.js + Express + WebSocket
- Wallet: Martian Wallet
- Real-time: WebSocket + Event streaming
aptosphere/
├── contracts/ # Move smart contracts
├── backend/ # Node.js backend for event indexing
├── frontend/ # React frontend application
├── scripts/ # Deployment and demo scripts
└── docs/ # Documentation and guides
- Node.js 18+
- Aptos CLI
- Martian Wallet browser extension
- Clone and install dependencies
git clone <repo-url>
cd aptosphere
npm install- Setup Aptos CLI
# Install Aptos CLI
curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3
# Initialize Aptos account
aptos init --network testnet- Deploy contracts
npm run deploy:contracts- Start development
npm run dev- Connect Wallet → Join the world
- Move Avatar → See real-time updates across multiple wallets
- Send Tips → Balances update instantly on-chain
- Trade Items → Ownership reflected immediately
- Parallel Actions → Multiple users acting simultaneously
- ✅ 2-3 players moving in real-time
- ✅ Real-time tipping system
- ✅ One tradeable item
- ✅ Atomic operations with Move resources
- 🔮 Prediction market
- 🏆 Leaderboards and achievements
- 🗺️ Larger arena with more players
- 🤖 Bot integration
cd contracts
aptos move test
aptos move publishcd backend
npm run devcd frontend
npm run devRun the demo with multiple test wallets:
npm run demo:multiplayer"No chain today runs a true real-time, on-chain world state. Everyone cheats with off-chain compute. Aptosphere proves this is possible on Aptos."
Aptosphere demonstrates:
- True Parallelism: Multiple users acting simultaneously
- Atomic Operations: All state changes are atomic
- Real-time Updates: Instant UI synchronization
- Trustless Interactions: No off-chain dependencies
MIT License - see LICENSE file for details
This is a hackathon project. Feel free to fork and extend!
Built for Aptos Hackathon 🚀