A promise-based Node.js library for interacting with Blizzard's Battle.net Community Platform API.
Blizzard.js is a Node.js library that provides a promise-based interface for the Blizzard Battle.net Community Platform API. It allows developers to easily fetch game data for titles like World of Warcraft, Diablo 3, and Overwatch by handling authentication, token management, and API requests. The library simplifies integrating Blizzard's official game APIs into Node.js applications.
Node.js developers building applications, tools, or services that need to access Blizzard game data, such as stat trackers, community sites, or Discord bots for games like WoW or Overwatch.
Developers choose Blizzard.js for its clean, typed API, automatic OAuth token handling, and game-specific client structure, which reduces the complexity of directly interacting with Blizzard's REST API. Its TypeScript foundation ensures better code safety and developer experience.
A promise-based Node.JS library for the Blizzard Battle.net Community Platform API
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Handles fetching and refreshing OAuth application tokens by default, reducing boilerplate code for token lifecycle management, as shown in the README's automatic get and set examples.
Built with TypeScript, providing complete type definitions that improve code safety and developer experience, evident from the typed imports and method signatures.
Offers separate, named clients for each Blizzard game (e.g., Diablo 3, WoW), simplifying API usage and organization, as highlighted in the usage section.
Supports per-request overrides for API keys, secrets, tokens, regions, and locales, allowing granular control without re-initializing clients, as noted in the method parameters.
Does not support OAuth 2.0 Authorization Code Flow for user tokens, requiring additional libraries like Passport for protected WoW endpoints, as admitted in the README.
API methods are documented in separate wiki pages for each game, which can make it harder to find information quickly and increases maintenance overhead.
Exclusively designed for Blizzard's APIs, so it cannot be reused for other gaming or general-purpose APIs, locking developers into Blizzard's platform.