Measured entry
animata-boids-ecosystem
background-effectspatialmotion on file
A client-side React canvas background that simulates flocking agents, reacts to pointer movement, accepts attractors and renders optional overlay content. It ships as a shadcn registry TypeScript component with no package dependencies, but relies on React, browser animation and resize APIs, utility CSS classes, and the project cn helper.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 27.5 KB (92.9 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 30.56s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/animata/background/boids-ecosystem.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused, dependency-light effect with useful tuning hooks and clean lifecycle cleanup. It builds and mounts in the prepared harness, but the bare install fails on the missing cn utility import, so it needs a shadcn-style setup or a small source adaptation.
Use it if
- You want an interactive flocking backdrop behind a short hero message or call to action.
- You need configurable colors, agent shape, cursor avoidance, or attraction points without adding a simulation library.
- Your page can reserve a defined-height container for a continuously animated canvas.
Skip it if
- You need a static or server-rendered visual with no ongoing browser animation work.
- Your product requires built-in reduced-motion behavior or pause controls without modifying the source.
- You cannot provide a utility-class stylesheet and the expected cn import path.
- You need overlay content to receive pointer events without adjusting the component wrapper.
Install
| Declared dependencies | none declared |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add a cn class-merging helper and map the at-sign source alias to it, or replace cn with ordinary class composition. Also provide equivalents for the utility classes, keep the component client-only, and ensure its parent has an explicit height.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/codse/animataAlternatives
Other published entries for the background-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- ruixen-loading-circlegradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 17.7KB
- Bare
- pass
- Prov
- NO
- eldora-hacker-backgrounddark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- ruixen-ripple-circlesgradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- ruixen-dual-tone-rain-backgroundunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 18.4KB
- Bare
- pass
- Prov
- NO
- cultui-lightboardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 19.6KB
- Bare
- pass
- Prov
- NO
- ruixen-mouse-sparkunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 20.6KB
- Bare
- pass
- Prov
- NO