Real-time Hyperliquid orderbook visualizer built with the Quicknode Hyperliquid SDK and Quicknode gRPC streams.
Hyperbook connects to two Quicknode gRPC endpoints to stream live orderbook data from Hyperliquid's HyperCore using the @quicknode/hyperliquid-sdk:
- StreamL2Book (aggregated depth) - total size at each price level. Runs in a worker thread via the SDK's
GRPCStream.l2Book(). - StreamL4Book (individual orders) - every order placement, cancel, and fill with wallet addresses. Runs in a separate worker thread via the SDK's
GRPCStream.l4Book().
Both streams run in Node.js worker threads to keep the main thread free for SSE delivery.
- Quicknode Hyperliquid SDK (npm)
- Hyperliquid API overview
- gRPC API setup
StreamL2BookdatasetStreamL4Bookdataset
-
Create two Hyperliquid endpoints on Quicknode (one per stream, limited to 1 concurrent gRPC stream per endpoint)
-
Copy
.env.local.exampleto.env.localand fill in your endpoint URLs:
QUICKNODE_ENDPOINT_L2=https://your-endpoint.hype-mainnet.quiknode.pro/your-token
QUICKNODE_ENDPOINT_L4=https://your-endpoint.hype-mainnet.quiknode.pro/your-token
- Install and run:
npm install
npm run devOpen http://localhost:3000.
