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

@beesnap/snap

v0.1.6

Published

Ethereum Swarm MetaMask Snap — buy storage on Swarm and upload files to a Bee node from inside MetaMask.

Downloads

693

Readme

@beesnap/snap

A MetaMask Snap for buying storage on Swarm and uploading files to a Bee node — directly from inside MetaMask, with no separate dApp tab.

npm license GitHub

⚠️ Early preview. Beesnap is not yet on MetaMask's stable Snap allowlist. To install today you need MetaMask Flask — the developer build. We'll update this notice when stable support lands.


Install

Don't npm install this directly. It's distributed as a MetaMask Snap and must be installed via MetaMask itself. Visit the official install page:

https://beesnap.swarmtools.eth.limo

The page detects MetaMask and prompts you to install Beesnap with wallet_requestSnaps. Once installed, open MetaMask → menu → SnapsBeesnap.

What it does

  • Buy storage on Swarm. Pick a depth (capacity) and duration. Beesnap fetches a live cross-chain quote from Relay, signs the purchase locally, and creates the postage batch on Gnosis.
  • Upload files. Pick storage you own, pick a file. Beesnap signs an authentication message and posts the file to your Bee node. Returns a Swarm reference + gateway link.
  • View storage and uploads. Both lists read directly from the on-chain registry / Bee API, with auto-refresh for newly-bought storage.
  • Settings. Override the Bee API URL, see your derived account's xDAI balance.

How it works

                ┌──────────────────────────────────────┐
   You          │   MetaMask Flask                     │
                │                                      │
   ┌────┐       │   ┌──────────────────────────────┐   │
   │site│──────▶│   │   Beesnap Snap (this pkg)    │   │
   └────┘ install   │   Home / Buy / Upload / …    │   │
                │   └──────────────────────────────┘   │
                │           │                          │
                │           │ fetch + sign             │
                └───────────┼──────────────────────────┘
                            ▼
              ┌───────────────────────────────┐
              │  Default: beeport.xyz proxy   │
              │  or local / remote Bee URL    │
              └───────────────────────────────┘
                            │
                  ┌─────────┴──────────┐
                  ▼                    ▼
          Relay API quote      Gnosis RPC
          (cross-chain)        (registry, signing)

The Snap signs and broadcasts every transaction itself with a Snap-derived account (snap_getEntropy). It never reads your normal MetaMask accounts' private keys — Snaps cannot call eth_sendTransaction on user accounts, so this design is the only way to do "buy + upload entirely inside MetaMask."

Beesnap account

Beesnap derives a dedicated Ethereum address from your MetaMask secret recovery phrase. It is not the same as any of your normal MetaMask accounts.

  • The address is shown on the Beesnap home page in MetaMask (with a copy button).
  • It's deterministic — same recovery phrase + same Snap id = same address every time.
  • To use Beesnap, send xDAI on Gnosis to that address from any wallet. That funds storage purchases and gas.

Required permissions

| Permission | Why | |---|---| | endowment:rpc | Lets the install page call wallet_invokeSnap | | endowment:network-access | Talks to Bee, Relay, and Gnosis RPC | | endowment:page-home | Renders the Beesnap tab inside MetaMask | | snap_dialog | Welcome dialog on first install | | snap_manageState | Persistent encrypted local state (upload history, settings) | | snap_getEntropy | Derives the Beesnap address from your recovery phrase |

Beesnap deliberately does not request endowment:ethereum-provider — it never touches your normal MetaMask accounts.

Bee API URL (default and overrides)

By default Beesnap uses https://beeport.xyz as the Bee API. In Settings → Bee API URL you can point to your local Bee node (for example http://localhost:1633) or any other Bee-compatible endpoint you control.

If you run a Bee node yourself (not a proxy that already allows Snaps), it must allow Snap requests (they arrive with Origin: null). Start Bee with:

bee start --cors-allowed-origins "null,*"

Or in bee.yaml:

cors-allowed-origins:
  - "null"
  - "*"

Repository

License

BSD-3-Clause