https://github.com/drift-labs/usermap-server
https://github.com/drift-labs/usermap-server
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drift-labs/usermap-server
- Owner: drift-labs
- License: mit
- Created: 2024-01-16T20:48:45.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-11T01:34:33.000Z (3 months ago)
- Last Synced: 2025-04-30T03:57:42.797Z (25 days ago)
- Language: TypeScript
- Size: 33.7 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drift Usermap
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.## Features
- WebSocket subscription to Drift program account changes
- Redis caching of user account data
- Support for different environments (devnet, mainnet)## Prerequisites
- Node.js
- Redis server## Installation
1. Clone the repository:
```bash
git clone https://github.com/drift-labs/usermap-server.git
cd usermap-server
```
2. Install dependancies:
```bash
yarn install
```
3. Set env variables:
```bash
cp env.example .env
```
4. Setup a local instance of redis and update env variables to match
5. Run the publisher:
```bash
yarn publisher
```