A modern web interface for the 0G Compute Network - enabling decentralized AI services.
- AI Chat Interface - Stream responses from decentralized AI providers
- Wallet Integration - Connect via RainbowKit (MetaMask, WalletConnect, etc.)
- Fund Management - Deposit, withdraw, and manage funds across providers
- Visual Balance Flow - Understand how your funds move through the system
- Guided Onboarding - Step-by-step setup for new users
- Framework: Next.js 15 (React 19)
- Styling: TailwindCSS + shadcn/ui
- Wallet: RainbowKit + wagmi
- State: React Query + Dexie (IndexedDB)
- SDK: @0glabs/0g-serving-broker
- Node.js 18+
- pnpm (recommended) or npm
- A Web3 wallet (MetaMask, etc.)
# Clone the repository
git clone https://github.com/0glabs/0g-compute-web-ui.git
cd 0g-compute-web-ui
# Install dependencies
pnpm install
# Start development server
pnpm devOpen http://localhost:3000 in your browser.
# Build static export
pnpm build
# The output will be in the 'out' directoryThis app uses Next.js static export (output: 'export'), making it compatible with:
- Vercel (recommended)
- Netlify
- Cloudflare Pages
- GitHub Pages
- Any static hosting
src/
├── app/ # Next.js pages
│ ├── inference/ # AI inference & chat
│ ├── wallet/ # Account management
│ └── fine-tuning/ # Model fine-tuning
├── components/
│ └── ui/ # Reusable UI components
├── shared/
│ ├── hooks/ # Custom React hooks
│ ├── providers/ # Context providers
│ └── utils/ # Utility functions
└── lib/ # SDK integration
| Component | Description |
|---|---|
OnboardingFlow |
Guided setup wizard for new users |
BalanceFlowDiagram |
Visual representation of fund flow |
TopUpModal |
Transfer funds to providers |
WithdrawDialog |
Withdraw funds to wallet |
The app connects to the 0G Compute Network. Configure chain settings in:
src/shared/providers/RainbowProvider.tsx
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE for details.