open-index/open-npm huggingface dataset:
npm package: @particle-network/vite-plugin-wasm
Description: A Vite plugin for handling Particle Network WASM files.
Author: Your Name
Latest version: 1.0.3

# vite-plugin-wasm

A Vite plugin for handling Particle Network WASM files.

## Installation

```bash
npm install @particle-network/vite-plugin-wasm
```

## Usage

### Vue

To use the plugin in a Vue project, update your vite.config.js or vite.config.ts as follows:

```javascript
import particleWasmPlugin from '@particle-network/vite-plugin-wasm';
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';

export default defineConfig({
    plugins: [vue(), particleWasmPlugin()],
    resolve: {
        alias: {
            buffer: 'buffer',
        },
    },
});
```

### React

To use the plugin in a React project, update your vite.config.js or vite.config.ts as follows:


```javascript
import particleWasmPlugin from '@particle-network/vite-plugin-wasm';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

export default defineConfig({
    plugins: [react(), particleWasmPlugin()],
});
```
npm package: @particle-network/wallet
Description: A wallet component that can be easily injected into the developer's website to provide rich custom styles.
Author: Particle Network
Latest version: 3.0.0-alpha.2

# Particle Walelt

A wallet component that can be easily injected into the developer's website to provide rich custom styles.

## Installation

Install wallet and its peer dependencies.

```shell
yarn add @particle-network/wallet@latest
```

### Configure

Init Wallet with Particle project config, you can get the config from [Particle Dashboard](https://dashboard.particle.network/).

The modal support custom style, refer to [Wallet Service](https://docs.particle.network/developers/wallet-service/sdks/web).

```ts
import { walletEntryPlugin } from '@particle-network/wallet';

// init wallet component, replace 'xxx' with project config.
walletEntryPlugin.init(
  {
    projectId: 'xxx',
    clientKey: 'xxx',
    appId: 'xxx',
  },
  walletOptions // optional: wallet custom configs
);

// set wallet provider
walletEntryPlugin.setWalletCore({
  ethereum: provider, // optional: evm eip1193 provider
  solana: wallet, // optional: solana wallet
});

// show wallet entry
walletEntryPlugin.walletEntryCreate();

// destroy wallet entry
walletEntryPlugin.walletEntryDestroy();

// open wallet
walletEntryPlugin.openWallet(params);
```

## Learn More

- [Website](https://particle.network)
- [Documentation](https://docs.particle.network/)
- [Live Demo](https://core-demo.particle.network/)