npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fishjam-cloud/video-effects

v0.1.5

Published

WebGPU video effects and person-segmentation providers for Fishjam video sources

Readme

@fishjam-cloud/video-effects

WebGPU background effects and person-segmentation providers for Fishjam video sources.

Installation

yarn add @fishjam-cloud/video-effects

React Native applications using the TypeGPU provider also need compatible WebGPU and Worklets integrations. The provider requires React Native Worklets 0.12.1 or newer and the New Architecture.

Background blur

import { useBackgroundBlur } from "@fishjam-cloud/video-effects/background-blur";
import { typeGpuPersonSegmentation } from "@fishjam-cloud/video-effects/segmentation/typegpu";

const segmentation = typeGpuPersonSegmentation();
const effect = useBackgroundBlur({ segmentation, radius: 18 });

Pass effect to a compatible Fishjam video-source adapter. The TypeGPU provider consumes GPU-texture input and ships with the model in assets/selfie_segmenter.ssgbin.

Background image

import { useBackgroundImage } from "@fishjam-cloud/video-effects/background-image";

const effect = useBackgroundImage({
  segmentation,
  image: { uri: "https://example.com/background.jpg" },
  fit: "cover",
});

Fishjam React Native camera

@fishjam-cloud/video-effects/fishjam-react-native runs an effect on the camera track Fishjam already publishes, through useCamera's camera-track middleware. No separate camera and no custom track: the app keeps using useCamera, and remote peers keep seeing peer.cameraTrack.

import { createBackgroundBlurEffect } from "@fishjam-cloud/video-effects/background-blur";
import { createCameraEffectMiddleware } from "@fishjam-cloud/video-effects/fishjam-react-native";
import { typeGpuPersonSegmentation } from "@fishjam-cloud/video-effects/segmentation/typegpu";

const segmentation = typeGpuPersonSegmentation({ modelUrl });
export const backgroundBlur = createCameraEffectMiddleware(
  createBackgroundBlurEffect(() => ({ segmentation, radius: 24 })),
);
const { currentCameraMiddleware, setCameraTrackMiddleware } = useCamera();
const isBlurOn = currentCameraMiddleware === backgroundBlur;
<Button
  onPress={() => setCameraTrackMiddleware(isBlurOn ? null : backgroundBlur)}
/>;

The middleware lives in Fishjam's camera state, so it stays applied across screens until it is cleared with null. Switch it on once the camera is on. Pass onStatus in the options to follow loading and errors.

For a component-scoped version there is useFishjamCameraEffect(effect | null), the twin of the web hook; it clears the effect when the component unmounts.

The model file ships in the package: require("@fishjam-cloud/video-effects/assets/selfie_segmenter.ssgbin") through expo-asset gives the modelUrl. Add ssgbin to Metro's resolver.assetExts.

The app must have these installed and linked: @fishjam-cloud/react-native-client, @fishjam-cloud/react-native-webrtc (0.30.2 or newer), @fishjam-cloud/react-native-worklets, react-native-worklets (0.12 or newer, with its Babel plugin) and react-native-webgpu, with the New Architecture on. Android needs API 26.

Entry points

  • @fishjam-cloud/video-effects — provider and effect contracts
  • @fishjam-cloud/video-effects/background-blur — blur factory and React hook
  • @fishjam-cloud/video-effects/background-image — image-replacement factory and React hook
  • @fishjam-cloud/video-effects/segmentation/typegpu — experimental GPU-only segmentation provider
  • @fishjam-cloud/video-effects/web — browser track middleware
  • @fishjam-cloud/video-effects/fishjam-react — Fishjam React adapter
  • @fishjam-cloud/video-effects/fishjam-react-native — Fishjam React Native camera-track session

Effects improve presentation; they are not privacy or security boundaries.