My portfolio includes a playground of six interactive experiments: request routing, sorting, interface styling, pathfinding, Conway’s Game of Life, and a beat sequencer. Each gives visitors something to change and a result to inspect. This is a development note about the implementation in this site, with three examples of how a small interaction becomes a useful explanation.
The foundation is semantic HTML, CSS, TypeScript, and Vite. Project descriptions and profile links are in the initial HTML, while JavaScript supplies the experiments. That split lets the portfolio introduce my work before a visitor decides to run a simulation or make a sound.
Make the search algorithm visible
The pathfinder starts with a 15-by-9 grid. Visitors can draw walls, move the start and goal, and switch between breadth-first search and A*. Every move has the same cost, and movement is limited to four directions. Within those rules, both algorithms can return a shortest path; the interesting comparison is which cells they explore along the way.
Breadth-first search takes the next cell from its queue. A* orders the frontier using the distance already traveled plus the Manhattan distance to the goal. The interface shows explored cells separately from the final route. A visitor can put a barrier near the goal and see how that changes the search without needing to read the algorithm first.
The solver returns two arrays: visited cells and the resulting path. Rendering happens afterward. That separation also makes reduced motion straightforward: the result can appear immediately instead of requiring the visitor to watch every search step.
Let a tiny world explain its own rules
The Game of Life experiment uses a bounded grid and the familiar birth-and-survival rules: an empty cell becomes alive with three neighbors, while a living cell survives with two or three. Cells outside the board are treated as empty. The interface says this explicitly, because a wrapping board would produce different results near its edges.
A generation is calculated into a fresh buffer before it replaces the current world. Updating the existing array cell by cell would let later cells read partially updated neighbors. The separate buffer preserves simultaneous updates. Visitors can choose a glider, a pulsar, or a random starting pattern, then advance one generation at a time to inspect the changes.
Give sound its own clock
The sequencer has four synthesized voices and sixteen steps. Kick, snare, hi-hat, and pluck sounds are produced in the browser, with controls for tempo, volume, and muting. Audio begins only after Play. The scheduler places upcoming notes on the Web Audio clock, while a separate animation loop updates the visible playhead.
Keeping those jobs separate means the moving highlight is not responsible for triggering every sound. With reduced motion enabled, the playhead can stay still while the loop plays. Switching experiments, leaving the playground, or hiding the document stops playback and clears scheduled activity.
Interaction includes a way to stop
The grids support arrow-key navigation and keyboard editing. Touch interactions preserve page scrolling. Motion preferences change how results are presented, and each experiment provides cleanup for its listeners, timers, and audio. Those details matter as much as the first animation: a good experiment should also behave predictably when someone changes their mind.
Try the playground: draw one obstacle, change one living cell, or move one beat. Then compare the result. The controls are an invitation to investigate the software, one small decision at a time.
Join the conversation.
Have a question or something to add? Comments are reviewed before appearing. Keep it thoughtful and on topic.