Grid Serpent
gamesProA snake that plays itself on a pixel grid: it hunts food by pathfinding, grows endlessly, flashes and restarts when it corners itself. Tail fades into the board; cell size, gap, radius, colours, speed and growth are props.
Opening soon
Pro cannot be bought yet. The page opens when payment is ready.
Preview
The preview could not load.
Live demo. The theme switches the demo itself.
Code
grid-serpent.tsxPro
The code is locked
Grid Serpent is part of Manniche UI Pro. A key unlocks the source of all 60 effects.
Opening soon€49 · Introductory price until 31 December 2026. €79 after that.
- One-off payment
- One developer
- Your key arrives by email straight away
- No VAT (§ 19 UStG)
Have a key? Get the code with the CLI or MCP.
The key lives in MANNICHE_PRO_KEY, never in your code or a URL. How to set it up
CLI
npx shadcn@latest add @manniche-pro/grid-serpentMCP
claude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
GridSerpentProps
| Prop | Type | Default | What it does |
|---|---|---|---|
cellSize | number | 16 | Side of one cell in CSS pixels. The board fills its container, so a smaller cell means a bigger grid. |
gap | number | 3 | Space between cells in CSS pixels. |
radius | number | 4 | Corner radius of a cell, in CSS pixels. Half the cell size makes dots, 0 makes square pixels. |
snakeColor | string | 'var(--foreground)' | Colour of the snake's head; the body fades from it towards the board. Any CSS colour, including var(--x). Defaults to the foreground token. |
foodColor | string | 'var(--primary)' | Colour of the food. Defaults to the primary token. |
boardColor | string | 'var(--muted)' | Colour of the empty cells. Defaults to the muted token. |
flashColor | string | 'var(--destructive)' | Colour the snake blinks in when it corners itself. Defaults to the destructive token. |
speed | number | 16 | Steps per second. |
growth | number | 4 | Segments added to the snake for every piece of food. |
maxFill | number | 0.1 | How full the board may get, from 0.02 to 0.9. Past this share of the cells the snake stops being careful, corners itself, flashes and starts again. Raise it for longer lives. |
seed | number | 7 | Seed for the food placement, so every visit plays out the same. |
feedable | boolean | true | Click or tap a free cell to drop the food there. Never blocks scrolling. |
label | string | – | Accessible label. When set the board is exposed as an image, otherwise it is hidden from assistive technology. |
className | string | – | Classes for the wrapper. It fills its parent, so give it a size or put it in a sized box. |
A11y
No accessibility notes written yet.
The notes come with the source when Pro opens.