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

wobble-svg

v0.2.0

Published

Variable-width hand-drawn SVG path generator for web and React Native. Deterministic, dependency-free, and tuned to procedural design systems.

Readme

Wobble

Variable-width hand-drawn SVG path generator for web and React Native. Deterministic, dependency-free, and tuned to procedural design systems.

npm license

Live demo & interactive studio →

What's new in 0.2.0

  • Seed morphing via animateWobbleRibbon and seed/seedTo/mix
  • Polished landing page with live studio, benefits, and agent prompt CTA
  • Docs/FAQ updates for fill-vs-stroke and React Native usage

What is Wobble?

Wobble generates pure SVG path data (d attribute strings) that render hand-drawn, organically-wobbly outlines with true variable-width strokes. Unlike Rough.js, Wobble supports varying stroke widths along a path — like Figma's Dynamic Stroke. Unlike native SVG filters, Wobble generates portable paths that work everywhere: web <path> elements, React Native <Path>, Canvas, or print.

Key features:

  • ✨ Variable-width strokes (procedurally generated, no filters)
  • 🎯 Deterministic output via seeded PRNG
  • Smooth seed morphs via animateWobbleRibbon / seedTo+mix
  • 📦 Zero dependencies, ~4KB gzipped
  • 🌐 Framework-agnostic: web, React Native, anywhere SVG paths render
  • ⚡ Fast: generates paths at render time, no precomputation needed

Installation

npm install wobble-svg

Quick Start

import { roundedRectBoundary, generateWobblePath } from 'wobble-svg';

// 1. Sample a rounded rectangle's boundary
const boundary = roundedRectBoundary(200, 100, 10);

// 2. Perturb it into a hand-drawn, variable-width ribbon path
const pathData = generateWobblePath(boundary, {
  seed: 42,
  halfWidth: 1,        // required — roughly desired stroke width / 2
  frequency: 0.05,
  wiggle: 1,
  smoothen: 0.5,
  widthVariance: 0.5
});

// 3. A wobble path is a FILLED band, not a stroked line
const svg = `<svg viewBox="0 0 200 100">
  <path d="${pathData}" fill="#333" fill-rule="evenodd" />
</svg>`;

See the docs for why the output is a fill shape rather than a stroked line — that's the trick that makes true variable-width strokes possible.

Animate seeds

Smoothly morph between patterns (same technique as the landing-page logo hover):

import { roundedRectBoundary, animateWobbleRibbon } from 'wobble-svg';

const boundary = roundedRectBoundary(200, 80, 16);

function frame(now) {
  const ribbon = animateWobbleRibbon(boundary, {
    halfWidth: 1.2,
    seeds: [2, 13, 25, 39],
    progress: now / 180,
  });
  path.setAttribute('d', ribbon.ribbonPath);
  requestAnimationFrame(frame);
}
requestAnimationFrame(frame);

Or blend two seeds with seed / seedTo / mix on generateWobbleRibbon.

Documentation

Full docs, API reference, and examples: wobble-svg.vercel.app

Why Wobble?

| Feature | Wobble | Rough.js | Native SVG | |---------|--------|----------|-----------| | Variable-width strokes | ✅ | ❌ | ❌ | | Deterministic (seeded) | ✅ | ✅ | N/A | | Zero dependencies | ✅ | ✅ | N/A | | Web + React Native | ✅ | ❌* | ❌** | | Sketchy aesthetics | ⚠️ | ✅ | N/A |

* Rough.js uses browser APIs unavailable on RN ** Native SVG filters not supported on react-native-svg

License

MIT — see LICENSE for details.

Contributing

Issues, feature requests, and PRs welcome! See GitHub for the repo.

Quick Links