open-index/open-npm huggingface dataset:
npm package: @remix-project/plugin-webview
Description: This library provides connectors to connect a plugin to an engine that can load webview or iframes. ``` npm install @remix-project/plugin-webview ```
Author: GrandSchtroumpf
Latest version: 0.3.44

# Plugin Webview

This library provides connectors to connect a plugin to an engine that can load webview or iframes.
```
npm install @remix-project/plugin-webview
```

If you do not expose any API you can create an instance like this :
```typescript
import { createClient } from '@remix-project/plugin-webview'

const client = createClient()
client.onload(async () => {
  const data = client.call('filemanager', 'readFile', 'ballot.sol')
})
```

If you need to expose an API to other plugin you need to extends the class: 
```typescript
import { createClient } from '@remix-project/plugin-webview'
import { PluginClient } from '@remix-project/plugin'

class MyPlugin extends PluginClient {
  methods = ['hello']
  hello() {
    console.log('Hello World')
  }
}
const client = createClient()
client.onload(async () => {
  const data = client.call('filemanager', 'readFile', 'ballot.sol')
})
```
npm package: @remix-project/plugin-webworker
Description: This library provides connectors to connect a plugin to an engine that can load webworkers. ``` npm install @remix-project/plugin-webworker ```
Author: GrandSchtroumpf
Latest version: 0.3.44

# Plugin Webworker

This library provides connectors to connect a plugin to an engine that can load webworkers.
```
npm install @remix-project/plugin-webworker
```

If you do not expose any API you can create an instance like this :
```typescript
import { createClient } from '@remix-project/plugin-webworker'

const client = createClient()
client.onload(async () => {
  const data = client.call('filemanager', 'readFile', 'ballot.sol')
})
```

If you need to expose an API to other plugin you need to extends the class: 
```typescript
import { createClient } from '@remix-project/plugin-webworker'
import { PluginClient } from '@rexmixproject/plugin'

class MyPlugin extends PluginClient {
  methods = ['hello']
  hello() {
    console.log('Hello World')
  }
}
const client = createClient()
client.onload(async () => {
  const data = client.call('filemanager', 'readFile', 'ballot.sol')
})
```