This project implements a caching system for Drift Protocol user accounts using Redis. It provides an API server that serves cached user account data and maintains real-time updates through WebSocket connections.
- WebSocket subscription to Drift program account changes
- Redis caching of user account data
- Support for different environments (devnet, mainnet)
- Node.js
- Redis server
- Clone the repository:
git clone https://github.com/drift-labs/usermap-server.git cd usermap-server
- Install dependancies:
yarn install
- Set env variables:
cp env.example .env
- Setup a local instance of redis and update env variables to match
- Run the publisher:
yarn publisher