# @remixproject/plugin-webview

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

Latest version **0.3.38** (published 2023-06-26) · 0 weekly downloads

## Install

```sh
npm install @remixproject/plugin-webview
pnpm add @remixproject/plugin-webview
yarn add @remixproject/plugin-webview
bun add @remixproject/plugin-webview
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.38 |
| Published | 2023-06-26 |
| First published | 2020-09-07 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 188 |
| Author | GrandSchtroumpf |
| Maintainers | grandschtroumpf, yann300, lianahus, aniket-engg, bunsenstraat, ioedeveloper |

## Links

- npm: https://www.npmjs.com/package/@remixproject/plugin-webview
- Repository: https://github.com/ethereum/remix-plugin
- Homepage: https://github.com/ethereum/remix-plugin/tree/master/packages/plugin/webview#readme
- Issues: https://github.com/ethereum/remix-plugin/issues
- npm.io page: https://npm.io/package/@remixproject/plugin-webview

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [@remixproject/plugin](https://npm.io/package/@remixproject/plugin.md) 0.3.38
- [@remixproject/plugin-api](https://npm.io/package/@remixproject/plugin-api.md) 0.3.38
- [@remixproject/plugin-utils](https://npm.io/package/@remixproject/plugin-utils.md) 0.3.38

## Recent versions

- 0.3.38 (latest) — 2023-06-26
- 0.3.44 (next) — 2024-12-19
- 0.3.11-alpha.5 (canary) — 2021-04-01
- 0.3.43 — 2024-03-06
- 0.3.42 — 2023-12-09
- 0.3.41 — 2023-12-09
- 0.3.40 — 2023-12-08
- 0.3.39 — 2023-12-08
- 0.3.37 — 2023-06-07
- 0.3.36 — 2023-06-07
- 0.3.35 — 2023-06-07
- 0.3.34 — 2023-06-02
- 0.3.33 — 2023-02-14
- 0.3.32-alpha — 2023-02-13
- 0.3.31 — 2022-07-11
- … 76 more at https://npm.io/package/@remixproject/plugin-webview/versions

## README

# Plugin Webview

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

If you do not expose any API you can create an instance like this :
```typescript
import { createClient } from '@remixproject/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 '@remixproject/plugin-webview'
import { PluginClient } from '@remixproject/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')
})
```

---
_Source: https://npm.io/package/@remixproject/plugin-webview · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
