← Archive13 / 16
Lab noteNo. 13
AI Assistant
A coding chat that explains, refactors, debugs or converts a snippet in one click, with highlighted answers you can copy, save or download.
- Made
- Dec 2023
- Type
- Web app
- Stack
- JS / Tailwind / Webpack

Why I built it
It started as a SheCodes course project where we were only given the API. The modes, chat commands, toolbars and history are my own additions.
What I learned
- Asking the model to reply in a fixed JSON shape, so code renders with Prism instead of parsing free text.
- Prompt context per mode, so you can paste code with no explanation.
- Chat commands that let you drive the whole site from the keyboard, or tap them from the
helplist. - One click listener on the chat for every Copy and command button, including ones restored from history.
- API keys injected by Webpack at build time, never in the repo.
Revisited
- Jan 2025: saved messages load instantly instead of replaying the typewriter effect.
- Oct 2026: refreshed the design and made it work on phones, with chat bubbles, a Copy button on every code block, a character counter and a tappable command list. Saved messages now restore with their own styling.