0.1.43 • Published 5 months ago

@justweb3/xmtp-plugin v0.1.43

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

@justweb3/xmtp-plugin

The @justweb3/xmtp-plugin extends the JustWeb3 Widget with XMTP (Extensible Message Transport Protocol) functionalities, allowing users to Chat directly within your dApp.


Installation

Install the XMTP Plugin using your preferred package manager:

bash
npm install @justweb3/xmtp-plugin

# or

yarn add @justweb3/xmtp-plugin

Usage Example

Here’s how to enable the XMTP Plugin in your JustWeb3 Widget configuration:

import { XMTPPlugin } from '@justweb3/xmtp-plugin';

const justweb3Config = {
  config: {
    origin: 'http://localhost:3000/',
    domain: 'localhost',
    signInTtl: 86400000,
  },
  plugins: [
    XMTPPlugin(env), // 'local' | 'production' | 'dev'
  ],
  ensDomains: [
    {
      ensDomain: 'yourdomain.eth',
      apiKey: 'YOUR_API_KEY',
      chainId: 1,
    },
  ],
  color: {
    primary: '#FEA801',
    background: 'hsl(0, 0%, 100%)',
    destructive: 'hsl(0, 100%, 50%)',
  },
};

Contributing

Contributions are welcome! If you have suggestions or find issues, please open an issue or submit a pull request on the GitHub repository.

0.1.43

5 months ago

0.1.40

5 months ago

0.1.38

6 months ago

0.1.36

6 months ago

0.1.35

6 months ago

0.1.34

6 months ago

0.1.33

6 months ago

0.1.32

6 months ago

0.1.31

7 months ago

0.1.30

7 months ago

0.1.29

7 months ago

0.1.28

7 months ago

0.1.27

7 months ago

0.1.25

9 months ago

0.1.24

9 months ago

0.1.20

9 months ago

0.1.17

9 months ago

0.1.16

9 months ago

0.1.15

9 months ago

0.1.14

10 months ago

0.1.13

10 months ago

0.1.9

10 months ago

0.1.8

10 months ago

0.1.6

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago