Snake.dev

The Nokia classic for developers: eat bugs, grow the codebase, don't bite your tail.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Steer a glowing gradient snake that glides smoothly between grid steps. Every fixed bug speeds it up; golden bugs are worth 3 and vanish after a few seconds. Inspired by Snake on the Nokia 6110 (1997).

Installation

$ npm i @pickui/snake-dev

Publishing soonUntil it’s on npm, use the CLI or Manual tab. The API below stays the same.

Usage

example.tsx
import { SnakeDev } from "@/components/pickui/snake-dev";

export default function Example() {
  return <SnakeDev />;
}
404 & maintenance pagesDeveloper portfoliosWaiting screens (builds, queues, uploads)Event stands

Props

PropTypeDefaultDescription
storageKeystring | null"pickui-snake-dev-best"Where the best score is saved (null = don't save).
classNamestring—Extra classes on the cabinet.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Arrows / WASD, or swipe on touch screens; turns are buffered so quick inputs aren't lost.
  • Keyboard input only while the cabinet is focused (click or Tab to it), so the page never scrolls by surprise; Esc / P pauses.
  • Pauses automatically when the tab is hidden, the cabinet scrolls off-screen or loses focus; reduced motion turns off screen shake and thins particles.