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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hiveio/metamask-snap

v1.6.0

Published

Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet

Readme

Hive Wallet MetaMask Snap

A MetaMask Snap that enables secure Hive blockchain interactions directly through your MetaMask wallet. This Snap allows you to sign Hive transactions using keys derived from your MetaMask wallet's seed phrase.

Features

  • Derive Hive keys from MetaMask wallet
  • Sign Hive transactions securely
  • Encode / decode buffer using derived Hive keys
  • No private key exposure

Security Considerations

Required Permissions

This Snap requires the following permissions:

  • snap_getBip44Entropy: For deriving Hive keys from MetaMask seed phrase
  • endowment:rpc: For Snap communication with dApps
  • snap_dialog: For user confirmation when signing transactions or encrypting/decrypting buffer
  • endowment:webassembly: For WebAssembly support in our Hive libraries: Wax and Beekeeper

All permissions are used with the principle of least privilege. No private keys are stored in memory or exposed to the client.

Security Notes

  • Keys are derived only when needed and immediately cleared from memory after usage
  • No network requests are made
  • Input validation is performed on all transaction data
  • No sensitive data is stored in browser storage

Architecture

├── src/                    # Source code
│   ├── assets/            # Snap assets, e.g. icons
│   ├── hive/              # Hive libraries configuration functions
│   ├── index.ts           # Main Snap entry point
│   ├── rpc.ts             # RPC method types
│   ├── snap/              # RPC method handlers code
│   └── priviledged-apis/  # Only part in Snap's code where we use Bip44 entropy functions

Development Setup

Prerequisites

  • Node.js >= 20.18.1
  • pnpm = 10.0.0
  • MetaMask Flask
    • ⚠️ You cannot have other versions of MetaMask installed

Installation

# Clone the repository and its submodules
git clone --recurse-submodules https://gitlab.syncad.com/hive/metamask-snap.git

# Install dependencies
pnpm install --ignore-scripts --frozen-lockfile

# Start development server
pnpm start

Building

# Build the Snap
pnpm build

# Lint the project
pnpm lint

# Run tests
pnpm test

Running

  1. Install MetaMask Flask
  2. Run pnpm start
  3. Connect to the Snap, either:
  4. Install Snap using dApp
  5. Approve the requested permissions
  6. Use the Snap to sign Hive transactions, encrypt/decrypt buffers and retrieve your underlying public keys

[!TIP] Here is a quick showcase of how to install and use this Snap with the official dApp: https://www.youtube.com/watch?v=zKT1GXO6G-0

Contributing

Contributions are welcome! Please follow these steps:

  1. Create a feature branch
  2. Commit your changes
  3. Push to your branch
  4. Open a Pull Request

Development Guidelines

  • Follow TypeScript strict mode guidelines
  • Ensure all tests pass
  • Add tests for new features
  • Update documentation as needed
  • Ensure snapper passes: pnpm prebuild

License

MIT License