Demo App Overview
The Clutch Hub Demo App is a React + Vite application demonstrating blockchain-based ride-sharing with passenger and driver roles.
Features
- Dual roles — Separate passenger and driver experiences
- Wallet management — Generate or import keys (optional localStorage)
- Interactive map — Leaflet map for pickup/dropoff selection
- Full ride lifecycle — Request, offer, accept, pay, cancel
- Real-time updates — GraphQL subscriptions with polling fallback
- Faucet integration — One-click test CLT funding
- Transaction history — Persistent list per wallet address
- Stage auto-detect — Maps
app-stage.*hostname toapi-stage.*
Tech Stack
- React 19
- Vite
- Leaflet (maps)
- clutch-hub-sdk-js
Key concepts demonstrated
- User sovereignty — Users own and control their keys
- Client-side signing — Private keys never sent to the server
- Transparency — Transaction history visible on-chain
- Trustless operations — Ride state enforced by the blockchain
Live demos
| Environment | URL |
|---|---|
| Production demo | https://demo.clutchprotocol.io |
| Stage | https://app-stage.clutchprotocol.io |
| Local | http://localhost:5173 |
Documentation
- Getting Started
- User Flows — UI action → SDK call mapping