Skip to content

leon-th/hykey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyKey

A hypixel api proxy that caches to redis and handles rate limits.

features

  • Caches to redis
    • it returns the cached data of a endpoint for 60 seconds
    • it also returns the cached data if the ratelimit is hit to prevent 429s
  • Handles rate limits
  • Removes the need for api keys

Setup

Docker: ghcr.io/leon-th/hykey

Docker Compose: docker-compose up -d


You need to have a redis server running on your machine. I recommend using dragonflydb the docker-compose file in this repository will start a redis server for you.

Usage: hykey [OPTIONS] --api-key <API_KEY>

Options:
  -a, --api-key <API_KEY>          [env: API_KEY=]
  -k, --key-limit <KEY_LIMIT>      [env: KEY_LIMIT=] [default: 60]
  -r, --redis-url <REDIS_URL>      [env: REDIS_URL=] [default: redis://127.0.0.1/]
  -b, --bind-addr <BIND_ADDR>      [env: BIND_ADDR=] [default: 0.0.0.0]
  -p, --bind-port <BIND_PORT>      [env: BIND_PORT=] [default: 4000]
  -u, --hypixel-api <HYPIXEL_API>  [env: HYPIXEL_API=] [default: https://api.hypixel.net]
  -h, --help                       Print help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 81.7%
  • TypeScript 10.3%
  • Dockerfile 8.0%