
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@banuba/webar
Advanced tools
@banuba/webar
- Banuba SDK for web.
Check out the Banuba WebAR overview to learn the basics.
Via <script>
tag:
<!-- Exposes BanubaSDK variable on window -->
<script src="https://cdn.jsdelivr.net/npm/@banuba/webar/dist/BanubaSDK.browser.js"></script>
<script>
const { Webcam, Player, Dom } = BanubaSDK
Player.create({
clientToken: "PUT YOUR CLIENT TOKEN HERE",
}).then((player) => {
player.use(new Webcam())
Dom.render(player, "body")
})
</script>
Via <script type="module">
tag:
<script type="module">
import {
Webcam,
Player,
Dom,
} from "https://cdn.jsdelivr.net/npm/@banuba/webar/dist/BanubaSDK.browser.esm.js"
Player.create({
clientToken: "PUT YOUR CLIENT TOKEN HERE",
}).then((player) => {
player.use(new Webcam())
Dom.render(player, "body")
})
</script>
npm i --save @banuba/webar
import { Webcam, Player, Dom } from "@banuba/webar"
import wasm from "@banuba/webar/BanubaSDK.wasm"
import simd from "@banuba/webar/BanubaSDK.simd.wasm"
import data from "@banuba/webar/BanubaSDK.data"
Player.create({
clientToken: "PUT YOUR CLIENT TOKEN HERE",
locateFile: {
"BanubaSDK.wasm": wasm,
"BanubaSDK.simd.wasm": simd,
"BanubaSDK.data": data,
},
}).then((player) => {
player.use(new Webcam())
Dom.render(player, "body")
})
Banuba Client token is required to get Banuba SDK Web AR working.
To receive a new trial client token please fill in the form on banuba.com website, or contact us via info@banuba.com.
FAQs
Banuba WebAR SDK
The npm package @banuba/webar receives a total of 1,980 weekly downloads. As such, @banuba/webar popularity was classified as popular.
We found that @banuba/webar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.