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

@webwriter/hash

v1.0.1

Published

Visually create hashing workflows with keys, salts, and hash functions.

Readme

WebWriter Hash

License: MIT | Version: 1.0.1

Visually create hashing workflows with keys, salts, and hash functions.

Snippets

Snippets are examples and templates using the package's widgets.

| Name | Import Path | | ------------- | ------------- | | Password Pioneers Station 1 | @webwriter/security-systems/snippets/password-pioneers-station-1.html | | Password Pioneers Station 2 | @webwriter/security-systems/snippets/password-pioneers-station-2.html | | Password Pioneers Station 3 | @webwriter/security-systems/snippets/password-pioneers-station-3.html |

WebwriterHash (<webwriter-hash>)

A visual editor container allowing users to create and manipulate hashing graphs.

Usage

Use with a CDN (e.g. jsdelivr:

<link href="https://cdn.jsdelivr.net/npm/@webwriter/security-systems/widgets/webwriter-hash.css" rel="stylesheet">
<script type="module" src="[https://cdn.jsdelivr.net/npm/@webwriter/security-systems/widgets/webwriter-hash.js]"></script>
<webwriter-hash allowadding allowdeleting></webwriter-hash>

Or use with a bundler (e.g. Vite:

<link href="@webwriter/security-systems/widgets/webwriter-hash.css" rel="stylesheet">
<script type="module" src="@webwriter/security-systems/widgets/webwriter-hash.js"></script>
<webwriter-hash allowadding allowdeleting></webwriter-hash>

Fields

| Attribute | Type |Description | Default | Reflected | | ------------- | ------------- | ------------- | ------------- |------------- | | allowAdding | boolean |If true, enables the side drawer and allow drag-and-drop new nodes (Key, Salt, HashFunction, HashValue) to editor. | false | ✓ | | allowDeleting | boolean |If true, allows user to delete selected nodes from the graph. | false | ✓ | | editorState | Object | The JSON representation of the graph, containing all nodes, positions, and connections. Used for saving state in rerender | {} | ✓ |

Editor (editor.ts)

The editor instance created by createEditor() contains the following methods.

| Name | Description | Parameters | | :--- | :--- | :--- | | addNode | Adds a new node of the specified type at the given coordinates. | type: stringclientX: numberclientY: number | | zoomToNodes | Zooms and pans the view to fit all current nodes. Adjusts slightly if the sidebar is open. | sidebarOpen: boolean | | importGraph | Loads a complete graph state (nodes and connections) from a data object. Clears existing state first. | data: any | | getGraph | Exports the current state of the editor (nodes, positions, connections) as a JSON object. | - | | process | Triggers the data flow engine to recalculate hashes based on current connections and inputs. | - | | updatePermissions | Updates the interactive permissions for the editor and propagates them to all nodes. | newPerms: { canDelete: boolean, isAuthor: boolean, allowAdding: boolean } | | destroy | Cleans up the editor, destroys the area plugin, and clears the engine. | - |

Hash Nodes (<hash-node>)

Represents the UI for a general node within the Rete.js canvas. All specified nodes are instances of the <hash-node> custom element.

Fields

| Attribute | Type | Description | Reflected | | :--- | :--- | :--- | :--- | | data | Object | Internal Rete.js node data object containing label, id, inputs, and outputs. | ✕ | | canDelete (candelete) | boolean | Indicates if the user is allowed to delete this node. Shows/hides the delete button. | ✓ | | isAuthor (isauthor) | boolean | Indicates if the user is in author mode. Enables title editing. | ✓ | | isEditingTitle | boolean | Internal state to track if the node title is currently being edited. | ✕ | | width | number | The width of the node in pixels. | ✕ | | height | number | The height of the node in pixels. | ✕ |