Skip to content

HyPixelic/constants

A monorepo containing a collection of Hypixel Constants used by other HyPixelic Packages.

✨ Quick Start

npm » npx jsr add @hypixelic/constants
pnpm » pnpm dlx jsr add @hypixelic/constants
bun » bunx jsr add @hypixelic/constants

ts
import Constants from "@hypixelic/constants";

const constants = new Constants(["GAMES"]);
await constants.init();
/* Optionally set an interval to automatically update the constants every 24 hours */
await constants.setInterval("daily");

const games = constants.GAMES;

npm » npx jsr add @hypixelic/static-constants
pnpm » pnpm dlx jsr add @hypixelic/static-constants
bun » bunx jsr add @hypixelic/static-constants

ts
import Constants from "@hypixelic/static-constants";

const constants = new Constants(["GAMES"]);

const games = constants.GAMES;

📦 Packages

NameDescriptionVersionDownloads
@hypixelic/constantsLive Hypixel constants fetched from Hypixel resource endpoints.VersionDownloads
@hypixelic/static-constantsStatic snapshot of constants for offline or more reliable use.VersionDownloads

📁 Repository Structure

  • packages/live/ » @hypixelic/constants
  • packages/static/ » @hypixelic/static-constants
  • scripts/ — Scripts for updating the static constants

NOTE

This project is not affiliated with or endorsed by Hypixel, Inc.

Released under the MIT License.
Inspired by Hypixel-API-Reborn.