Socket
Book a DemoInstallSign in
Socket

@desktop.vision/js-sdk

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@desktop.vision/js-sdk

Integrate computers into your application with Javascript

3.0.9
latest
npmnpm
Version published
Maintainers
2
Created
Source

About

The Desktop Vision JS SDK makes it simple to bring Desktop Vision Computers into your 2D and WebXR applications. Currently the SDK is separated into two different modules that include numerous classes: Babylon, and THREE.

Prerequisites

  • API Keys - If you are an approved Desktop Vision Partner then you can create API keys at partners.desktop.vision otherwise you should contact devon@vali.ventures.
  • A recent version of Babylon or THREE lib

Installation

To install the Babylon version of the Destkop Vision SDK add the following to the head of your applications html head element (ideally before your application logic, but it shouldn't matter):

<script src"https://js.desktop.vision/babylon.min.js"></script>

Then use window.DesktopVision

or

	npm install @desktop.vision/js-sdk

Then to initialize the SDK you use the DesktopVision.loadSDK function:

// this dependency is excluded from the Desktop Vision SDK for the sake of bundle size
// the loadSDK function injects the dependency
import * as BABYLON from 'babylonjs'
import DesktopVision from '@desktop.vision/js-sdk/dist/babylon.min'

const { Computer, Keyboard, Controls, ComputerConnection } = DesktopVision.loadSDK(BABYLON)

To install the Three version of the Destkop Vision SDK add the following to the head of your applications html head element (ideally before your application logic):

<script src"https://js.desktop.vision/three.min.js"></script>

Then use window.DesktopVision

or

	npm install @desktop.vision/js-sdk

Then to initialize the SDK you use the DesktopVision.loadSDK function:

// these dependencies are excluded from the Desktop Vision SDK for the sake of bundle size
// the loadSDK function injects the dependencies
import * as THREE from 'three';
import { XRControllerModelFactory } from 'three/examples/jsm/webxr/XRControllerModelFactory'
import { XRHandModelFactory } from 'three/examples/jsm/webxr/XRHandModelFactory.js'
import DesktopVision from '@desktop.vision/js-sdk/dist/three.min'

const {
	Computer, 
	ComputerConnection
} = DesktopVision.loadSDK(THREE, XRControllerModelFactory, XRHandModelFactory);

Example Apps

FAQs

Package last updated on 07 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.