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

dingbatch

v0.2.0

Published

Parametric MCM (Mid-Century Modern) dingbat shapes as SVGs

Readme

dingbatch

Parametric MCM (Mid-Century Modern) dingbat shapes as SVGs. Curated presets with full customization.

Install

npm install dingbatch

Usage

Basic - Use Presets

import { boomerang } from 'dingbatch';

// Get a preset shape
const shape = boomerang.crescent();

// Returns:
// {
//   path: "M...",        // SVG path d attribute
//   width: 100,          // Bounding width
//   height: 80,          // Bounding height
//   viewBox: "0 0 100 80",
//   svg: "<svg>...</svg>" // Complete SVG string
// }

Available Presets

boomerang.crescent()      // Curved arc/moon shape
boomerang.fatMoon()       // Wide crescent, rounded tips
boomerang.sharpChevron()  // Solid V-shape arrow
boomerang.thinArc()       // Narrow curved arc
boomerang.horseshoe()     // U-shape

With Overrides

// Rotate a preset
boomerang.crescent({ rotation: 45 })

// Change any parameter
boomerang.fatMoon({ thickness: 60, taper: 0.8 })

Full Custom

boomerang({
  style: 'crescent',
  armLength: 50,
  bendAngle: 160,
  thickness: 35,
  taper: 0.5,
  tipRoundness: 0.2,
  rotation: 0,
})

React Components

import { Dingbat, Boomerang } from 'dingbatch/react';
import { boomerang } from 'dingbatch';

// Generic component - pass any shape
<Dingbat shape={boomerang.crescent()} fill="#D4A03D" />

// Shape-specific component
<Boomerang preset="crescent" fill="#D4A03D" />
<Boomerang preset="fatMoon" rotation={45} className="hero-deco" />

// Custom params
<Boomerang
  params={{ style: 'chevron', armLength: 60, bendAngle: 70, thickness: 30, taper: 1, tipRoundness: 0 }}
  fill="#1A1A1A"
/>

Dingbat Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | shape | DingbatResult | required | Shape object from generator | | fill | string | 'currentColor' | Fill color | | stroke | string | 'none' | Stroke color | | strokeWidth | number | 0 | Stroke width | | className | string | - | CSS class | | style | CSSProperties | - | Inline styles |

Boomerang Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | preset | string | 'crescent' | Preset name | | params | BoomerangParams | - | Full custom params (overrides preset) | | rotation | number | - | Rotation in degrees | | + all Dingbat props | | | |

Boomerang Styles

The boomerang generator supports 4 geometric styles:

  • crescent - Curved arc/moon shape
  • classic - Traditional boomerang with two diverging arms
  • horseshoe - U-shape with parallel arms
  • chevron - Solid V-shape or arrow

Parameters

| Parameter | Type | Description | |-----------|------|-------------| | style | 'classic' \| 'crescent' \| 'horseshoe' \| 'chevron' | Geometry mode | | armLength | number | Length of arms or arc radius | | bendAngle | number | Angle between arms or arc span | | thickness | number | Shape thickness | | taper | number | Tip thickness ratio (0=pointed, 1=uniform) | | tipRoundness | number | How rounded the tips are (0-1) | | armCurvature | number | Curve amount for classic/horseshoe (0-1) | | bendSharpness | number | Bend smoothness for classic (0-1) | | armBalance | number | Asymmetric arm lengths (0.5-2) | | rotation | number | Rotation in degrees |

TypeScript

Full TypeScript support with exported types:

import type {
  DingbatResult,
  BoomerangParams,
  BoomerangStyle
} from 'dingbatch';

import type {
  DingbatProps,
  BoomerangProps
} from 'dingbatch/react';

License

MIT