Drift Grid
A CEX-grade on-chain derivatives terminal built as a complete vertical slice: Next.js 14 frontend with wallet-adapter; Node.js services for a REST gateway, WebSocket fan-out, Solana indexer, keeper automation, oracle service and risk engine — on PostgreSQL/TimescaleDB, Redis, Docker and full OpenTelemetry observability.
Overview
Drift Grid is a Solana-native perpetual DEX terminal — a complete vertical slice from on-chain program to trading UI. The frontend is Next.js 14 / React 18 / TypeScript with a wallet adapter; the backend is a constellation of Node.js services.
A REST gateway, a WebSocket fan-out layer, a Solana event indexer, keeper automation, an oracle service and a risk engine all run on PostgreSQL/TimescaleDB and Redis, instrumented end-to-end with OpenTelemetry, Prometheus, Grafana, Loki and Tempo.
What's inside
- CEX-grade trading terminal with live order book and position management
- Solana event indexer, keeper automation and oracle service
- Risk engine: liquidation price, funding cost, oracle drift, insurance fund, position health
- Transparent risk principles explained in plain English throughout the UI
- Full observability — OpenTelemetry, Prometheus, Grafana, Loki, Tempo