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

passwordgrid

v1.0.3

Published

NPM Package to Generate Password Grid

Readme

PasswordGrid

NPM Package to Generate Password Grid.

Stay Secure with 2FA Passcode Grid

A password grid, also called a "passcode grid," is a table with rows and columns containing unique letters or numbers where you select specific combinations to authenticate, essentially acting as a visual password by choosing specific coordinates on the grid to form your login credentials; to use it, you would typically be presented with a grid, then asked to enter the letters or numbers from specific grid positions (like "A3, B2, C1") to log in, usually requiring you to save or print the grid for future use as it's unique to your account.

Key points about using a password grid:

Access your grid:

While designing a authentication system, you can ask your users to enter the values in the Password grid as a 2FA passcode. The user will be prompted to access your grid, which you should generate and show them. The password grid can be generated at the time of user signin and they should save it for future use. so that the user can use the grid for 2FA authentication.

Select coordinates:

The system will ask the user to enter the letters or numbers from specific grid positions, usually indicated by a combination of a column letter and row number (e.g., "B2", A8, etc).

Enter the code:

The user will enter the values from the requested grid coordinates into the 2FA login field to authenticate.

Benefits of a password grid:

Enhanced security:

Since the user selects multiple characters from a grid, it's harder for someone to guess your password compared to a simple text-based password.

Shoulder surfing resistant:

Less susceptible to "shoulder surfing" attacks where someone observes your password entry because the grid doesn't reveal the exact password sequence.

Accessibility for some users:

Can be easier for people who struggle with remembering complex passwords.

Usage

const passwordGrid = require("passwordGrid");
var grid = new passwordGrid();
var gridStr = grid.generateGrid();
console.log(gridStr);

This will generate a password grid similar to

     1   2   3   4   5   6   7   8
   +-------------------------------+
A  | ) | s | h | > | # | o | # | + |
   |-------------------------------|
B  | ` | s | ? | j | o | g | [ | ' |
   |-------------------------------|
C  | r | ? | @ | & | ? | k | ] | < |
   |-------------------------------|
D  | - | , | p | > | ! | + | = | z |
   |-------------------------------|
E  | i | g | < | l | + | e | s | ? |
   |-------------------------------|
F  | + | q | ' | i | j | # | + | a |
   |-------------------------------|
G  | } | r | b | r | i | @ | = | @ |
   |-------------------------------|
H  | ` | r | z | % | < | @ | ; | ~ |
   +-------------------------------+

Grid Configuration

While generating grid, you can configure the grid generation parameters.

grid.gridConfig({
  numbers: false,
  alphaUpper: false,
  alphaLower: true,
  symbols: true,
});

The generated grid size is 8x8.

If everything is set to false as below, then it is invalid, so grid parameters will be set to default.

grid.gridConfig({
  numbers: false,
  alphaUpper: false,
  alphaLower: false,
  symbols: false,
});