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

inslash

v1.2.1

Published

A modern, upgradeable, and secure password hashing utility with passport encoding, hash ancestry, and comprehensive security features.

Readme

inslash

A modern, upgradeable, and secure password hashing utility for Node.js.
Features passport encoding, hash ancestry, salt, pepper, and automatic upgrade support.

Features

  • Secure password hashing with salt and pepper
  • Passport encoding (all hash info in one string)
  • Hash ancestry/history for upgrades and audits
  • Automatic upgrade detection and rehashing
  • Async API

Installation

npm install inslash

Usage

const { hash, verify } = require("inslash");

const secret = "your-secret-key";

// Hash a password
const result = await hash("myPassword", secret);

// Store result.passport in your database

// Verify a password
const verifyResult = await verify("myPassword", result.passport, secret);

console.log(verifyResult.valid); // true or false

API Mode (Hosted Hashing)

inslash can connect to a hosted API for password hashing, with automatic fallback to local crypto if the API is unavailable.

Setup

const inslash = require('inslash');

// Configure once with your API key
inslash.configure({
    apiKey: 'inslash_your_api_key_here',
    apiUrl: 'https://api.inslash.com' // or http://localhost:3001 for testing
});

// Now hash() and verify() automatically use the API
const result = await inslash.hash('myPassword');
const verified = await inslash.verify('myPassword', result.passport);

How It Works

  1. API First: When configured, hash() and verify() call your hosted API
  2. Silent Fallback: If the API is down or slow, falls back to local crypto automatically
  3. Zero Config Local: If not configured, uses local crypto only (no secret needed from you)

Get an API Key

Visit https://inslash.com to create a project and get your API key.

API

configure(options)

  • options.apiKey (string): Your Inslash API key.
  • options.apiUrl (string): API endpoint URL.
  • Returns: Current configuration object.
  • Note: Call this once before using hash() or verify() to enable API mode.

async hash(value, secret, options?)

  • value (string): The value to hash.
  • secret (string): Secret key for HMAC.
  • options (object): Optional. Override defaults (iterations, algorithm, etc).
  • Returns: { passport, algorithm, iterations, saltLength, hashLength, salt, hash, history }

async verify(value, passport, secret, options?)

  • value (string): Value to verify.
  • passport (string): Encoded hash passport.
  • secret (string): Secret key for HMAC.
  • options (object): Optional. Override defaults.
  • Returns: { valid, needsUpgrade, upgradedPassport }

Environment Variables

  • HASH_PEPPER: Optional. Adds a global pepper to all hashes.

License

MIT