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

soupdraw

v0.2.8

Published

Draw on your webcam with hand gestures, on-device. A small, framework-agnostic browser SDK built on the engine behind the SoupDraw extension.

Readme

soupdraw

npm license

Draw on your webcam with hand gestures, on-device. A tiny loader around the full SoupDraw pipeline, the exact engine that powers the SoupDraw browser extension.

Give it a mount point, call start(), and you get back an augmented MediaStream (your camera with hand-drawn annotations) plus a simple control API. The camera and hand tracking never leave the browser.

Live demo: draw.soupup.ai

import { SoupDraw } from "soupdraw";

const sd = new SoupDraw({ mount: "#stage" });
const stream = await sd.start();   // pipe into a call, a recording, or a <video>

sd.setColor("#00F0FF");
sd.on("status", (s) => console.log(s.gesture));

Install

npm install soupdraw

Or from a CDN, no build step:

<div id="stage" style="max-width:720px"></div>
<script type="module">
  import { SoupDraw } from "https://esm.sh/soupdraw";
  await new SoupDraw({ mount: "#stage" }).start();
</script>

Full parity with the extension

The SDK runs the real pipeline, so every gesture and feature is the same:

| Gesture | Does | | :-- | :-- | | 🤏 Pinch (thumb + index) | Draw | | 👍 Thumb-out fist | Erase (eraser rides the thumb tip) | | ✌️ Victory | Move a shape, or drag a box to marquee-select | | ✊ Closed fist | Pan the canvas | | 🖐️🖐️ Two-hand five-finger pinch | Scale, rotate, and pan (the selection, or everything) | | 🖐️ Five-finger pinch | Restore a board from the history strip | | ✊✊ Double fist-clench | Clear |

Plus: a history strip you can restore cleared boards from, a minimap, spotlight (dim + glow on your hands), whiteboard mode, shape-assist (rough strokes snap to clean shapes), and guided per-user pinch calibration.

API

new SoupDraw(options)

| Option | Default | Notes | | :-- | :-- | :-- | | mount | — | selector/element to inject the output <video> into | | video | — | bring your own <video> instead of mount | | color | "#ff2d55" | pen colour | | size | 6 | pen size | | mirror | true | selfie-mirror the camera | | assist | true | snap rough strokes into clean shapes | | history | true | history strip (restore cleared boards) | | minimap | false | show a minimap of off-frame drawings | | spotlight | false | dim the feed and glow around hands | | whiteboard | false | draw on a solid board instead of the camera | | boardColor | "#14151a" | whiteboard colour | | runtimeBase | package CDN | where to load the runtime + recognizer from |

Methods: start() → Promise<MediaStream>, stop(), setColor, setSize, setMirror, setAssist, setHistory, setMinimap, setSpotlight, setWhiteboard, setBoardColor, setBinding(gesture, action), undo, redo, clear, calibrate, on(event, cb).

Events: ready, status ({ gesture, hands, strokes, drawing, erasing, transforming, modelReady, historyMode, selection }), error, calibrated, stop.

How it works

On start(), the SDK injects two things (from the package's CDN by default, or your runtimeBase): the pipeline runtime (engine + gesture catalog + the compositor) and a hidden recognizer iframe that runs MediaPipe. It then drives everything by config messages. The pipeline patches getUserMedia so it can hand back the augmented feed, so start() returns a MediaStream that is a drop-in replacement for a raw camera anywhere a MediaStream works.

The ~20 MB hand model and MediaPipe wasm load once from public CDNs. To run with no third-party fetch, self-host the runtime (dist/) and MediaPipe assets and set runtimeBase.

Status

0.2.x. Full gesture and feature parity with the extension. Issues and use cases welcome.

License

MIT © Abhishek Janjalkar (Soup Up). Runs MediaPipe Tasks Vision (Apache-2.0) in the recognizer iframe.