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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@rhinestone/modulekit

v0.3.7

Published

ModuleKit is a development toolkit to build Smart Account Modules

Downloads

49

Readme

ModuleKit

A development kit for building and testing smart account modules.

ModuleKit allows you to:

  • Easily build smart account modules with interfaces for:
    • Validators
    • Executors
    • Hooks
  • Unit test your modules using a dedicated helper library
  • Integration test your modules using different modular ERC-4337 accounts and a helper library that abstracts away the complexity

In-depth documentation is available at docs.rhinestone.wtf.

The ModuleKit is in active development and is subject to breaking changes. If you spot a bug, please take out an issue and we will fix it as soon as we can.

Installation

Using our template

Use the module-template to create a new repo and install the dependencies:

pnpm install

Using git submodules

forge install rhinestonewtf/modulekit

Using a package manager

pnpm install @rhinestone/modulekit

Updating

To update the ModuleKit, run:

forge update rhinestonewtf/modulekit

or

pnpm update @rhinestone/modulekit

Usage

To learn more about using ModuleKit, visit the tools section of the docs. To get a better understanding of Modules generally, visit the modules section and for hands-on tutorials on the entire lifecycle of modules, visit the tutorials section.

Features

  • [ ] ERC-4337 integration tests
    • [x] On-chain integration test (EntryPoint -> Account)
    • [ ] Off-chain integration test (Bundler simulation and spec validation)
  • [ ] Unit testing library
  • [x] Different Module types
    • [x] Validators
    • [x] Executors
    • [x] Hooks
  • [x] Different modular accounts
    • [x] ERC-7579
    • [x] Safe
    • [x] Biconomy
    • [x] Kernel
  • [x] Deployment helper using Module Registry
  • [x] Gas calculation helper

Examples

For module examples, check out our modulekit examples and for module inspiration see our module idea list. For general examples, check out the awesome modular accounts repo.

Contributing

For feature or change requests, feel free to open a PR, start a discussion or get in touch with us.

For guidance on how to create PRs, see the CONTRIBUTING guide.

Using this repo

To install dependencies, run:

pnpm install

To build the project, run:

pnpm build

To run tests, run:

pnpm test -r

Credits

  • Safe{Core} Protocol: ExecutorManager.sol is heavily insprired by Safe's SafeProtocolManager but is compatible across all supported accounts

Authors ✨