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

web-vault-crypto

v0.1.1

Published

Crypto-Library for e2e encrypted web vaults, using native web crypto api, written in typescript, easy to use.

Readme

web-vault-crypto

NPM
QA-Main

Crypto-Library for e2e encrypted web vaults, using native web crypto api and argon2-browser, written in typescript, easy to use.

Introduction

This package provides easy to use crypto-functions, suitable for web-vaults (examples: password-safes, e2e encrypted video collections).

Used crypto-libraries:

Features

  • key generation
  • password-based key derivation − argon2id
  • password hashing − argon2id / PBKDF2
  • key wrapping and unwrapping − aeskeywrap
  • encryption and decryption − AEAD using AES-256-GCM
  • signing and verification − using hmac

Usage

npm

Install:

npm install web-vault-crypto

Import:


// Replace createKey with a comma-separated list of the functions, you need
import { createKey } from 'web-vault-crypto';
const key = await createKey({ sizeInBytes: 32 });

// or import all functions
import webVaultCrypto from 'web-vault-crypto';
const key = await webVaultCrypto.createKey({ sizeInBytes: 32 });

Browser

<!-- Load the file from jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/web-vault-crypto@latest/dist/web-vault-crypto.js"></script>

<!-- or load the file from unpkg -->
<script src="https://unpkg.com/web-vault-crypto@latest/dist/web-vault-crypto.js"></script>

<!-- or download the file and host it yourself -->
<script src="/js/web-vault-crypto.js"></script>

<script>
// Replace createKey with a comma-separated list of the functions, you need
const { createKey } = webVaultCrypto;
const key = await createKey({ sizeInBytes: 32 });

// or use functions directly
const key = await webVaultCrypto.createKey({ sizeInBytes: 32 });
</script>

API

Read API Documentation to see how to use the functions

Crypto/Security

Read Security Concept to see the crypto/security concepts

Changelog

Read Changelog to see recent changes

Future

Future Plans:

  • Add asymmetric crypto functions (public key / private key) (March − June)

License

This project is licensed under the MIT License