Bencho Originals

Features

  • The eyes follow the pointer anywhere over the stage and drift back to centre when it leaves.
  • They move as if painted on a ball, so they curve towards the edges rather than sliding in a straight line.
  • Near the rim an eye flattens along its direction of travel, which sells the turn.
  • Follow sets how quickly the gaze catches up; Bounce sets how much it overshoots.
  • Three shapes (square, capsule, circle) and three eye styles (slant, dots, squares).

API reference

<EyeTracker /> from components/bencho/eye-tracker.tsx

PropTypeDefaultDescription
sizenumber88Cube edge in px. Capsule is 1.45× as wide.
shape"squircle" | "capsule" | "circle""squircle"Outline of the body.
eyes"slant" | "dots" | "squares""slant"Eye style: tall pills, round dots or rounded squares.
follownumber (0–100)60How quickly the gaze catches up with the pointer.
bouncenumber (0–100)30How much the gaze overshoots before it settles.

Keyboard interactions

TabFocuses the cube.
Arrow keysNudge the gaze left, right, up or down.
Escape / HomeLook straight ahead again.

Accessibility

  • The cube is a focusable role="img" whose label explains what it does and which keys move it.
  • The eyes are aria-hidden decoration.
  • Moving the pointer again hands control back from the keyboard.

Sound & haptics

Silent by design: no audio and no vibration. All of the feedback is visual, so it works anywhere, muted or not.

Files

Written from scratch for sher.md and inspired by bencho.dev. It contains none of bencho's code or assets.