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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of animata-boids-ecosystem at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of animata-boids-ecosystem at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of animata-boids-ecosystem at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for animata-boids-ecosystem
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal27.5 KB (92.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for animata-boids-ecosystem
Declared dependenciesnone declared
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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/animata
License
MIT
Record published
2026-08-13

Alternatives

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.