Skip to content

cometh-hq/connect-sdk-4337

Repository files navigation

Cometh logo

Cometh Connect ERC-4337 version

This repository contains a the Cometh Connect AA sdk built on top of ERC4337.

Try it the wallet directly here: demo.4337.develop.core.cometh.tech/.

Overview

Cometh Connect is an SDK that enables applications to provide their users a smart wallet controlled with biometrics.

Coupled with a web2 authentication system (or standalone to stay anonymous), users are onboarded with web2 convenience and web3 security: biometric signatures (passwordless, non custodial), gasless transactions, account recovery, etc.

Features

  • Instant wallet creation via account abstraction.
  • Gas fees sponsoring via cometh paymaster.
  • Session keys for a flawless UX.
  • Recovery System for your users.
  • Utilizes modern JavaScript and Web3 libraries for an enhanced development experience.

Folder Architecture Overview

The project is built using a monorepo structure to further enhance modularity and scalability.

Monorepo Structure

  • packages/: Directory for all subdirectories of the core sdk.
    • sdk/: The core functionnalitities of the sdk.
    • react/: React providers and hooks to use connect.
  • examples/: Directory for all demo examples of the sdk.
    • demo/: Basic demo using the core sdk.
    • react-hooks-demo/: Basic demo using the react sdk.
    • wagmi-demo/: Basic demo using the wagmi integration sdk.

Getting Started

Installation

  1. Clone the repository and navigate to the project directory.
  2. Run bun install to install dependencies.

Running the Development Server

  • Execute bun dev to start the development server.

Built With

  • Bun - The JS toolkit for maximum efficiency.
  • NextJS - The React framework for server-side rendering.
  • Biome - For ultra-fast linting/formatting.
  • TanStack Query - For efficient data fetching and async state management.
  • Wagmi 2.0 - For Ethereum hooks.
  • Viem 2.0 - For blockchain communication.

Infrastructure

  • Safe: For smart account solutions.

Contributing

We welcome contributions! Don't hesitate to submit PR :)

License

Released under the Apache License.