A CLI for creating MetaMask Snaps.
Use this command line tool directly with yarn create
or npx
to create a new snap project:
yarn create @metamask/snap your-snap-name
# or...
npx @metamask/create-snap your-snap-name
# or with npm v6 and later
npm create @metamask/snap your-snap-name
MetaMask Snaps enables trustlessly extending the functionality of MetaMask at runtime. A Snap consist of two things: a JSON manifest and a JavaScript bundle. At present, Snaps can be published as npm packages on the public npm registry, or hosted locally during development. In the future, it will be possible to publish snaps on many different platforms, including arbitrary npm registries and IPFS.
We recommend creating your snap using this tool.
- Use the MetaMask Snaps documentation
- Use the Getting started guide
- Follow the MetaMask Snaps step-by-step workshop