Content pfp
Content
@
0 reply
0 recast
0 reaction

Christian Montoya 🦊 pfp
Christian Montoya 🦊
@m0nt0y4
I put Minesweeper in MetaMask. No, really, I made a Snap that puts a fully interactive Minesweeper game INSIDE the MetaMask Extension. Here's how I did it and how you can build fun interactive experiences like this too 🧵
6 replies
6 recasts
21 reactions

Christian Montoya 🦊 pfp
Christian Montoya 🦊
@m0nt0y4
First, if you want to try Minesweeper, you can install it in MetaMask Extension v12 right here: https://snaps.homerow.club You can also install a Slots game (gambling, in MetaMask? Crazy!) and Mystery Fox, which is like a magic 8-ball. (Sorry, mobile users, desktop only for now!)
1 reply
1 recast
3 reactions

Christian Montoya 🦊 pfp
Christian Montoya 🦊
@m0nt0y4
So how does it work? For starters, Snaps are JavaScript applications that run in a secure confined environment. Each Snap can add unique functionality to MetaMask, like support for blockchains (Solana, Cosmos, etc.), notifications, safety insights, and even interactive interfaces.
1 reply
0 recast
1 reaction

Christian Montoya 🦊 pfp
Christian Montoya 🦊
@m0nt0y4
In the Snaps platform we recently introduced interactive UI powered by a new JSX component library. Minesweeper is built using this new library. The code is not complicated! It's just emoji & click events & a state manager to store your stats. Code here: https://github.com/Montoya/minesweeper-snap
1 reply
0 recast
1 reaction