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

@gibme/crypto

v22.0.2

Published

Advanced Cryptographic Functions

Readme

Standalone Cryptography Library

A standalone cryptographic primitive wrapper library that can be included in various projects across a variety of development environments, including:

  • Node.js >= 22.x (native C++ addon)
  • WASM
  • Javascript (asm.js)

It wraps gibme-c/crypto and exposes much of the functionality of that package to the supported development environments.

Note: Due to the size of the resulting WASM/Javascript module(s), only English mnemonic words are compiled by default.

Note: If you are looking to use this package in a browser, please read the browser directions below for a lighter installation path and minimal package size.

Features

  • Hashing (Argon2d/i/id, SHA-256, Keccak, Blake2b, and more)
  • Key derivation and HD keys (BIP32/BIP44/SLIP-0010)
  • Mnemonic seed generation and restoration
  • Digital signatures (Ed25519, ring signatures, CLSAG, Triptych)
  • Range proofs (Bulletproofs, Bulletproofs+)
  • RingCT (Pedersen commitments, pseudo commitments, amount masking)
  • Multisig support
  • Automatic module selection: native C++ addon > WASM > asm.js fallback

Node.js Library

Prebuilds of the Node.js native addon module and WASM/JS binaries are included with the npm-distributed package. If a prebuild for your platform does not exist, the native addon will be compiled automatically via CMake.

Dependencies

  • Node.js >= 22.x
  • Compiler supporting C++17 (gcc/clang/MSVC)

Installation

Yarn

yarn add @gibme/crypto

NPM

npm install @gibme/crypto

Initialization

TypeScript

import Crypto from '@gibme/crypto';

const crypto = await Crypto.init();

CommonJS

const Crypto = require('@gibme/crypto').default;

const crypto = await Crypto.init();

Forcing a Specific Module

By default, the library selects the best available module (native > WASM > JS). You can override this:

import Crypto from '@gibme/crypto';

const crypto = await Crypto.init();

// Force WASM module
await Crypto.force_wasm_library();

// Force JS (asm.js) module
await Crypto.force_js_library();

Subpath Exports

The package provides subpath exports for directly importing specific module loaders:

import Crypto from '@gibme/crypto/wasm'; // WASM loader
import Crypto from '@gibme/crypto/asm';  // asm.js loader
import Crypto from '@gibme/crypto/node'; // Native addon loader

Browser Usage / Installation

For browser environments, use the dedicated browser package which provides a lighter installation without the native C++ addon.

Yarn

yarn add @gibme/crypto-browser

NPM

npm install @gibme/crypto-browser

Initialization

TypeScript

import Crypto from '@gibme/crypto-browser';

const crypto = await Crypto.init();

CommonJS

const Crypto = require('@gibme/crypto-browser').default;

const crypto = await Crypto.init();

Documentation

Full TypeScript/JS API documentation is available at gibme-npm.github.io/crypto.

License

External references are provided via libraries in the Public Domain (Unlicense), MIT, and/or BSD from their respective parties.

This wrapper library is provided under the BSD-3-Clause license found in the LICENSE file.

Please make sure when using this library that you follow the licensing requirements set forth in all licenses.