022
A big job split across workers as a honeycomb: each cell fills with honey as its tasks finish, retries shimmer, failures crack, and done, failed, cost and time left roll along up top.
akaparallel workers·batch
Run this in any project set up for the shadcn CLI. It copies the Swarm source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/swarm.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Swarm } from "@/components/swarm";
export default function Page() {
return <Swarm />;
}A free React component in the Mission Control collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Swarm source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Re-embed help center" |
| tasks | number | 60 |
| workers | number | 8 |
| failureRate | number | 0.07 |
| maxAttempts | number | 3 |
| costPerSecond | number | 0.00024 |
| taskLabel | (index: number) => string | (i) => `chunk-${String(i + 1).padStart(3, "0")}` |
| errors | string[] | defaultErrors |
| loop | boolean | true |
| timeScale | number | 8 |
| className | string | — |