Traverse
DSA, but it's an anime. Starring a black cat.
Traverse teaches data structures and algorithms as one anime episode you scroll through. A cel-shaded black cat leaps into numbered boxes, swats books off a stack, unties cans on a yarn list, climbs a tree of paper lanterns and runs across rooftops to find her way home. Each scene turns an idea into something you can picture. There are no buttons and no navbar. You just scroll.
- Year
- 2026
- Type
- Interactive 3D web episode
- Topics
- Array, stack, linked list, BST, graph, BFS
- Length
- 1 episode, 7 shots
- Palette
- Exactly 5 colors
- Status
- Live at traverse.prasant.dev
- Stack
- Next.js, React Three Fiber, three.js, GSAP ScrollTrigger, Lenis, Blender (Python)
What it does
Directed by your scroll
Seven shots, each with its own scroll length, all timed by one scroll director. It plays forwards and backwards.
Data structures you can see
An array of boxes, a stack of books, a linked list of tin cans tied with yarn, a lantern BST and a rooftop graph.
Real algorithms, not props
The cat's path up the tree comes from an actual BST search, and the rooftop wires light up level by level from a real BFS.
Anime cel shading
A custom toon shader snaps light into palette bands, with ink outlines, blind-shaped light, speed lines and camera shake.
Eyecatch cards
Each concept gets a title card like a named move in a shonen anime: 配列 / ARRAY, "Any index, one jump."
A paw for a cursor
The cursor is a paw that kneads when idle and leaves prints that snap into boxes, tie together with yarn or ripple out like BFS.
How I built it
I wanted learning DSA to feel more like watching a show than reading notes. So I wrote it like an episode: a cold open, a few scenes, eyecatch cards between them and an end card.
The look comes from a toon shader I wrote for three.js. It snaps lighting into the five colors of the palette and softens each band edge by about a pixel so nothing looks jagged. There is no tone mapping, so the colors on screen are the exact hex values I picked.
Scroll progress goes into a plain object that the render loop reads every frame, so React never re-renders while you scroll. Every shot is a pure function of its progress, which means a reload in the middle of the page or a fast scroll backwards always lands on the right frame. The cat's clips are posed in Blender with Python scripts that use IK and then bake it down for export.
Cat model: Toon Cat FREE by Omabuarts Studio, licensed CC BY 4.0.