npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hirez.js

v2.0.1

Published

Hi-Rez Studios API Wrapper for Smite and Paladins

Downloads

45

Readme

Hi-Rez.js

js-standard-style

Promise based Object Oriented Node.js API Wrapper for Hi-Rez Studios games. Currently supporting the following games:

  • Smite
  • Paladins
  • Realm Royale

Supporting all platforms.

Getting Started

Start with npm install hirez.js --save

Fill out the form here to request access to the api

Initialize the module with a devId and authKey

const Hirez = require('hirez.js')

let hirez = new Hirez({
  devId: 'Insert DevId Here',
  authKey: 'Insert AuthKey Here'
})

Sessions

I have made this module a little opinionated in that when you generate a Session ID, it will be returned with the promise AND stored in a process.env variable. The variables are as follows:

  • Smite:
    • PC === process.env.SMITE_PC_SESSION
    • XBOX === process.env.SMITE_XBOX_SESSION
    • PS4 === process.env.SMITE_PS4_SESSION
  • Paladins:
    • PC === process.env.PALADINS_PC_SESSION
    • XBOX === process.env.PALADINS_XBOX_SESSION
    • PS4 === process.env.PALADINS_PS4_SESSION
  • Realm Royale:
    • PC === process.env.REALM_PC_SESSION
    • XBOX === process.env.REALM_XBOX_SESSION
    • PS4 === process.env.REALM_PS4_SESSION

I did this because I was tired of passing the same few variables to every single call to the api. This library will pass all of those variables for you auto-magically.

Generate a session

The 'smite' reference below can be interchanged with the desired game

  • smite
  • paladins
  • realm

Also 'platform' reference can be interchanged with the desired platform

  • pc
  • xbox
  • ps4
hirez.smite('platform').session.generate()
  .then((res) => {
  // The res variable with be your sessionId
  // It is also assigned to a process.env variable
})

Test the session

hirez.smite('platform').test().then((response) => {
  // Successful or failed response
})

Smite

Get Friends

hirez.smite('platform').getFriends('Username')

Get Esports Pro League Details

hirez.smite('platform').getEsportsProLeagueDetails()

Get God Ranks

hirez.smite('platform').getGodRanks('Username')

Get Gods

hirez.smite('platform').getGods()

Get God Skins

hirez.smite('platform').getGodSkins('God Id')

Get God Recommended Items

hirez.smite('platform').getGodRecommendedItems('God Id')

Get Items

hirez.smite('platform').getItems()

Get Match Details

hirez.smite('platform').getMatchDetails('Match Id')

Get Player Match Details

hirez.smite('platform').getMatchPlayerDetails('Match Id')

Get Match Ids By Queue

hirez.smite('platform').getMatchIdsByQueue('Queue Id', 'Date', 'Time')

Get League Leaderboard

hirez.smite('platform').getLeagueLeaderBoard('Queue Id', 'Tier', 'Season')

Get God Leaderboard

hirez.smite('platform').getGodLeaderBoard('God Id', 'Queue Id')

Get League Seasons

hirez.smite('platform').getLeagueSeasons('Queue Id')

Get Match History

hirez.smite('platform').getMatchHistory('Username')

Get Match of the Day (MotD)

hirez.smite('platform').getMotd()

Get Player

hirez.smite('platform').getPlayer('Username')

Get Player Status

hirez.smite('platform').getPlayerStatus('Username')

Get Queue Stats

hirez.smite('platform').getQueueStats('Username', 'Queue Id')

Get Team Details

hirez.smite('platform').getTeamDetails('Team Id')

Get Team Players

hirez.smite('platform').getTeamPlayers('Team Id')

Get Top Matches

hirez.smite('platform').getTopMatches()

Search Teams

hirez.smite('platform').searchTeams('Search Term')

Get Player Achievements

hirez.smite('platform').getPlayerAchievements('Player Id')

Get Patch Version

hirez.smite('platform').getPatchInfo()

Ping API Webservice

hirez.smite('platform').ping()

Get Data Used

hirez.smite('platform').getDataUsed()

Paladins

Get Friends

hirez.paladins('platform').getFriends('Username')

Get Champion Ranks

hirez.paladins('platform').getChampionRanks('Username')

Get Champions

hirez.paladins('platform').getChampions()

Get Champion Skins

hirez.paladins('platform').getChampionSkins('Champion Id')

Get Items

hirez.paladins('platform').getItems()

Get Match Details

hirez.paladins('platform').getMatchDetails('Match Id')

Get Match History

hirez.paladins('platform').getMatchHistory('Username')

Get Player

hirez.paladins('platform').getPlayer('Username')

Get Player Status

hirez.paladins('platform').getPlayerStatus('Username')

Get Player Achievements

hirez.paladins('platform').getPlayerAchievements('Player Id')

Get Patch Info

hirez.paladins('platform').getPatchInfo()

Ping API Webservice

hirez.paladins('platform').ping()

Get Data Used

hirez.paladins('platform').getDataUsed()

Realm Royale

Search Players

hirez.realm('platform').SearchPlayers('userName')

Get Player Match History

hirez.realm('platform').getPlayerMatchHistory('userID')