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

alfred-pwgen

v1.0.0

Published

Simple password generator to quickly get a randomly generated secure password to your clipboard.

Downloads

23

Readme

Alfred password generator

Simple password generator to quickly get a randomly generated secure password to your clipboard.

Installation

Use NPM:

npm install --global alfred-pwgen

Installing via NPM is the preferred method, you can however also download the alfred-password-generator.alfredworkflowfound under releases.

Usage

Type pw to quickly generate a selection of passwords, if needed you may also supply the password length, for example pw 8.

Select the password you want (with the arrow keys + enter, or cmd+1, cmd+2 etc.) and it will be copied to your clipboard.

4 types of passwords are always presented, letters+numbers+symbols, letters+numbers, only letters and words.

Settings

There are two workflow settings that you can adjust, defaultLength (default: 20) and words (default 4). defaultLength sets the password length by simply typing pw, and words how many words are used to build word-based passwords.

You can change these defaults by selecting the workflow in Alfred and selecting "Configure workflow and variables".

Entropy

In the output next by the generated password symbols are displayed for the estimated password entropy (in bits), they are:

◻◻◻◻ less than 26
◼◻◻◻ 26-35
◼◼◻◻ 36-59
◼◼◼◻ 60-127
◼◼◼◼ 128 or more

The default length of 20 should always output a password of an entropy of 128 or more.

Password technique and security

Random numbers to generate the password uses the node crypto library, which in turn relies on the Javascript Crypto-APIs. This is much preferred over the traditional Math.random()-methods which are not cryptographically secure (i.e. do not use password generators that us Math.random()).

The words are selected from the Word-list available on UNIX-systems at /usr/share/dict/words, where all words between 3 and 6 characters in length are selected (~34000 words.)

Inspiration and credits

This workflow is inspired by the great pwgen-workflow of which I have been a heavy user of for years, but sadly hasn't survived the port to macOS Monterey. This workflow focuses on the most common tasks however.

Uses alfy by Sindre Sorhus.

© 2022 – Marcus Olsson