
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
addbackground
Advanced tools
Beautiful canvas backgrounds made easy.
TypeSocket is available on npm, you can install it with either npm or yarn:
npm install addbackground
# or:
yarn install addbackground
import { addBackground } from 'addbackground';
const canvas = document.getElementById('backgroundCanvas');
addBackground({ canvas, type: 'bubbles' });
addBackground is the main function that adds a background to the selected canvas and keeps rendering it.
It accepts one argument of type BackgroundOptions
and returns an instance of BackgroundControls
.
BackgroundOptions is an object that has the following properties:
Property | Default value | Description |
---|---|---|
canvas | undefined | Canvas element to render to. (required) |
type | undefined | Background type, currently: either 'ripples' or 'bubbles'. (required) |
primaryColor | rgba(255, 255, 255, 0.2) | Primary color, accepts a CSS value.. |
secondaryColor | rgba(0, 0, 0, 0.2) | Secondary color, accepts a CSS value.. |
backgroundColor | transparent | Background color, accepts a CSS value.. |
Returns the playback state of the animation.
Sets the playback state of the animation.
Disassembles the animation, clears the canvas. Further playback is impossible after this function is called.
FAQs
Beautiful canvas backgrounds made easy.
The npm package addbackground receives a total of 0 weekly downloads. As such, addbackground popularity was classified as not popular.
We found that addbackground 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.