Bulk Runner

Bulk Runner is a copy-paste React component that stops bulk job half done, nobody knows before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/bulk-runner
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 3 extra npm packages
  • A11y guidance in docs

StopsBulk job half done, nobody knows

Was this component page useful?

How do I install Bulk Runner?

pnpm dlx shadcn@latest add @bollard/bulk-runner

The files land in your project. They're yours to edit.

How do I use Bulk Runner in React?

bulk-runner-usage.tsx
import { BulkRunner } from "@/components/ui/bulk-runner"

<BulkRunner
  key={run}
  title="Email 500 users: October invoice"
  items={users}
  run={sendEmail}
  autoStart
  doneVerb="emailed"
  untouchedText="were not emailed"
/>

What input mistakes does Bulk Runner catch?

  • Unclear state after a stop, by reporting exactly what was done and left untouched
  • Repeated failures, grouped by reason and sorted by count
  • Retrying everything, by offering retry of failed items only
  • Runaway parallelism, via a concurrency limit

What props does Bulk Runner accept?

BulkRunner props
PropTypeDefault
items* (required)

Everything the operation will touch.

T[]—
run* (required)

Processes one item. Throw (or reject) with an Error whose message is the reason it failed.

(item: T, signal: AbortSignal) => Promise<void>—
getLabel

Name shown for an item in the failure list. Defaults to `String(item)`.

(item: T) => stringString
concurrency

How many items run at once.

number4
autoStart

Start as soon as it mounts instead of showing a Start button.

booleanfalse
title* (required)

Heading, e.g. "Email 500 users".

string—
doneVerb

Past tense for finished items: "emailed", "deleted".

string"done"
untouchedText

What the operation didn't do to items it never reached: "were not emailed".

string"were not touched"
startLabel

Start button text.

string"Start"
pauseLabel

Pause button text.

string"Pause"
resumeLabel

Resume button text.

string"Resume"
stopLabel

Stop button text.

string"Stop"
retryLabel

Retry-failed button text ({failed} is filled in).

string"Retry {failed} failed"
pausingText

Templates: `{done}`, `{failed}`, `{left}`, `{total}`, `{inflight}`, `{verb}` and `{untouched}` are filled in.

string"Pausing after {inflight} in progress finish…"
stoppingText

Shown while in-flight items finish after Stop.

string"Stopping after {inflight} in progress finish…"
stoppedText

Shown when the job was stopped.

string"Stopped. {done} {verb}, {failed} failed, {left} {untouch…
finishedText

Shown when every item has run.

string"Finished. {done} {verb}, {failed} failed."

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Bulk Runner accessible?

  • role="progressbar" with aria-valuenow/max and an aria-valuetext reading done, failed and remaining
  • Phase changes are announced in an aria-live="polite" paragraph
  • All controls are native buttons with visible text
  • Motion respects prefers-reduced-motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Make each item operation idempotent and record per-item results on the server, so a retry or a reloaded tab doesn't repeat completed work.

  • Runs in the browser tab: closing or reloading the tab stops the job and loses its progress
  • Pause and Stop wait for in-flight items; it cannot cancel a request already sent
  • Retries call your run function again, so it must be safe to repeat

What expensive mistakes does Bulk Runner stop?

Bulk job half done, nobody knows

Also known as

bulk job · batch progress · progress bar · queue · retry failed · import job · bulk email · background job

Field type

What dependencies does Bulk Runner require?

Bulk Runner facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameBulk Runner
Registry identifier@bollard/bulk-runner
Install commandnpx shadcn@latest add @bollard/bulk-runner
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencies@number-flow/react, lucide-react, motion
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Bulk Runner

What form validation mistake does Bulk Runner catch?

Bulk Runner prevents bulk job half done, nobody knows. Runs a bulk job with live done, failed and remaining counts, so a stopped or failed job never ends in "some of it happened, probably". Catches: Unclear state after a stop, by reporting exactly what was done and left untouched, Repeated failures, grouped by reason and sorted by count, Retrying everything, by offering retry of failed items only, Runaway parallelism, via a concurrency limit. Limitation: validate bulk-runner schemas on backend.

How do I install bulk-runner with shadcn?

Run `npx shadcn@latest add @bollard/bulk-runner`. Sources added: registry/default/bulk-runner/bulk-runner.tsx. Package requirements: @number-flow/react, lucide-react, motion.

What props customize Bulk Runner?

Bulk Runner accepts `items`, `run`, `getLabel`, `concurrency`, `autoStart`. Configures bulk job, batch progress, progress bar behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of bulk-runner?

Runs in the browser tab: closing or reloading the tab stops the job and loses its progress. Pause and Stop wait for in-flight items; it cannot cancel a request already sent. Retries call your run function again, so it must be safe to repeat Server requirement: Make each item operation idempotent and record per-item results on the server, so a retry or a reloaded tab doesn't repeat completed work.

How does Bulk Runner meet accessibility guidelines?

role="progressbar" with aria-valuenow/max and an aria-valuetext reading done, failed and remaining. Phase changes are announced in an aria-live="polite" paragraph. All controls are native buttons with visible text. Motion respects prefers-reduced-motion. Minimizes errors: bulk job failed partially, dont know which items failed.

Which components pair with Bulk Runner?