0.1.43 • Published 4 months ago

@justweb3/xmtp-plugin v0.1.43

Weekly downloads
-
License
-
Repository
github
Last release
4 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

4 months ago

0.1.40

5 months ago

0.1.38

5 months ago

0.1.36

5 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

6 months ago

0.1.30

6 months ago

0.1.29

6 months ago

0.1.28

6 months ago

0.1.27

6 months ago

0.1.25

8 months ago

0.1.24

8 months ago

0.1.20

8 months ago

0.1.17

8 months ago

0.1.16

8 months ago

0.1.15

9 months ago

0.1.14

9 months ago

0.1.13

9 months ago

0.1.9

9 months ago

0.1.8

9 months ago

0.1.6

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago