# vue-vnc

> A Vue Component to connect to a websockified VNC client using noVNC.

Latest version **0.0.6** (published 2024-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-vnc
pnpm add vue-vnc
yarn add vue-vnc
bun add vue-vnc
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2024-10-11 |
| First published | 2022-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 176.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | TrumanGao |
| Maintainers | trumangao |
| Keywords | vnc, rfb, noVNC, websockify, vue-vnc |

## Links

- npm: https://www.npmjs.com/package/vue-vnc
- Repository: https://github.com/TrumanGao/vue-vnc
- Homepage: https://github.com/TrumanGao/vue-vnc#readme
- Issues: https://github.com/TrumanGao/vue-vnc/issues
- npm.io page: https://npm.io/package/vue-vnc

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^3.2.41
- [@novnc/novnc](https://npm.io/package/@novnc/novnc.md) 1.3.0

## Recent versions

- 0.0.6 (latest) — 2024-10-11
- 0.0.5 — 2023-10-19
- 0.0.4 — 2023-01-09
- 0.0.3 — 2022-11-15
- 0.0.2 — 2022-11-14
- 0.0.1 — 2022-11-07

## README

# vue-vnc

A Vue Component, adapted from the popular [react-vnc](https://github.com/roerohan/react-vnc), to connect to a websockified VNC client using [noVNC](https://github.com/novnc/noVNC).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

The project in development mode will run on http://localhost:3000, where you can set a connection with VNC client by inputting a WebSocket URL.

```sh
npm run dev
```

### Usage

As a vue plugin, vue-vnc should be installed firstly in "/src/main". After that, the usage demo in "/src/App.vue" shows how to use it in a vue component. The only required param is "url", which specifies the VNC server to connect to.

`/src/main.ts`

```js
import { createApp } from "vue";
import App from "./App.vue";
import VueVnc from "vue-vnc";

const app = createApp(App);
app.use(VueVnc);
```

`/src/App.vue`

```vue
<template>
  <VueVnc :url="wssUrl"></VueVnc>
</template>
```

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