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

insomnia-plugin-jwt-encoder

v1.0.1

Published

Generate JWT tokens with symmetric (HMAC) and asymmetric (RSA/ECDSA) algorithms for Insomnia

Readme

Insomnia JWT Encoder Plugin

Generate JWT tokens with both symmetric (HMAC) and asymmetric (RSA/ECDSA) algorithms directly in Insomnia.

Informations

It's a simple code that uses jwt.sign() to encode information. Nothing will be saved on the web; everything will run locally on your computer. You can see the code in my github: https://github.com/lorenzomlazzarin/insomnia-plugin-jwt-encoder

Algorithms

  • 🔐 Asymmetric JWT: Generate JWTs using RSA and ECDSA algorithms

    • RS256, RS384, RS512 (RSA with SHA)
    • ES256, ES384, ES512 (ECDSA)
    • PS256, PS384, PS512 (RSA-PSS)
  • 🔑 Symmetric JWT: Generate JWTs using HMAC algorithms

    • HS256, HS384, HS512

Installation

  1. Open Insomnia
  2. Go to Application > Preferences > Plugins
  3. Search for insomnia-plugin-jwt-encoder
  4. Click Install

Usage

Getting Started

  1. In any Insomnia request field (URL, headers, body, etc.)
  2. Press Ctrl + Space to open the template tag selector
  3. Search for "JWT" to find the JWT template tags
  4. Choose between:
    • 🔐 JWT Asymmetric - for RS/ES/PS
    • 🔑 JWT Symmetric - for HS

illustrative image

not showing the options

To add information

when you select any option, a tag (blue box) will appear and the text "JWT" ​​will disappear:

illustrative image

After that, you need to click on the tag, and a box will appear. The information you need to enter depends on the chosen algorithm. The tag indicates the selected algorithm type. Note the letters and numbers written in the tag encode JWT => xxxxx, where xxxxx is one of the algorithms described in the Features section.

Asymmetric JWT

  1. check the algorithm selected. i can't find algorithm
  2. Add any additional fields you want in the header, in addition to alg and typ. If you don't add anything, it will only be the two fields.
  3. Set expiration time (e.g., "1h", "30m", "7d")
  4. Add your payload (JSON format), without the exp attribute
  5. Specify path to your private key file (.pem)
Exemple:
without custom headers

illustrative image illustrative image

with custom headers

illustrative image illustrative image

Symmetric JWT

  1. check the algorithm selected. i can't find algorithm
  2. Add any additional fields you want in the header, in addition to alg and typ. If you don't add anything, it will only be the two fields.
  3. Set expiration time (e.g., "1h", "30m", "7d")
  4. Add your payload (JSON format), without the "exp" attribute
  5. Enter your secret key (string or Base64) (Auto-detect Base64 encoded secrets)

Important

  1. Only the header section is optional.
  2. You can put this tag in any tab of insomnia.
  3. You can only see the algorithm options for the type you are using. If you are using asymmetric algorithms and want to switch to symmetric algorithms, change the function to perform option. illustrative image
  4. If any important information is missing, the "Live Preview" section will display messages for you. illustrative image

Possible problems

don't appear options:

Look in the Application > Preferences > Plugins if insomnia-plugin-jwt-encoder appears in the section Plugins with green check.

can't find the algorithm:

Please, look the 3° tópic of Important.