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

safe-send

v1.0.2

Published

Verify transactions and ensure funds are sent safely to intended recipients

Readme

Safe Send - MetaMask Snap

This snap helps ensure users safely send transactions, with a special focus on identifying Polymarket deposit addresses and validating transaction details.

Knowledge Document

Purpose and Functionality

Safe Send is a MetaMask snap that enhances transaction security by providing real-time validation and feedback on outgoing transactions. The snap specifically helps users identify Polymarket deposit addresses and validates that transactions are properly configured for this purpose.

Key Features

  • Transaction Analysis: Examines transaction details including recipient, network, and token type
  • Polymarket Address Verification: Identifies Polymarket deposit contracts and validates their authenticity
  • Security Warnings: Provides clear, color-coded alerts about potential issues with transactions
  • Network Validation: Ensures users are on the correct network (Polygon) for Polymarket transactions
  • Token Verification: Confirms users are using the correct tokens (USDC/USDCe) for Polymarket deposits

Permissions Used

  • endowment:transaction-insight: Allows the snap to analyze transaction data before signing
  • endowment:ethereum-provider: Enables querying blockchain data to verify contract details
  • snap_dialog: Creates user dialogs to display transaction analysis results
  • snap_manageState: Stores persistent data when needed

User Flow

  1. User initiates a transaction in MetaMask
  2. Safe Send analyzes the transaction details
  3. The snap displays a confirmation dialog with security analysis
  4. Color-coded indicators show safety status:
    • ✅ Green: Safe to proceed
    • ⚠️ Yellow: Caution advised
    • 🥵 Red: Potential danger, transaction should be canceled

Security Considerations

  • This snap does not modify transactions - it only provides information
  • No external API calls are made; all validation happens locally or via the connected blockchain
  • The snap only has access to transaction data you're already sending through MetaMask
  • This is an independent project not officially affiliated with or endorsed by Polymarket

Support and Feedback

For questions, support, or feedback about this snap, please contact [email protected]

Development

This snap is built with TypeScript and uses the MetaMask Snaps SDK. To test the snap, run yarn test in this directory.

Installation

The snap can be installed through the MetaMask extension by visiting the snap's website and clicking "Connect".

Testing

The snap comes with basic tests to demonstrate testing practices for snaps. To test the snap, run yarn test in this directory. This uses @metamask/snaps-jest to run tests in src/index.test.ts.