{"repo":"mlomb/redis-rank","free":true,"listed":false,"github":"https://github.com/mlomb/redis-rank","clone":"git clone https://github.com/mlomb/redis-rank.git","description":"Manage real-time leaderboards using Redis","language":"TypeScript","stars":69,"topics":["redis","leaderboard","scoreboard","promises","typescript","periodic-leaderboards","leaderboard-matrix","ioredis","recurring-leaderboards","redis-rank"],"license":"MIT","category":"databases-storage","readme_excerpt":"📊 redis-rank Manage real-time leaderboards using Redis Features Lightweight : minimal dependencies, only ioredis is required Performance : guaranteed at most one trip to Redis on each function call , taking advantage of ioredis's pipelining and Lua scripts Drop-in replacement : use any existing sorted set as a leaderboard Clear interface : Promise-based & provides TypeScript definitions Periodic leaderboards : create recurring leaderboards: daily , weekly , monthly , etc or use a custom cycle Combine leaderboards : create a matrix of leaderboards: update, filter and retrieve multiple entries in a single call Export : export your leaderboards for long-term storage Tested : 100% code coverage Quick Start ⚙️ Install ⚠️ For ioredis = 5.x use the latest version. Redis 2.6.12 or newer is required. The package ioredis is a peer dependency and must be installed separately. 🔗 Import and connect ES5 ES6 You will have to provide a ioredis connection. See here for more information. You are ready, now read one of the examples linked below! Examples Basic leaderboard usage Exporting a leaderboard Recurring leaderboards Custom cycles Clean stale leaderboards Matrix of leaderboards Showcasing leaderboards API Types Leaderboard Types Constructor Insert/update entries Remove entries Find entries List entries Export Information PeriodicLeaderboard Types Constructor Keys Leaderboards LeaderboardMatrix Types Constructor Leaderboards Insert/update entries Remove entries Find entries List entries","default_branch":null,"files":null,"tree":[],"storefront":"/r/mlomb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mlomb/redis-rank/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}