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

throbber-widgets

v0.1.0

Published

Lightweight React throbber/spinner components using Unicode characters

Readme

throbber-widgets

Lightweight React throbber/spinner components using Unicode characters. Tree-shakeable, zero dependencies (peer: React 18+).

Install

npm install throbber-widgets

Usage

React (Web)

import { BrailleSixDouble, FallingSand, Arrow } from 'throbber-widgets';

<BrailleSixDouble pulse color="#10b981" speed={80} />
<FallingSand color="cyan" speed={60} />
<Arrow />

Props

Every throbber accepts the same props:

| Prop | Type | Default | Description | |------|------|---------|-------------| | pulse | boolean | false | Sinusoidal opacity pulsing | | color | string | 'currentColor' | Any CSS color | | speed | number | 100 | Frame interval in ms (clamped 50–500) | | className | string | — | Class on the wrapping <span> | | style | CSSProperties | — | Inline style overrides |

Custom Throbbers

Use ThrobberBase with your own frames:

import { ThrobberBase } from 'throbber-widgets';

const FRAMES = ['◐', '◓', '◑', '◒'] as const;

const MySpinner = (props) => <ThrobberBase frames={FRAMES} {...props} />;

Or use the useThrobber hook directly:

import { useThrobber } from 'throbber-widgets';

function MySpinner() {
  const { frame, opacity } = useThrobber(['⠋', '⠙', '⠹'], 80, true);
  return <span style={{ opacity }}>{frame}</span>;
}

Using Outside React (TUI, Ink, Terminal, Vue, Svelte, etc.)

All frame arrays are exported as constants — use them in any context:

import { FALLING_SAND, BRAILLE_WORM, SHADE } from 'throbber-widgets';

// Raw terminal (Node.js)
let i = 0;
setInterval(() => {
  process.stdout.write(`\r  ${FALLING_SAND[i++ % FALLING_SAND.length]}`);
}, 80);
// Ink (React for terminals)
import { Text } from 'ink';
import { useThrobber } from 'throbber-widgets';
import { BRAILLE_EIGHT } from 'throbber-widgets';

function Spinner() {
  const { frame } = useThrobber(BRAILLE_EIGHT, 80);
  return <Text color="green">{frame}</Text>;
}

The useThrobber hook works in any React environment (web or Ink). The ThrobberBase component renders a <span> so it's web-only — for Ink, use the hook + <Text>.

Available Throbbers

Arrows & Directions

| Component | Frames | Preview | |-----------|--------|---------| | Arrow | ↑ ↗ → ↘ ↓ ↙ ← ↖ | ↑↗→↘↓↙←↖ | | DoubleArrow | ⇑ ⇗ ⇒ ⇘ ⇓ ⇙ ⇐ ⇖ | ⇑⇗⇒⇘⇓⇙⇐⇖ | | FoldingOver | - ≻ › ⟩ \| ⟨ ‹ ≺ | -≻›⟩|⟨‹≺ |

ASCII & Box Drawing

| Component | Frames | Preview | |-----------|--------|---------| | Ascii | \| / - \ | |/-\ | | BoxDrawing | │ ╱ ─ ╲ | │╱─╲ | | PipeSpinner | ┤ ┘ ┴ └ ├ ┌ ┬ ┐ | ┤┘┴└├┌┬┐ | | PipeSpinnerBold | ┫ ┛ ┻ ┗ ┣ ┏ ┳ ┓ | ┫┛┻┗┣┏┳┓ | | HalfLine | ╷ ╴ ╵ ╶ | ╷╴╵╶ | | HalfLineBold | ╻ ╸ ╹ ╺ | ╻╸╹╺ | | Corners | ⌞ ⌜ ⌝ ⌟ | ⌞⌜⌝⌟ |

Blocks & Shapes

| Component | Frames | Preview | |-----------|--------|---------| | HorizontalBlock | ▏ ▎ ▍ ▌ ▋ ▊ ▉ █ | ▏▎▍▌▋▊▉█ | | VerticalBlock | ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ | ▁▂▃▄▅▆▇█ | | HalfBlock | ▄ ▌ ▀ ▐ | ▄▌▀▐ | | QuadrantBlock | ▝ ▗ ▖ ▘ | ▝▗▖▘ | | QuadrantBlockCrack | ▙ ▛ ▜ ▟ | ▙▛▜▟ | | QuarterBlockWorm | ▘ ▀ ▝ ▐ ▗ ▄ ▖ ▌ | ▘▀▝▐▗▄▖▌ | | Shade | ░ ▒ ▓ █ ▓ ▒ | ░▒▓█▓▒ | | Triangle | ◣ ◤ ◥ ◢ | ◣◤◥◢ | | Diamond | ◇ ◈ ◆ ◈ | ◇◈◆◈ |

Circles & Dots

| Component | Frames | Preview | |-----------|--------|---------| | BlackCircle | ◑ ◒ ◐ ◓ | ◑◒◐◓ | | WhiteCircle | ◷ ◶ ◵ ◴ | ◷◶◵◴ | | WhiteSquare | ◳ ◲ ◱ ◰ | ◳◲◱◰ | | PulsingDot | ⋅ ∙ ● ∙ | ⋅∙●∙ | | PulsingCircle | ◌ ○ ⊙ ● ⊙ ○ | ◌○⊙●⊙○ |

Braille

| Component | Frames | Preview | |-----------|--------|---------| | BrailleOne | ⠈ ⠐ ⠠ ⠄ ⠂ ⠁ | ⠈⠐⠠⠄⠂⠁ | | BrailleDouble | ⠘ ⠰ ⠤ ⠆ ⠃ ⠉ | ⠘⠰⠤⠆⠃⠉ | | BrailleSix | ⠷ ⠯ ⠟ ⠻ ⠽ ⠾ | ⠷⠯⠟⠻⠽⠾ | | BrailleSixDouble | ⠧ ⠏ ⠛ ⠹ ⠼ ⠶ | ⠧⠏⠛⠹⠼⠶ | | BrailleEight | ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽ ⣾ | ⣷⣯⣟⡿⢿⣻⣽⣾ | | BrailleEightDouble | ⣧ ⣏ ⡟ ⠿ ⢻ ⣹ ⣼ ⣶ | ⣧⣏⡟⠿⢻⣹⣼⣶ | | BrailleCircle | ⡀ ⠄ ⠂ ⠁ ⠈ ⠐ ⠠ ⢀ | ⡀⠄⠂⠁⠈⠐⠠⢀ | | BrailleWorm | ⠋ ⠙ ⠹ ⠸ ⢰ ⣰ ⣠ ⣄ ⣆ ⡆ ⠇ ⠏ | ⠋⠙⠹⠸⢰⣰⣠⣄⣆⡆⠇⠏ | | BrailleZigzag | ⠋ ⠙ ⠚ ⠞ ⠖ ⠦ ⠴ ⠲ ⠳ ⠓ | ⠋⠙⠚⠞⠖⠦⠴⠲⠳⠓ | | BrailleBounce | ⣤ ⠶ ⠛ ⠛ ⠶ | ⣤⠶⠛⠛⠶ | | BrailleLeapfrog | ⣀ ⢄ ⢂ ⢁ ⡈ ⡐ ⡠ | ⣀⢄⢂⢁⡈⡐⡠ | | BrailleConveyor | ⢸ ⣸ ⢼ ⢺ ⢹ ⡏ ⡗ ⡧ ⣇ ⡇ | ⢸⣸⢼⢺⢹⡏⡗⡧⣇⡇ | | BrailleClimber | ⣀ ⡠ ⠤ ⠢ ⠒ ⠊ ⠉ ⠑ ⠒ ⠔ ⠤ ⢄ | ⣀⡠⠤⠢⠒⠊⠉⠑⠒⠔⠤⢄ | | FallingSand | 35 frames — braille hourglass effect | ⠁⠂⠄⡀...⣿⡿⠿...⢁ |

Toggles & Minimal

| Component | Frames | Preview | |-----------|--------|---------| | Squish | ╫ ╪ | ╫╪ | | ToggleLine | ⊶ ⊷ | ⊶⊷ | | ToggleBox | □ ■ | □■ | | Dqpb | d q p b | dqpb |

Scripts & Exotic

| Component | Frames | Preview | |-----------|--------|---------| | Canadian | ᔐ ᯇ ᔑ ᯇ | ᔐᯇᔑᯇ | | OghamA | ᚐ ᚑ ᚒ ᚓ ᚔ | ᚐᚑᚒᚓᚔ | | OghamB | ᚁ ᚂ ᚃ ᚄ ᚅ | ᚁᚂᚃᚄᚅ | | OghamC | ᚆ ᚇ ᚈ ᚉ ᚊ | ᚆᚇᚈᚉᚊ | | Parenthesis | ⎛ ⎜ ⎝ ⎞ ⎟ ⎠ | ⎛⎜⎝⎞⎟⎠ |

Frame Constants

Every throbber's frame array is also exported as a SCREAMING_SNAKE_CASE constant:

import {
  ARROW, ASCII, BRAILLE_WORM, FALLING_SAND, SHADE,
  // ... 47 total
} from 'throbber-widgets';

These are plain readonly string[] tuples — no React dependency. Use them with Ink, blessed, raw process.stdout, or any UI framework.

License

MIT