Skip to main content

Snaps documentation

Create a custom mini app that runs inside the MetaMask extension.

Resources

View the following Snaps resources in addition to this documentation site.

Primary resources

  • Snaps homepage
  • Snaps directory - A directory of allowlisted Snaps you can try in the MetaMask extension.
  • SIPs - Suggest new Snaps APIs with Snaps Improvement Proposals.

Example Snaps

Developer tools

  • Template Snap - A rich template that includes TypeScript/React and vanilla JavaScript options, a CLI for building, packaging, and deploying your Snap, and a companion dapp UI you can build on.
  • Test Snaps - A collection of test Snaps and a dapp for evaluating them.
  • snaps-jest - A Jest preset for end-to-end testing MetaMask Snaps, including a Jest environment, and a set of Jest matchers. See how to test a Snap using snaps-jest.
  • Snapper - A tool for detecting security vulnerabilities, identifying potential issues, and ensuring best coding practices in your Snap.
  • MetaMask Testing Tools - A collection of tools for testing MetaMask, MetaMask Flask, and MetaMask Snaps with Playwright, delivered as an npm package that provides a createFixture function that returns a test and expect function that can be used to write tests.
  • Snap Install Tester - A simple web tool for loading and installing any Snap from npm. Just provide an npm package ID and (optional) version number, then click to install in MetaMask Flask.
  • Snap Connect Example - Example code for connecting to MetaMask from a website and interfacing with a Snap in a reliable way.

Blog posts

Videos

Community

Snaps for developers

Many Snaps are designed to be used by developers.

  • CubeSigner - Enables dapp developers to manage keys for Ethereum, Bitcoin, Solana, and more using secure remote hardware.
  • Galactica ZK Vault - Integrates the Galactica Network for dapps to leverage ZK-proofs for compliant privacy.
  • Hedera Wallet - Build Hedera dapps with the methods provided by Hedera Wallet.
  • Leap Wallet - Connect Cosmos dapps to MetaMask with Leap Wallet.
  • MinaPortal - Build ZkApps on Mina Network with the dapp methods provided by MinaPortal.