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 🙏

© 2026 – Pkg Stats / Ryan Hefner

misaki-valo-wrapper

v1.0.1

Published

A strongly typed wrapper for `valorant-api.com`.

Downloads

3

Readme

Misaki Valo Wrapper

A strongly typed wrapper for valorant-api.com.

Table of Contents

Installation

You may use npm, yarn or bun to install:

npm

npm install misaki-valo-wrapper

yarn

yarn add misaki-valo-wrapper

bun

bun add misaki-valo-wrapper

Usage

Example 1: Getting Weapons

import { getWeapons, getWeaponByUuid, type ApiResponse, type Weapon } = "misaki-valo-wrapper";

// Fetch all weapons (Defaults to English ["en-US"]) //
const weapons: ApiResponse<Weapon> = await getWeapons();
console.log(weapons);

// Fetch all weapons in Japanese locale //
// const weaponsInJapanese: ApiResponse<Weapon> = await getWeapons("ja-JP");
// console.log(weapoonsInJapanese);

// Get weapon data by UUID, example: Vandal //
const vandalResult = await getWeaponByUuid("9c82e19d-4575-0200-1a81-3eacf00cf872");
console.log(vandalResult);

// Fetch weapon data by UUID, example: Vandal (But in Japanese this time) :)
// const vandalResultInJapanese = await getWeaponByUuid("9c82e19d-4575-0200-1a81-3eacf00cf872", "ja-JP");
// console.log(vandalResultInJapanese);

Example 2: Handling status codes

import { getWeaponByUuid } = "misaki-valo-wrapper";
const phantomResult = await getWeaponByUuid("ee8e8d15-496b-07ac-e5f6-8fae5d4c7b1a"); // Type would either be ApiResponse<Weapon> or ErrorResponse
if (phantomResult.status === 200) {
  console.log(phantomResult.data); // Should output the Phantom's weapon data :) Success!!
} else if (phantomResult.status === 400) {
  console.error(phantomResult.error); // Bad request error....
} else if (phantomResult.status === 404) {
  console.error(phantomResult.error); // Unable to find the data, you probably used an invalid uuid ¯_(ツ)_/¯
}

Configuration

Default Language

By default, the language is set to "en-US". You can override this by passing the language parameter when calling the API functions. Most of the API functions have the language parameter, except for getVersion().

Contributing

You are more than welcome to contribute! When contributing, please follow the steps below:

  1. Fork the repository.
  2. Create a new branch for your feature, refactor or fix.
  3. Make your changes, then commit with clear and concise messages (Please use semantic commit messages).
  4. Push your changes to your forked repo and create a pull request.

Testing

Tests can only be run when cloning the project repository. Use bun test to run tests.

Disclaimer

This package is NOT associated with Valorant, Riot Games, or Valorant-API.com. This package only interacts with valorant-api.com to retrieve the data.

Contact (Feel free to contact me for enquiries)

  • Email: [email protected]
  • Discord: byue
  • Valorant: Ryumin#ELI ( Sneaking my Valorant here in case you want to play with me, or have a spare Riot gun buddy :3 )