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 🙏

© 2025 – Pkg Stats / Ryan Hefner

4337-snap

v0.1.1

Published

Account Abstraction Snap

Readme

Account Abstraction Snap

Team

Problem

DApps want to add Account Abstraction support but the problem is that every dApp might end up using its own Account Factory leading to different counterfactual address for Smart Contract Wallet

Users will end up having different SCW for every dApp which leads to complex UX

Solution

The AA snap will basically offload all the work the frontend devs need to do to add AA support to their dApps, instead the Metamask Snap will use a single Account Factory (so single CounterFactual address) and the dApp developers need not change anything they can keep on request signing transactions as usual!

How to use?

No Contracts are to be deployed, the Smart Contract Wallets are deployed using Thirdweb Account Factory and Pimlico.

Clone the repo
git clone https://github.com/therealharpaljadeja/aa-snap.git
Run the project
yarn start

The above will open up the site at localhost 8081 port

Using the snap
  • Connect the wallet
  • Install the Snap
  • Switch network to Base Goerli or Linea Goerli
  • Create Account
  • I recommend using the Any Transaction UI, you will need to specify to address and calldata which is the simple calldata used in the Ethereum txs.
  • In order to quickly test by transferring tokens, transfer some tokens to the Keyring account address.
  • Replace the TOKEN_CONTRACT value inside chains object in /packages/site/pages/index.tsx file (make sure to do it under the right chain)
  • Then click the button and it will do a simple ERC20 transfer using UserOperations!

Bounties

To Infura and Beyond

I am using Infura's Linea testnet RPC here, here and here to query the blockchain and make read calls, basically when creating Keyring accounts I need to read from the Entrypoint the counterfactual address of the Smart Contract Wallet which will in-turn be deployed on first transaction!

IYKYK Linea edition
  • I am using Thirdweb's Account Factory on Linea Testnet and Pimlico VerifyingPaymaster on Linea Testnet.
  • All the Smart Contract Wallets created using the Snap get deployed on Linea testnet here is one example.
  • To demo ERC20 transfer on Linea Testnet I deployed a token on Linea Testnet
OH SNAP!
  • Instructions above!
Make a Dapp That Slaps, No Cap
  • The project basically is a Metamask Account Abstraction Snap which aims to improve UX, what I envision is that soon many dApps would want to use AA features.
  • But, if every dApp uses a different Account Factory then the user will end up having different accounts for every website!
  • This will make their lives even worse, so instead of AA features being on the dApp-side this project brings them on the Wallet-side!
  • Only one account needed (more can be created) and can be connected to dApps who want to provide AA features all they need to do is use the right JSON-RPC methods!
  • Proof of Consensys products used is above!
Future plans for the project
  • I wasn't able to intercept eth_sendTransaction if that can be done, its endgame!
  • I want to publish this snap (when snaps go live for everyone) and add more chains
  • I believe it will support mobile wallet as well, but I haven't tried if not I will add support for that!
Tech Stack
  • Metamask Snaps
  • Gatsby (for site)
  • ThirdWeb Account Factory and Token Contracts
  • Linea Testnet & Infura RPC endpoint (for account deployment and transactions)
  • Pimlico Verifying Paymaster (for tx sponsoring)