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

insomnia-plugin-valorant

v2.0.3

Published

Adds template tags to Insomnia with Valorant data

Downloads

147

Readme

Valorant Insomnia Plugin

Adds template tags to Insomnia with Valorant data.

Features

  • Automatic regeneration of entitlement and token
  • Automatic population of live local data such as current game id and lockfile port/password
  • Dynamically created XMPP WebSockets for logging XMPP traffic

Screenshot showing XMPP MITM WebSocket Screenshot showing lockfile tags Screenshot with sign in screen

Use crtl+space to insert tags. For more info, see https://support.insomnia.rest/article/171-template-tags

Installation

Go to Application -> Preferences -> Plugins and add the plugin insomnia-plugin-valorant

Added Tags

| Tag Name | Tag ID | Description | |-----------------------|-------------------------|-------------------------------------------------------| | Client Platform | client_platform | The client platform, a base64-encoded JSON string | | Client Version | client_version | The client version | | Lockfile Port | lockfile_port | The port specified in the lockfile | | Lockfile Password | lockfile_password | The password specified in the lockfile | | PUUID | puuid | The player's unique id | | Region | valorant_region | The region of the player's account | | Shard | valorant_shard | The shard of the player's account | | Token | valorant_token | The Riot auth token | | Entitlement | valorant_entitlement | The Riot entitlement token | | ID Token | valorant_id_token | The Riot ID token | | PAS Token | valorant_pas_token | The Riot PAS token | | Pre-Game Match ID | pregame_match_id | The match id of the current pre-game lobby | | Current Game Match ID | current_game_match_id | The match id of the current game (after agent select) | | Party ID | party_id | The party id of the current party | | Riot XMPP | riot_xmpp | The Riot XMPP WebSocket URL. Read more below. | | Riot XMPP MITM | riot_xmpp_mitm | The Riot XMPP MITM WebSocket URL. Read more below. |

XMPP WebSocket

The XMPP WebSocket URL is a url for a localhost WebSocket server which is created on the fly by the plugin.

Connecting requires the Riot auth and entitlement headers as well as a X-Riot-PAS-JWT header with the value of the PAS JWT (can be obtained with the {% valorant_pas_token %} template tag)

Upon connecting to the server, the plugin creates a new XMPP connection to the Riot XMPP server and forwards the messages to the WebSocket.

The WebSocket url can have the following url suffixes (if there is no url suffix, raw is used):

| | | |----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------| | raw | The raw XMPP data | | raw-buffered | Sometimes messages are sent that don't include a full valid XML tag. This mode buffers messages until the resulting buffer is valid XML. | | json | Similar to raw-buffered but converts the XML to JSON. This is useful for Insomnia auto-formatting. Note that when sending data, it must be in JSON format. |

XMPP MITM WebSocket

Like the regular XMPP WebSocket, the XMPP MITM WebSocket (man in the middle) WebSocket URL is a url for a localhost WebSocket server which is created on the fly by the plugin. However, unlike the regular XMPP WebSocket, no special headers are required to connect. The XMPP MITM WebSocket sits in between the Riot client and the Riot XMPP server and shows the data sent between them and can send custom messages to either one.

Upon connecting to the server, the plugin starts up the Riot Client with settings to use an http proxy so it can intercept the XMPP connection urls and replace them with its own server. The resulting connection is then forwarded to the WebSocket.

The XMPP MITM WebSocket supports the same url suffixes as the regular XMPP WebSocket.

When sending data to the WebSocket, it must start with "to-server" or "to-client" followed by a newline.

Debugging

When reporting a bug, open the dev console (crtl+alt+i) and include the log in your report.

Dev Setup

  • clone the repo
  • npm install
  • npm run build or npm run watch
  • if on Windows, run npm run link-windows to set up a junction to the default Insomnia plugins directory