Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
video-ad-sdk
Advanced tools
VAST/VPAID SDK that allows video ads to be played on top of any player
This is a fork of MailOnline/mol-video-ad-sdk, made to move its development forward. The main repository has been inactive since February 2019.
To run video ads in the browser there are many alternatives. The most famous one is probably Google's IMA SDK for HTML5. There are two main cons with that SDK. It only works through DoubleClick and it is a black box very hard to debug and to maintain. This SDK tries to offer an alternative to play video ads that can work with any player in the world and any ad server that supports the VAST specification. And since it is open source you can read the code and debug if you need to.
npm install video-ad-sdk
or
yarn add video-ad-sdk
Try to start one of the ads returned by the adTag
import {runWaterfall} from 'video-ad-sdk'
const adTag = 'https://adserver.com/vastadtaguri'
const videoAdContainer = document.querySelector('.video-ad-container')
const onAdReady = (adUnit) => {
// ad is ready
}
const onError = (error) => {
// ad is failed
}
runWaterfall(adTag, videoAdContainer, {
onAdReady,
onError
})
Demo here!
Currently we only have the API which you can check here.
After you clone the repo you just need to run yarn
's default command to install and build the packages
yarn
We have a test suite consisting of a bunch of unit tests to verify utils keep working as expected. Test suit is run in CI on every commit.
To run the tests
yarn test
To run the tests in watch mode
yarn test:watch
To run linting the codebase
yarn lint
To check typings
yarn typecheck
To check bundle size
yarn sizecheck
Please open an issue if you have any questions or concerns.
MIT
FAQs
VAST/VPAID SDK that allows video ads to be played on top of any player
We found that video-ad-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.