
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
@whereby.com/camera-effects
Advanced tools
@whereby.com/camera-effectsAdds effects on top of camera stream.
Provides a set of presets that can be used to add effects to a camera stream.
This library is meant to be used alongside @whereby.com/core, or @whereby.com/browser-sdk.
Static assets (images and webassembly files) are hosted on a CDN and loaded at runtime.
npm install @whereby.com/camera-effects
or
yarn add @whereby.com/camera-effects
or
pnpm add @whereby.com/camera-effects
// Use alongside @whereby.com/core. Can also be used with @whereby.com/browser-sdk
import { WherebyClient } from "@whereby.com/core";
const client = new WherebyClient();
const roomConnection = client.getRoomConnection();
// Join the room as usual
// list of available effects
const [effectPresets, setEffectPresets] = useState<Array<string>>([]);
// Lazy-loaded and can be called when needed
async function loadBackgroundEffects() {
if (!showCameraEffects) return;
const { getUsablePresets } = await import("@whereby.com/camera-effects");
const usablePresets = getUsablePresets();
setEffectPresets(usablePresets);
}
// Switch to the selected effect
async function setCameraEffect(effectPreset: string) {
await roomConnection.switchCameraEffect(effectPreset);
}
Can be tested in storybook. Since the static assets are hosted on a CDN, we have two ways of testing locally:
Add the environment variable REACT_APP_IS_DEV=true to your local .env file.
This will make the library load assets from the local assets folder.
If you don't use the env variable, or it's set to false, the static assets
will be loaded from the CDN as in production.
FAQs
Effects on top of camera stream
The npm package @whereby.com/camera-effects receives a total of 25,223 weekly downloads. As such, @whereby.com/camera-effects popularity was classified as popular.
We found that @whereby.com/camera-effects demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.