Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Easily create a social XR experience with a self-sovereign identity system
Easily create social virtual worlds that anyone can interact with using Virtual Personas, a global identity system where people own their identities.
Install via npm
npm install --save simbol
Then import it using ES2015 Modules, CommonJS or with a <script>
tag:
import Simbol from 'simbol';
const Simbol = require('simbol');
<script src="./node_modules/simbol/build/simbol.script.js"></script>
And finally, create a new Simbol
instance and initialise it:
const config = {
scene: {
canvas: document.querySelector('canvas'),
sceneToLoad: 'path/to/my/scene.gltf'
}
};
const simbol = new Simbol(config); // If you're loading the ES Module or the CommonJS Module
// or
const simbol = new Simbol.default(config); // If you're loading simbol.script.js
simbol.init();
Simbol accepts several configuration parameters detailed below:
string
, default: 'left'
The main user's hand. It's value can be either 'left'
or 'right'
boolean
, default true
Whether Simbol should provide a default locomotion system
boolean
, default true
Whether Simbol should provide a default interaction system
object
All configuration properties related to setting up the scene
boolean
, default: true
Whether it needs to take of Three.JS rendering by setting up a renderer and a camera. If this is set to true
, config.scene.camera
and config.scene.renderer
should not be provided
boolean
, default: true
Whether Simbol should start and control the render loop
THREE.Scene|string
, required
Either a THREE.Scene to be added, or a path to the .gltf/.glb file containing the scene
HTMLCanvasElement
Canvas element where the scene will be rendered. This should only be provided if config.scene.render
is true
THREE.Renderer
If you're rendering on your own, Simbol needs access to your renderer. This should only be provided if config.scene.render
is false
THREE.Camera
If you're rendering on your own, Simbol needs access to your camera. This should only be provided if config.scene.render
is false
object
All configuration properties related to setting up the Virtual Persona
boolean
, default: true
Whether Simbol should attempt to sign the person in on #init
object|boolean
All configuration properties related to setting up the MultiVP component. This can be set to false
if your site takes care of the multiuser experience
boolean
, default: true
Whether multiVP should be instantiated at the same time as Simbol. It will trigger the permission dialog to access the microphone, so you could might want to defer this to later
string
, default: 'ws://127.0.0.1'
The URL to your WebSocket server
string|number
, default: 8091
The port for your WebSocker server
string
, default: 'default'
The desired channel name to use for the WebRTC social experience
object
, default: {trickle: true, objectMode: true}
Configuration object for simple-peer
{
hand: 'right',
locomotion: true,
virtualPersona: {
signIn: false,
multiVP: {
socketURL: 'wss://yourdomain/ws',
socketPort: '80',
channelName: 'coolchannel',
config: {
iceServers: [
{urls:'stun:stun.l.google.com:19302'},
{urls:'stun:stun1.l.google.com:19302'},
{
urls: 'turn:yourdomain:7788',
username: 'testname',
credential: 'testpassword'
}
]
}
}
},
scene: {
render: true,
animate: true,
canvas: document.querySelector('canvas'),
sceneToLoad: 'path/to/cool/scene.gltf',
renderer: new THREE.Renderer(), // Not necessary as render is true
camera: new THREE.PerspectiveCamera() // Not necessary as render is true
}
}
You can check out the API in our JSDoc
Currently, simbol is dependent on several third party libraries:
Check out the Contribution guide! If you have any questions, join our community
This program is free software and is distributed under an MIT License.
FAQs
Easily create a social XR experience with a self-sovereign identity system
We found that simbol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.